From 7bcef616c20c935e40a786a64eb29eb6c0f56e89 Mon Sep 17 00:00:00 2001 From: XiaoXinPro 14 IAH5R <568170040@qq.com> Date: Thu, 28 Sep 2023 15:40:31 +0800 Subject: [PATCH] upload --- H5_config.json | 5 +++++ src/pages/camera/index.vue | 5 +++-- src/utils/request.js | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 H5_config.json diff --git a/H5_config.json b/H5_config.json new file mode 100644 index 0000000..fe9f8ba --- /dev/null +++ b/H5_config.json @@ -0,0 +1,5 @@ +{ + "Name": "Metavatar_Screen_Android", + "Version": "1.0.0", + "H5_Url": "https://zhixiang.malls.iformall.com" +} \ No newline at end of file diff --git a/src/pages/camera/index.vue b/src/pages/camera/index.vue index ac1791c..2418f08 100644 --- a/src/pages/camera/index.vue +++ b/src/pages/camera/index.vue @@ -414,14 +414,15 @@ const refreshUploadStatus = async (id) => { try { const res = await findImage(id); console.log(res, "res"); - if (res.data.image) { + if (res.data.imageList && res.data.imageList.length) { + const imageUrl = res.data.imageList[0]; clearInterval(timer.value); uni.showToast({ title: "上传成功!", icon: "success", }); showQrCode.value = false; - UimgSrc.value = res.data.image; + UimgSrc.value = imageUrl; CimgSrc.value = ""; isShowCanvas.value = false; isSuccess.value = true; diff --git a/src/utils/request.js b/src/utils/request.js index 6e4aed7..c27b995 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -3,7 +3,7 @@ // import { store } from '@/store/index'; // const BASE_URL = 'https://test.metavatar.cc/C/'; -const BASE_URL = 'https://zhixiangtest.malls.iformall.com/C/'; +const BASE_URL = 'https://zhixiang.malls.iformall.com/C/'; // const BASE_URL = '192.168.1.105:7600/C/'; // const userInfoModulesPinia = userInfoModules(store);