Commit dd6b48d9 authored by Mac's avatar Mac

1

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