Commit ea7ebf3f authored by youjie's avatar youjie

no message

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