Commit 796d322c authored by Mac's avatar Mac

首页登录 和 领券中心修改

parent b021d5e5
......@@ -85,6 +85,7 @@ export default {
msg:{
pageIndex: 1,
pageSize:10,
SmallShopId:0,
},
page_count: 1,
status: "loadmore",
......@@ -124,6 +125,7 @@ export default {
};
this.showAuth = true;
} else{
this.loading = true;
this.init();
}
......@@ -132,7 +134,7 @@ export default {
methods: {
init() {
this.msg.SmallShopId = this.u.UserSmallShopId
this.request2(
{
url: '/api/AppletUser/GetAllCouponPageList',
......
......@@ -76,6 +76,7 @@
@goLook="goLook"
@closeBtn="closeBtn"
></coupon>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</view>
</view>
</template>
......@@ -101,6 +102,7 @@ import addialog from "@/components/addialog/index";
import quicknav from "@/components/quicknav/index";
import coupon from "@/components/coupons/coupons";
import pingtuan from "@/components/pingtuan/index";
import auth from "@/components/auth/index.vue";
export default {
data() {
return {
......@@ -120,6 +122,8 @@ export default {
titleStyle: "",
pagePaddingBottom: "0px",
showBack: false,
showAuth:false,
U:{},
};
},
components: {
......@@ -143,6 +147,7 @@ export default {
quicknav,
coupon,
pingtuan,
auth
},
onLoad(options) {
console.log(options, "option");
......@@ -219,6 +224,18 @@ export default {
},
});
}
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
}
// #endif
this.init();
let set = uni.getStorageSync("basedata")
......@@ -544,6 +561,14 @@ export default {
closeBtn() {
this.showCoupons = false;
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
},
//关闭登录窗口
gbAuth(){
this.showAuth=false;
},
},
};
</script>
......
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