Compare commits

..

No commits in common. "531a6da6111c0268e7754ccd2c05e779ace89969" and "36b69c31b1aee5f88b2bf636af656902c0b76f14" have entirely different histories.

5 changed files with 151 additions and 157 deletions

View File

@ -460,11 +460,11 @@ export default {
},
//
// getShopCar() {
// request(apiArr.getCarCount, "POST", {}).then((res) => {
// this.prevCarNum = res.total;
// });
// },
getShopCar() {
request(apiArr.getCarCount, "POST", {}).then((res) => {
this.prevCarNum = res.total;
});
},
getShopCarList() {
return request(apiArr.getCar, "POST", {}).then((res) => {
@ -472,7 +472,6 @@ export default {
this.carOrderList = [].concat(res.same_day_cart_list, res.normal_cart_list)
.flatMap(supplier => supplier.commodity_cart_and_goods_model);
this.carNum = res.total;
this.prevCarNum = res.total;
return res;
});
},
@ -511,7 +510,7 @@ export default {
// update
request(apiArr.updateCar, "POST", params).then((res) => {
// that.getShopCar();
that.getShopCar();
that.getShopCarList();
});
},
@ -549,7 +548,7 @@ export default {
request(apiArr.updateCar, "POST", params).then((res) => {
console.log(res);
this.getShopCarList();
// this.getShopCar();
this.getShopCar();
uni.showToast({
title: "操作成功!",
success() { },
@ -599,7 +598,7 @@ export default {
onShow() {
this.getShopCarList().then(() => {
this.getGoodsInfo();
// this.getShopCar();
this.getShopCar();
this.getComment();
});
},

View File

@ -515,11 +515,11 @@ export default {
},
//
// getShopCar() {
// request(apiArr.getCarCount, "POST", {}).then((res) => {
// this.prevCarNum = res.total;
// });
// },
getShopCar() {
request(apiArr.getCarCount, "POST", {}).then((res) => {
this.prevCarNum = res.total;
});
},
getShopCarList() {
return request(apiArr.getCar, "POST", {}).then((res) => {
@ -527,7 +527,6 @@ export default {
this.carOrderList = [].concat(res.same_day_cart_list, res.normal_cart_list)
.flatMap(supplier => supplier.commodity_cart_and_goods_model);
this.carNum = res.total;
this.prevCarNum = res.total;
return res;
});
},
@ -566,7 +565,7 @@ export default {
// update
request(apiArr.updateCar, "POST", params).then((res) => {
// that.getShopCar();
that.getShopCar();
that.getShopCarList();
});
},
@ -604,7 +603,7 @@ export default {
request(apiArr.updateCar, "POST", params).then((res) => {
console.log(res);
this.getShopCarList();
// this.getShopCar();
this.getShopCar();
uni.showToast({
title: "操作成功!",
success() { },
@ -661,7 +660,7 @@ export default {
onShow() {
this.getShopCarList().then(() => {
this.getGoodsInfo();
// this.getShopCar();
this.getShopCar();
this.getComment();
});
},

View File

@ -155,8 +155,7 @@ export default {
return
}
const params = {
user_id: uni.getStorageSync('userId'),
community_id: uni.getStorageSync('changeCommData') ? uni.getStorageSync('changeCommData').id : ''
user_id: uni.getStorageSync('userId')
}
return request(apiArr.groupBuyList, 'POST', params).then(res => {
const list = res.group_buy_list.map(item => {

View File

@ -64,8 +64,7 @@
{{ currentGG.goods_name }}
</view>
<view class="Msg">{{ currentGG.commodity_brief }}</view>
<view class="num">已售{{ soldOutNum }}</view>
<!-- | 剩余{{ currentGG.total_stock }} -->
<view class="num">已售{{ soldOutNum }} | 剩余{{ currentGG.total_stock }}</view>
</view>
<!-- 规格 -->
@ -105,7 +104,7 @@
<view class="fenge"></view>
<!-- 已购买区域 -->
<!-- <view>
<view>
<view class="purchase-area">
<view class="purchase-count">{{ totalCount }}人已购买</view>
<view class="view-more" @click="showPurchaseRecords">查看更多 &gt;</view>
@ -124,7 +123,7 @@
</view>
</view>
</view>
</view> -->
</view>
<view class="fenge"></view>
@ -174,6 +173,7 @@
</view>
<view class="cars" @click="car">
<u-badge numberType="limit" :type="type" max="99" :value="carNum"></u-badge>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/shop_car.png"
mode="widthFix"></image>
购物车
@ -433,9 +433,7 @@
<view class="welfare-container">
<view class="welfare-header">
<view class="welfare-title">
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/groupPurchase/welfare.png">
</image>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/groupPurchase/welfare.png"></image>
下单福利
</view>
<view class="welfare-action">已获得</view>
@ -491,13 +489,15 @@
<view class="share-buttons">
<button class="share-btn-wechat" open-type="share" bindtap="onShareButtonClick" />
<view class="share-item">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/shop_WX.png"
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/shop_WX.png"
mode="aspectFill"></image>
微信好友
</view>
<button class="share-btn-miniprogram" open-type="share" bindtap="onShareButtonClick" />
<view class="share-item" @click="shareFriend">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/shop_WX.png"
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/shop_WX.png"
mode="aspectFill"></image>
小程序链接
</view>
@ -509,7 +509,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
@ -1088,12 +1087,12 @@ export default {
},
//
// getShopCar() {
// request(apiArr.getCarCount, "POST", {}).then((res) => {
// this.carNum = res.total;
// this.prevCarNum = res.total;
// });
// },
getShopCar() {
request(apiArr.getCarCount, "POST", {}).then((res) => {
this.carNum = res.total;
this.prevCarNum = res.total;
});
},
getShopCarList() {
const params = {
@ -1103,7 +1102,6 @@ export default {
//
this.carOrderList = [].concat(res.same_day_cart_list, res.normal_cart_list)
.flatMap(supplier => supplier.commodity_cart_and_goods_model);
this.carNum = res.total;
return res;
});
},
@ -1134,7 +1132,7 @@ export default {
group_buy_id: this.info.commodity_goods_info_list[this.currentGGIndex].group_buy_activity_id,
}
request(apiArr.updateCar, "POST", params).then((res) => {
// that.getShopCar();
that.getShopCar();
that.getShopCarList();
});
},
@ -1163,7 +1161,7 @@ export default {
title: "操作成功!",
success() { },
});
// this.getShopCar();
this.getShopCar();
this.getGoodsInfo();
});
},
@ -1193,7 +1191,6 @@ export default {
this.showSeckill = false;
uni.removeStorageSync('changeZTAddress')
this.defZTAddress = {}
this.changeCount = 0
},
editAddress() {
@ -1282,7 +1279,7 @@ export default {
this.getShopCarList().then(() => {
this.getGoodsInfo();
});
// this.getShopCar();
this.getShopCar();
this.getZTAddress()
},

View File

@ -142,11 +142,11 @@
</u-grid>
</view>
</view>
<!-- <view class="customer" @click="headerCustomerClick">
<view class="customer" @click="headerCustomerClick">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/page_user_Vector16.png"
mode="" />
<view>客服</view>
</view> -->
</view>
<view style="padding-top: 174rpx;"></view>
<nav-footer :current="4" />
</view>
@ -183,7 +183,7 @@ export default {
{
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/page_user_Group_1563.png",
name: "收货地址",
url: "/packages/shop/address/index",
url: "",
},
{
image: "https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/page_user_Group_1564.png",
@ -468,12 +468,12 @@ export default {
uni.setStorageSync('work_order_permission', community_worker && community_worker[0].work_order_permission == 1 || false);
uni.setStorageSync('phone', res.account);
uni.hideLoading();
// uni.showToast({
// title: '',
// icon: 'success',
// mask: true,
// duration: 2000,
// })
uni.showToast({
title: '刷新成功',
icon: 'success',
mask: true,
duration: 2000,
})
}
},