Commit 5e5187be authored by youjie's avatar youjie

no message

parent aceecb27
...@@ -225,4 +225,16 @@ export function GetOrderPage(data) { ...@@ -225,4 +225,16 @@ export function GetOrderPage(data) {
method: 'post', method: 'post',
data 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 @@ ...@@ -282,12 +282,14 @@
width: 200 width: 200
} }
let res = await CreateFriendQrCode(msg); let res = await CreateFriendQrCode(msg);
if (res) { if (res.Code==1) {
uni.hideLoading() uni.hideLoading()
data.QRcodeImg = data.erpUrl+res.Data data.QRcodeImg = data.erpUrl+res.Data
// console.log(data.QRcodeImg,'----') // console.log(data.QRcodeImg,'----')
data.showPopup = true data.showPopup = true
} }else{
uni.hideLoading()
}
}, },
async getData() { async getData() {
uni.showLoading() uni.showLoading()
......
...@@ -237,12 +237,15 @@ ...@@ -237,12 +237,15 @@
data.loading = false data.loading = false
uni.showLoading() uni.showLoading()
let res = await SetMyChild(data.form); let res = await SetMyChild(data.form);
if (res) { if (res.Code==1) {
uni.hideLoading() uni.hideLoading()
data.loading = true data.loading = true
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}); });
}else{
uni.hideLoading()
data.loading = true
} }
}, },
async getData() { async getData() {
......
...@@ -164,6 +164,7 @@ ...@@ -164,6 +164,7 @@
res.Data.Account = msg.Account; res.Data.Account = msg.Account;
uni.setStorageSync("userInfo", res.Data); uni.setStorageSync("userInfo", res.Data);
Toast.success("登录成功"); Toast.success("登录成功");
data.loading=false
setTimeout(() => { setTimeout(() => {
let data = uni.getStorageSync("userInfo"); let data = uni.getStorageSync("userInfo");
if (data) { if (data) {
......
...@@ -256,11 +256,13 @@ ...@@ -256,11 +256,13 @@
TeacherId: item.AccountId TeacherId: item.AccountId
} }
let res = await CreateTeacherCode(msg); let res = await CreateTeacherCode(msg);
if (res) { if (res.Code==1) {
data.QRcodeImg = res.Data.WXQRCode data.QRcodeImg = res.Data.WXQRCode
data.showPopup = true data.showPopup = true
uni.hideLoading() uni.hideLoading()
that.getData() that.getData()
}else{
uni.hideLoading()
} }
}, },
initColor(){ 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