Commit ac79fb13 authored by Mac's avatar Mac

1

parent 9f78f0eb
...@@ -300,6 +300,7 @@ export default { ...@@ -300,6 +300,7 @@ export default {
this.couponsObj = x this.couponsObj = x
} }
}) })
this.getLogin()
} }
); );
let u = uni.getStorageSync("mall_UserInfo"); let u = uni.getStorageSync("mall_UserInfo");
...@@ -308,6 +309,32 @@ export default { ...@@ -308,6 +309,32 @@ export default {
} }
}, },
getLogin() {
var that = this;
let pid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0;
let SmallShopId = uni.getStorageSync("SmallShopId")?uni.getStorageSync("SmallShopId").SmallShopId:0;
that.request2(
{
url: '/api/AppletLogin/Login',
data: {
Source: 1,
OpenId: this.mall_UserInfo.OpenId,
Name: this.mall_UserInfo.Name,
Photo: this.mall_UserInfo.Photo,
Moblie: '',
SuperiorId: pid,
SmallShopId:SmallShopId,
}
},
res => {
if (res.resultCode == 1) {
uni.setStorageSync('mall_UserInfo', res.data);
uni.removeStorageSync('pid');
uni.removeStorageSync('SmallShopId');
}
}
);
},
getMicroShopBasics(){ getMicroShopBasics(){
this.request2( this.request2(
{ {
......
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