Commit b13eff21 authored by xinzhedeai's avatar xinzhedeai

fix: 爱山东网管base64图片卡死问题处理

parent c5757270
...@@ -454,15 +454,9 @@ window.addEventListener('load', function () { ...@@ -454,15 +454,9 @@ window.addEventListener('load', function () {
forbidClick: true, forbidClick: true,
loadingType: 'spinner', loadingType: 'spinner',
}); });
http2.post({ http3.get(`/gq/merchant/${gemhoUtil.getParameter('merId')}`, {
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"], }).then((res) => {
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
sign: 11,
"merId": gemhoUtil.getParameter('merId'),
}
}, (res) => {
if (!res) { // 中台返回为undefined 重新请求 if (!res) { // 中台返回为undefined 重新请求
vant.Toast.clear() vant.Toast.clear()
setTimeout(() => { setTimeout(() => {
...@@ -471,13 +465,13 @@ window.addEventListener('load', function () { ...@@ -471,13 +465,13 @@ window.addEventListener('load', function () {
return return
} }
if (res) { if (res) {
console.log('接口回调数据', JSON.parse(res)) console.log('接口回调数据', res)
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {
vant.Toast.clear() vant.Toast.clear()
}) })
}, 0); }, 0);
var result = JSON.parse(res) var result = res
// 图片数据结构处理 // 图片数据结构处理
let tempData = result.data let tempData = result.data
...@@ -493,19 +487,13 @@ window.addEventListener('load', function () { ...@@ -493,19 +487,13 @@ window.addEventListener('load', function () {
this.formData = tempData this.formData = tempData
console.log('******详情********') console.log('******详情********')
// setTimeout(()=>{
// this.formData.smallPlaceTypeName = "0"
// },1000)
// this.formData = {} // 表单赋值
// 这里添加跳转逻辑 // 这里添加跳转逻辑
const QR_IMAGE_URL = result.data.qrCodeUrl const QR_IMAGE_URL = result.data.qrCodeUrl
this.qrCodeUrl = result.data.qrCodeUrl this.qrCodeUrl = result.data.qrCodeUrl
} }
}) })
}, },
// 新增选择确认方法 // 新增选择确认方法
// onConfirmType(value) { // onConfirmType(value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment