Commit 5e5187be authored by youjie's avatar youjie

no message

parent aceecb27
......@@ -225,4 +225,16 @@ export function GetOrderPage(data) {
method: 'post',
data
})
}
/**
* 获取亲友团详情
* @param {JSON参数} data
*/
export function GetUserInfoByUnionId(data) {
return request({
url: '/AppletCenter/GetUserInfoByUnionId',
method: 'post',
data
})
}
\ No newline at end of file
......@@ -282,12 +282,14 @@
width: 200
}
let res = await CreateFriendQrCode(msg);
if (res) {
if (res.Code==1) {
uni.hideLoading()
data.QRcodeImg = data.erpUrl+res.Data
// console.log(data.QRcodeImg,'----')
data.showPopup = true
}
}else{
uni.hideLoading()
}
},
async getData() {
uni.showLoading()
......
......@@ -237,12 +237,15 @@
data.loading = false
uni.showLoading()
let res = await SetMyChild(data.form);
if (res) {
if (res.Code==1) {
uni.hideLoading()
data.loading = true
uni.navigateBack({
delta: 1
});
}else{
uni.hideLoading()
data.loading = true
}
},
async getData() {
......
......@@ -164,6 +164,7 @@
res.Data.Account = msg.Account;
uni.setStorageSync("userInfo", res.Data);
Toast.success("登录成功");
data.loading=false
setTimeout(() => {
let data = uni.getStorageSync("userInfo");
if (data) {
......
......@@ -256,11 +256,13 @@
TeacherId: item.AccountId
}
let res = await CreateTeacherCode(msg);
if (res) {
if (res.Code==1) {
data.QRcodeImg = res.Data.WXQRCode
data.showPopup = true
uni.hideLoading()
that.getData()
}else{
uni.hideLoading()
}
},
initColor(){
......
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