提交 c9691499 authored 作者: 刘旭's avatar 刘旭

。。。

上级 347c0659
@font-face {
font-family: 'iconfont'; /* Project id 3604159 */
src: url('//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff2?t=1662358646339') format('woff2'),
url('//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff?t=1662358646339') format('woff'),
url('//at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.ttf?t=1662358646339') format('truetype');
src: url('https://at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff2?t=1662358646339') format('woff2'),
url('https://at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.woff?t=1662358646339') format('woff'),
url('https://at.alicdn.com/t/c/font_3604159_rbxjoznvkmj.ttf?t=1662358646339') format('truetype');
}
.iconfont {
......
......@@ -18,14 +18,14 @@
<script lang="ts" setup>
import { ref, watch } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import { saveCustomPage } from '@/services/api';
import { saveCustomPage, downLoad } from '@/services/api';
import { baseURL } from '@/services/request';
let imageVideoData = ref([] as any);
// 区分通用还是空白
let type = ref();
let templateId = ref()
let downUrl = '/wx/storage/fetch/'
let templateId = ref();
let downUrl = '/wx/storage/fetch/';
onLoad((options: any) => {
if (options) {
......@@ -35,6 +35,9 @@ onLoad((options: any) => {
let currencyPage = JSON.parse(options.currencyPage);
console.log(currencyPage);
for (let s in currencyPage) {
// downLoad(currencyPage[s].pageComponent).then((res: any) => {
// console.log(res, 'load');
// });
uni.downloadFile({
url: baseURL + downUrl + currencyPage[s].pageComponent,
success(res: any) {
......@@ -48,7 +51,7 @@ onLoad((options: any) => {
} else if (type == 'edit') {
// 编辑模板列表
let pageData = JSON.parse(options.pageData);
templateId.value = JSON.parse(options.templateId)
templateId.value = JSON.parse(options.templateId);
for (let s in pageData) {
uni.downloadFile({
url: baseURL + downUrl + pageData[s].pageComponent,
......@@ -103,7 +106,7 @@ let uploadVideo = () => {
};
let save = () => {
if(templateId) {
if (templateId) {
let idArr = [];
for (let key in imageVideoData.value) {
uni.uploadFile({
......@@ -162,7 +165,6 @@ let save = () => {
});
}
}
};
// 替换图片
......
......@@ -19,8 +19,6 @@
import { ref, reactive } from 'vue';
import { login } from '@/services/api';
import inputLogin from '@/components/inputLogin.vue';
// let baseUrl = 'http://139.186.162.12/';
// let baseUrl = 'http://192.168.2.209:8080/';
let inputData = reactive({
inputValue: 15616168157,
......
......@@ -23,3 +23,6 @@ export let deletePageComponent = (id: number) => request('/wx/customPage/delete'
// 查询记录
export let searchSnInfo = (sn: string) => request('/wx/orderSequence/searchRecordInfo', 'GET', sn);
// 下载接口
export let downLoad = (imgUrl: string) => request('/wx/storage/download/' + imgUrl, 'GET');
//服务器接口地址
// const baseURL: string = 'http://139.186.162.12';
const baseURL: string = 'http://139.186.162.12';
//本地调试接口地址
const baseURL: string = 'http://192.168.2.209:8080';
// const baseURL: string = 'http://192.168.2.209:8080';
// 封装公共申请办法
function request(url: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', data?: object | any) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论