Commit ea7ebf3f authored by youjie's avatar youjie

no message

parent f8d09973
......@@ -374,7 +374,7 @@ export default {
methods: {
getPhoneNumber (e) {
this.loadingMobile = true
if(e.detail.errMsg=="getPhoneNumber:ok"){
if(e.detail.errMsg&&e.detail.errMsg=="getPhoneNumber:ok"&&e.detail.code){
let parms = {
url: "/api/AppletLogin/GetUserPhoneNumber",
data: {
......@@ -382,9 +382,9 @@ export default {
}
};
this.request2(parms, (res) => {
this.loadingMobile = false
if (res.resultCode == 1) {
this.dataOne.Mobile = res.data.phoneNumber
this.loadingMobile = false
if(res.data.code==1) this.dataOne.Mobile = res.data&&res.data.phoneNumber?res.data.phoneNumber:""
if(!this.dataOne.Mobile||this.dataOne.Mobile==""){
this.isMobile = false
wx.showToast({
......@@ -393,14 +393,6 @@ export default {
duration: 1000,
});
}
}else{
this.loadingMobile = false
this.isMobile = false
wx.showToast({
icon: 'none',
title: "请手动输入手机号",
duration: 1000,
});
}
});
}else {
......
......@@ -248,6 +248,7 @@ export default {
TenantId: 18,
replace: null,
secondary: null,
GetYBConfig: null,
};
},
onShareTimeline() {
......@@ -345,10 +346,10 @@ export default {
},
methods: {
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.msg.BrandName=''
this.GetBrandClassList();
this.getPrizeList();
this.u = uni.getStorageSync("mall_UserInfo");
this.msg.BrandName=''
this.GetBrandClassList();
this.getPrizeList();
},
//关闭登录窗口
gbAuth() {
......@@ -386,6 +387,16 @@ export default {
}
}
);
this.request2({
url: "/api/AppletTrade/GetYBConfig",
data: {},
},
(res) => {
if (res.resultCode == 1) {
this.GetYBConfig = res.data
}
}
);
this.init();
},
ResetQuery(){
......
......@@ -326,10 +326,10 @@ export default {
replace: null,
secondary: null,
ShopTypeList: [
{
text: '全部',
value: -1
},
// {
// text: '全部',
// value: -1
// },
// {
// text: '成都',
// value: 1
......@@ -339,6 +339,7 @@ export default {
// value: 2
// },
],
GetYBConfig: null
};
},
onShareTimeline() {
......@@ -447,7 +448,7 @@ export default {
gbAuth() {
this.showAuth = false
},
// 获取载体列表
// 获取类型
getTypeList() {
if(this.TenantId==18){
let parms = {
......@@ -496,6 +497,17 @@ export default {
}
}
});
this.request2({
url: "/api/AppletTrade/GetYBConfig",
data: {},
},
(res) => {
if (res.resultCode == 1) {
this.GetYBConfig = res.data
this.ShopTypeList = res.data.mallBaselList
}
}
);
}
this.getCarrierPageList();
......
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