|
@@ -267,7 +267,7 @@
|
|
|
<uni-popup ref="regiment" type="bottom" class="popup" background-color="#FFFFFF">
|
|
|
<view class="popup_title">可参与的拼单</view>
|
|
|
<view class="regiment_popup_list">
|
|
|
- <view class="regiment_popup_item" v-for="(item, index) in productInfo.regiment_list" @click="checkedCoupon(index, false)" :key="index">
|
|
|
+ <view class="regiment_popup_item" v-for="(item, index) in productInfo.regiment_list" :key="index">
|
|
|
<view class="username">
|
|
|
<image class="user_image" :src="item.userpic"></image>
|
|
|
<text class="username_text">{{ item.username }}</text>
|
|
@@ -509,15 +509,27 @@ export default {
|
|
|
this.priceHandler();
|
|
|
// 显示下单弹出层
|
|
|
this.$refs.specPopup.open("bottom");
|
|
|
- // 结果
|
|
|
- this.$http.request("api/custom_coupon/get_checked", this.requestParam).then((re) => {
|
|
|
- if (re.code == "success") {
|
|
|
- // 赋值
|
|
|
- this.couponList = re.data;
|
|
|
- // 优惠券是否可用
|
|
|
- this.checkCoupon();
|
|
|
- }
|
|
|
- });
|
|
|
+ // 如果非团购的话,查询优惠券
|
|
|
+ if( type == 3 || type == 4 ){
|
|
|
+ // 选择优惠券重置
|
|
|
+ this.couponList = [];
|
|
|
+ // 已经选择的优惠券ID
|
|
|
+ this.customCoupon = 0;
|
|
|
+ // 计算扣减
|
|
|
+ this.couponRebate();
|
|
|
+ // 计算价格
|
|
|
+ this.priceHandler();
|
|
|
+ }else{
|
|
|
+ // 结果
|
|
|
+ this.$http.request("api/custom_coupon/get_checked", this.requestParam).then((re) => {
|
|
|
+ if (re.code == "success") {
|
|
|
+ // 赋值
|
|
|
+ this.couponList = re.data;
|
|
|
+ // 优惠券是否可用
|
|
|
+ this.checkCoupon();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
// 地址列表
|
|
|
this.getAddrList();
|
|
|
//只有一组sku时是否下架
|
|
@@ -672,7 +684,7 @@ export default {
|
|
|
"api/orders/create_regiment",
|
|
|
{
|
|
|
product_list: productList,
|
|
|
- custom_coupon_id: this.customCoupon,
|
|
|
+ // custom_coupon_id: this.customCoupon,
|
|
|
addr_id: this.checkedAddr.id,
|
|
|
btn_type: this.specBtnType,
|
|
|
regiment_id: this.regiment_id,
|