[bug]修改个人中心小标丢失的情况;修改购物车无法全选的问题
This commit is contained in:
@ -327,7 +327,7 @@
|
||||
},
|
||||
mounted: function() {
|
||||
let that = this;
|
||||
this.$store.dispatch('USERINFO', true)
|
||||
this.$store.dispatch('getUser', true)
|
||||
that.getCartInfo();
|
||||
if (that.$yroute.query.pinkid !== undefined)
|
||||
that.pinkId = that.$yroute.query.pinkid;
|
||||
|
@ -118,7 +118,7 @@
|
||||
|
||||
<checkbox-group @change="allChecked">
|
||||
<label class="well-check">
|
||||
<checkbox value :checked="isAllSelect && cartCount > 0"></checkbox>
|
||||
<checkbox value="allSelect" :checked="isAllSelect && cartCount > 0"></checkbox>
|
||||
<text class="checkAll">全选 ({{ cartCount }})</text>
|
||||
</label>
|
||||
</checkbox-group>
|
||||
@ -441,8 +441,10 @@ export default {
|
||||
},
|
||||
//全选
|
||||
allChecked: function(e) {
|
||||
console.log(e)
|
||||
let that = this;
|
||||
let selectAllStatus = e.mp.detail.value[0] ? true : false;
|
||||
let selectAllStatus = e.mp.detail.value[0]=='allSelect' ? true : false;
|
||||
console.log(selectAllStatus)
|
||||
// let selectAllStatus = that.isAllSelect;
|
||||
let checkedIds = [];
|
||||
// for (let i = 0; i < array.length; i++) {
|
||||
@ -460,6 +462,7 @@ export default {
|
||||
};
|
||||
that.cartList = [];
|
||||
that.cartList = cartList;
|
||||
console.log(this.cartList)
|
||||
this.$set(this, 'cartList', this.cartList);
|
||||
this.$set(this, 'isAllSelect', selectAllStatus);
|
||||
this.checkedIds = checkedIds;
|
||||
|
@ -146,15 +146,12 @@
|
||||
</view>-->
|
||||
</view>
|
||||
<view class="by">
|
||||
<text class="by-text">By@意象</text>
|
||||
<text class="by-text">By@Yshop</text>
|
||||
</view>
|
||||
<view class="by">
|
||||
<view>
|
||||
<text class="by-text">Copyright © 2020</text>
|
||||
</view>
|
||||
<view>
|
||||
<text class="by-text">漯河市大有前途网络科技有限公司</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer-line-height"></view>
|
||||
<!-- <SwitchWindow
|
||||
@ -220,7 +217,7 @@ export default {
|
||||
this.$yrouter.push("/pages/user/PersonalData/index");
|
||||
},
|
||||
getPhoneNumber: function(e) {
|
||||
let thit=this
|
||||
let thit = this;
|
||||
// 判断一下这里是不是小程序 如果是小程序,走获取微信手机号进行绑定
|
||||
if (e.mp.detail.errMsg == "getPhoneNumber:ok") {
|
||||
uni.showLoading({
|
||||
@ -287,10 +284,10 @@ export default {
|
||||
},
|
||||
User: function() {
|
||||
let that = this;
|
||||
// getUser().then(res => {
|
||||
// that.user = res.data;
|
||||
// that.orderStatusNum = res.data.orderStatusNum;
|
||||
// });
|
||||
getUser().then(res => {
|
||||
that.user = res.data;
|
||||
that.orderStatusNum = res.data.orderStatusNum;
|
||||
});
|
||||
},
|
||||
MenuUser: function() {
|
||||
let that = this;
|
||||
@ -338,7 +335,9 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
if (this.$store.getters.token) {
|
||||
this.User();
|
||||
//
|
||||
this.$store.dispatch('getUser', true)
|
||||
|
||||
this.MenuUser();
|
||||
this.isWeixin = isWeixin();
|
||||
}
|
||||
|
Reference in New Issue
Block a user