liudan 8 months ago
parent bb3073c7ad
commit cd6a723e2d
  1. 3
      components/Authorize.vue
  2. 6
      components/couponListWindow/index.vue
  3. 4
      pages/goods_details/index.vue
  4. 35
      pages/order_addcart/order_addcart.vue
  5. 5
      pages/store/home/index.vue
  6. 9
      pages/user/index.vue
  7. 3
      pages/users/user_integral1/index.vue

@ -235,6 +235,9 @@
if(res.data.result.user.isNew && this.mp_is_new){
this.editModal = true;
}
return self.$util.Tips({
title: '授权成功'
});
}else{
uni.setStorageSync('auth_token',res.data.result.key);
return uni.navigateTo({

@ -103,6 +103,7 @@
getCouponUser: function(index, item) {
let that = this;
if (item.issue) return true;
switch (this.openType) {
case 0:
//
@ -113,6 +114,11 @@
title: "领取成功"
});
that.$emit('ChangCoupons', item);
}).catch((res)=>{
console.log(res,"==--")
that.$util.Tips({
title: res
});
})
break;
case 1:

@ -239,7 +239,7 @@
</scroll-view>
</view>
</view>
<view class='product-intro' id="past3">
<view class='product-intro' id="past3" style="padding-bottom: 100rpx;">
<view class='title'>产品介绍</view>
<view class='conter' v-if="description">
<!-- #ifndef APP-PLUS -->
@ -1875,7 +1875,7 @@
color: #fff;
font-size: 28rpx;
&.sold_out {
width: 444rpx;
// width: 444rpx;
border-radius: 50rpx;
}
&.virtual_buy {

@ -264,11 +264,12 @@
this.getNav();
// uni.showTabBar();
if (this.isLogin == true) {
this.isAllSelect = true; //
this.getCartList();
this.getCartNum();
this.goodsHidden = true;
this.footerswitch = true;
this.isAllSelect = false; //
this.selectValue = []; //
this.isShowAuth = false;
uni.setStorage({
@ -673,7 +674,20 @@
}
})
})
this.cartList.valid = res.data.list
this.cartList.valid = res.data.list;
let newArr=JSON.parse(uni.getStorageSync('cartSelectedGoods'))
this.cartList.valid.forEach(item=>{
item.list.forEach(p=>{
newArr.forEach(i=>{
if(p.product_id==i){
console.log(i)
p.check=true
this.$set(p,'check',true)
}
})
})
})
this.cartList.invalid = res.data.fail
if(res.data.list.length == 0 && res.data.list.length == 0){
this.recommend = true;
@ -685,6 +699,7 @@
}
const sku = {}
this.checkboxAllChange()
//
});
},
//
@ -705,7 +720,21 @@
},
//
goodsCheck(goods) {
goods.check = !goods.check
console.log(goods)
goods.check = !goods.check;
let selectedCart=[]
if(goods.check){
this.cartList.valid.forEach(item=>{
item.list.forEach(i=>{
if(goods.product_id==i.product_id){
selectedCart.push(i.product_id)
}
})
})
uni.setStorageSync('cartSelectedGoods',JSON.stringify(selectedCart))
}
this.cartAllCheck('goodsCheck')
},
//

@ -179,7 +179,7 @@
<!-- v-show="(tabActive == 3 || diyActive == 1 || diyActive == 2) && tabActive != 5" -->
<view >
<!-- 商品 -->
<view v-if="goods.length" class="goods-wrap" id="goods" @touchmove="onTouchmove">
<view v-if="goods.length>0" class="goods-wrap" id="goods" @touchmove="onTouchmove">
<view v-if="isColumn" class="goods column">
<view v-for="item in goods" :key="item.product_id" class="item" @click="goGoodsDetail(item)">
<view class="image">
@ -227,8 +227,9 @@
<text :hidden="!goodsLoading" class="iconfont icon-jiazai loading"></text>
{{loadTitle}}
</view>
<emptyPage v-if="goods.length == 0 && !goodsLoading" title="暂无商品~"></emptyPage>
</view>
<emptyPage v-if="goods.length == 0 && !goodsLoading" title="暂无商品~"></emptyPage>
</view>
<!-- 分类 -->

@ -630,7 +630,9 @@
that.is_promoter = res.data.is_promoter;
that.extension_status = res.data.extension_status;
Object.keys(res.data.assets).forEach(item=>{
that.$set(that.assets,item,Math.floor(res.data.assets[item]));
// that.$set(that.assets,item,Math.floor(res.data.assets[item]));
let num = Number(res.data.assets[item]).toFixed(2)
that.$set(that.assets,item,num);
})
that.spreadPeopleHandle()
@ -877,6 +879,11 @@
.num {
font-size: 38rpx;
font-weight: bold;
display: inline-block;
width: 120rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.txt {
margin-top: 8rpx;

@ -45,6 +45,7 @@
<view class='item acea-row row-between-wrapper' v-for="(item,index) in integralList" :key="index">
<view>
<view class='state'>{{item.type}}</view>
<view style="margin: 10rpx 0;">订单号:{{item.order_sn}}</view>
<view>{{item.create_time}}</view>
</view>
<view>
@ -425,7 +426,7 @@
.integral-details .wrapper .list .item .state {
margin-bottom: 24rpx;
// margin-bottom: 24rpx;
font-size: 30rpx;
color: #333333;
}

Loading…
Cancel
Save