Commit f9d1b74f authored by youjie's avatar youjie

no message

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