Commit 74ab0a09 by zhangquan

不调二维码的接口

1 parent 4c9dabf6
...@@ -58,12 +58,14 @@ Page({ ...@@ -58,12 +58,14 @@ Page({
detail detail
}) { }) {
if (!detail.code) return if (!detail.code) return
wx.showLoading()
USERAPI.authUserPhone(detail, this.loginToken).then(({ USERAPI.authUserPhone(detail, this.loginToken).then(({
code, code,
data, data,
message, message,
errId errId
}) => { }) => {
wx.hideLoading()
if (code == '0' || errId=='30990103'){ if (code == '0' || errId=='30990103'){
let target = null let target = null
if(code == '0' && data.loginUserInfoList?.length){ if(code == '0' && data.loginUserInfoList?.length){
...@@ -93,6 +95,7 @@ Page({ ...@@ -93,6 +95,7 @@ Page({
this.register(regParmas) this.register(regParmas)
} }
}else{ }else{
wx.hideLoading()
wx.$api.showToast(message || '系统异常') wx.$api.showToast(message || '系统异常')
} }
}).catch(({ }).catch(({
......
...@@ -91,9 +91,9 @@ Page({ ...@@ -91,9 +91,9 @@ Page({
width: imgW, width: imgW,
height: imgH height: imgH
}); });
ActivityApi.getActivityVisitorList({ // ActivityApi.getActivityVisitorList({
actNum, activeNavIdx // actNum, activeNavIdx
}).then(response => { // }).then(response => {
this.setData({ this.setData({
imgH: (imgH/imgW)*450 imgH: (imgH/imgW)*450
}) })
...@@ -106,13 +106,13 @@ Page({ ...@@ -106,13 +106,13 @@ Page({
height: imgH, height: imgH,
url: img, url: img,
}, },
{ // {
x:imgW-64, // x:imgW-64,
y: imgH-arr[actNum]-64, // y: imgH-arr[actNum]-64,
width: 64, // width: 64,
height: 64, // height: 64,
url: response, //二维码 // url: response, //二维码
}, // },
]; ];
drawFun.begin({ drawFun.begin({
imageList: imgList, imageList: imgList,
...@@ -123,8 +123,7 @@ Page({ ...@@ -123,8 +123,7 @@ Page({
}); });
wx.hideLoading() wx.hideLoading()
}) })
console.log(response,'response') // })
})
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!