Commit f9d1b74f authored by youjie's avatar youjie

no message

parent 5630dea1
......@@ -12,7 +12,6 @@
<text v-if="pageData.StuName">{{ pageData.StuName }}</text>
<text v-if="!pageData.StuName&&pageData.StuName!==''"
@click="jumpPage('/pages/login/login')">未登录</text>
</view>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1663903702000_543.png"
mode="aspectFill" style="width:231rpx;height:48rpx;margin-top: 30rpx;">
......@@ -226,7 +225,6 @@
proxy
} = getCurrentInstance();
let data = reactive({
UnionId:'',
QRcodeImg:'',
showPopup:false,
colors:['#9ADBC5','#87DDEA','#FE8D6F','#F986AA','#FDC453'],
......@@ -251,20 +249,25 @@
}
},
async getQRcodeImg(item){
getQRcodeImg(item){
uni.showLoading()
let msg = {
TeacherId: item.AccountId
}
let res = await CreateTeacherCode(msg);
if (res.Code==1) {
data.QRcodeImg = res.Data.WXQRCode
data.showPopup = true
CreateTeacherCode(msg).then(res => {
if (res.Code==1) {
data.QRcodeImg = res.Data.WXQRCode
data.showPopup = true
uni.hideLoading()
methods.getData()
}else{
uni.hideLoading()
}
}).catch(e => {
uni.hideLoading()
that.getData()
}else{
uni.hideLoading()
}
})
},
initColor(){
if(data.erpUsers){
......@@ -286,22 +289,29 @@
url: num?url+'?FriendCount='+num:url,
});
},
async getData() {
getData() {
uni.showLoading()
let res = await GetMyCenterInfo({
UnionId: data.UnionId
});
if (res) {
GetMyCenterInfo({
UnionId: uni.getStorageSync('wxUserAuthInfo').unionid
}).then(res => {
if(res.Code==1){
uni.hideLoading()
data.pageData = res.Data;
methods.addChild();
}else{
uni.hideLoading()
}
}).catch(e => {
uni.hideLoading()
data.pageData = res.Data;
}
})
},
callphone(num) {
uni.makePhoneCall({
phoneNumber: num,
});
},
async getyuyue() {
getyuyue() {
const msg = {
pageIndex: 1,
pageSize: 1,
......@@ -311,10 +321,16 @@
TeacherId: 0,
Q_SelectNormal: 1,
}
let res = await GetMyAppointPageList(msg);
if (res) {
data.yuyueNum = res.Data.Count
}
GetMyAppointPageList(msg).then(res => {
if(res.Code==1){
data.yuyueNum = res.Data.Count
}else{
}
}).catch(e => {
})
},
};
let that = methods;
......@@ -329,7 +345,7 @@
};
},
onLoad(options) {
this.UnionId = uni.getStorageSync('wxUserAuthInfo').unionid
},
onShow() {
if(uni.getStorageSync('userInfo') && !uni.getStorageSync('erpUserInfo')){
......
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