Commit dd6b48d9 authored by Mac's avatar Mac

1

parent 77eaebdf
......@@ -2,7 +2,7 @@
<div class="auth-page">
<u-popup v-model="showDialog" mode="center" :mask-close-able="false" custom-style="padding:0;background:none;">
<img :src="pageinfo.pic_url" mode="widthFix" />
<button :style="sureStyle" class="hotsopt" open-type="getUserInfo" @getuserinfo="getUserInfo"></button>
<button :style="sureStyle" class="hotsopt" open-type="getUserInfo" @getuserinfo="showLogin==true?getUserInfo():''"></button>
<button :style="cancelStyle" class="hotsopt" @click="close"></button>
</u-popup>
<coupon v-if="showCoupons" :coupon-message="couponMessage" :cform="ComeFrom" @goLook="goLook" @closeBtn="closeBtn"></coupon>
......@@ -24,6 +24,7 @@
showCoupons: false,
couponMessage: '',
ComeFrom:'',
showLogin:true,
};
},
created() {
......@@ -115,6 +116,10 @@
//登录
getLogin(obj) {
var that = this;
that.showLogin =false
uni.showLoading({
title: '登录中'
});
let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0;
......@@ -136,6 +141,8 @@
}
},
res => {
uni.hideLoading();
that.showLogin=true;//防止多次点击登录
if (res.resultCode == 1) {
this.showDialog = false;
uni.setStorageSync('mall_UserInfo', res.data);
......@@ -153,6 +160,7 @@
uni.removeStorageSync("CounponPassword");
uni.removeStorageSync("KeyWord");
}
}
);
},
......
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