Browse Source

upload

dev_YWQ
HolyKnightIX 1 year ago
parent
commit
7bcef616c2
3 changed files with 9 additions and 3 deletions
  1. +5
    -0
      H5_config.json
  2. +3
    -2
      src/pages/camera/index.vue
  3. +1
    -1
      src/utils/request.js

+ 5
- 0
H5_config.json View File

@@ -0,0 +1,5 @@
{
"Name": "Metavatar_Screen_Android",
"Version": "1.0.0",
"H5_Url": "https://zhixiang.malls.iformall.com"
}

+ 3
- 2
src/pages/camera/index.vue View File

@@ -414,14 +414,15 @@ const refreshUploadStatus = async (id) => {
try { try {
const res = await findImage(id); const res = await findImage(id);
console.log(res, "res"); 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); clearInterval(timer.value);
uni.showToast({ uni.showToast({
title: "上传成功!", title: "上传成功!",
icon: "success", icon: "success",
}); });
showQrCode.value = false; showQrCode.value = false;
UimgSrc.value = res.data.image;
UimgSrc.value = imageUrl;
CimgSrc.value = ""; CimgSrc.value = "";
isShowCanvas.value = false; isShowCanvas.value = false;
isSuccess.value = true; isSuccess.value = true;


+ 1
- 1
src/utils/request.js View File

@@ -3,7 +3,7 @@
// import { store } from '@/store/index'; // import { store } from '@/store/index';


// const BASE_URL = 'https://test.metavatar.cc/C/'; // 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 BASE_URL = '192.168.1.105:7600/C/';


// const userInfoModulesPinia = userInfoModules(store); // const userInfoModulesPinia = userInfoModules(store);


Loading…
Cancel
Save