添加:商品支持设置是否开启赠送额度
This commit is contained in:
parent
45ba192d96
commit
4b8fe723a2
|
|
@ -134,7 +134,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="boxs" v-if="item.order.total_integral > 0">
|
<!--<view class="boxs" v-if="item.order.total_integral > 0">
|
||||||
<view class='item acea-row row-between-wrapper' v-if="item.order.use_mer_integral > 0">
|
<view class='item acea-row row-between-wrapper' v-if="item.order.use_mer_integral > 0">
|
||||||
<view>本商户积分抵扣</view>
|
<view>本商户积分抵扣</view>
|
||||||
<view class='discount'>使用{{item.order.use_mer_integral}}积分抵扣{{item.order.use_mer_integral_price}}</view>
|
<view class='discount'>使用{{item.order.use_mer_integral}}积分抵扣{{item.order.use_mer_integral_price}}</view>
|
||||||
|
|
@ -143,7 +143,7 @@
|
||||||
<view>平台积分抵扣</view>
|
<view>平台积分抵扣</view>
|
||||||
<view class='discount'>使用{{item.order.use_platform_integral}}积分抵扣{{item.order.use_platform_integral_price}}</view>
|
<view class='discount'>使用{{item.order.use_platform_integral}}积分抵扣{{item.order.use_platform_integral_price}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>-->
|
||||||
<view class='item acea-row row-between-wrapper' v-if='shippingType==0 && item.isTake == 0 && order_model == 0'>
|
<view class='item acea-row row-between-wrapper' v-if='shippingType==0 && item.isTake == 0 && order_model == 0'>
|
||||||
<view>快递费用 <text
|
<view>快递费用 <text
|
||||||
v-if="item.list[0].productPresell && item.list[0].productPresell.presell_type == 2">(尾款阶段)</text>
|
v-if="item.list[0].productPresell && item.list[0].productPresell.presell_type == 2">(尾款阶段)</text>
|
||||||
|
|
@ -333,10 +333,10 @@
|
||||||
<view class='item acea-row row-between-wrapper' v-if="coupon_price > 0">
|
<view class='item acea-row row-between-wrapper' v-if="coupon_price > 0">
|
||||||
<view>店铺优惠金额:</view>
|
<view>店铺优惠金额:</view>
|
||||||
<view class='money'>-¥{{coupon_price}}</view>
|
<view class='money'>-¥{{coupon_price}}</view>
|
||||||
</view>
|
</view><!--&& is_has_integral_use > 0-->
|
||||||
<view class='item acea-row row-between-wrapper integral-switch-content' v-if="open_integral && userInfo.integral > 0 && order_type == 0 && is_has_integral_use > 0">
|
<!--<view class='item acea-row row-between-wrapper integral-switch-content' v-if="open_integral && userInfo.integral > 0 && order_type == 0">
|
||||||
<view>积分抵扣:</view>
|
<view>积分抵扣:</view>
|
||||||
<view class="integral-switch-list">
|
<!–<view class="integral-switch-list">
|
||||||
<view class="integral-s-l-box" v-if="hold_mer_integral > 0" @click="changeIntegral('mer')">
|
<view class="integral-s-l-box" v-if="hold_mer_integral > 0" @click="changeIntegral('mer')">
|
||||||
<view v-if="!use_mer_integral">持有相关商户积分<text class="pColor">{{hold_mer_integral}}</text></view>
|
<view v-if="!use_mer_integral">持有相关商户积分<text class="pColor">{{hold_mer_integral}}</text></view>
|
||||||
<view v-else>
|
<view v-else>
|
||||||
|
|
@ -357,16 +357,16 @@
|
||||||
<view class='iconfont icon-xuanzhong1' v-else></view>
|
<view class='iconfont icon-xuanzhong1' v-else></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>–>
|
||||||
<!--<view class='money'>
|
<view class='money'>
|
||||||
<text v-if="!use_integral">当前积分<text class="pColor">{{userInfo.integral}}</text></text>
|
<text v-if="!use_integral">当前积分<text class="pColor">{{userInfo.integral}}</text></text>
|
||||||
<text v-else>使用了{{integral_count}}个积分,抵扣<text class="pColor">{{integral_price}}元</text></text>
|
<text v-else>使用了{{integral_count}}个积分,抵扣<text class="pColor">{{integral_price}}元</text></text>
|
||||||
<view class="checkbox integral_checked" @click="changeIntegral">
|
<view class="checkbox integral_checked" @click="changeIntegral">
|
||||||
<view class="iconfont icon-weixuanzhong" v-if="!use_integral"></view>
|
<view class="iconfont icon-weixuanzhong" v-if="!use_integral"></view>
|
||||||
<view class='iconfont icon-xuanzhong1' v-else></view>
|
<view class='iconfont icon-xuanzhong1' v-else></view>
|
||||||
</view>
|
</view>
|
||||||
</view>-->
|
|
||||||
</view>
|
</view>
|
||||||
|
</view>-->
|
||||||
<!--<view class='item acea-row row-between-wrapper' v-if="!seckillId && order_type != 3 && order_type != 4 && enabledPlatformCoupon">
|
<!--<view class='item acea-row row-between-wrapper' v-if="!seckillId && order_type != 3 && order_type != 4 && enabledPlatformCoupon">
|
||||||
<view>平台优惠券<text @tap="showCoupon" class="iconfont icon-wenhao1"></text></view>
|
<view>平台优惠券<text @tap="showCoupon" class="iconfont icon-wenhao1"></text></view>
|
||||||
<block v-if="platformCoupon.length > 0">
|
<block v-if="platformCoupon.length > 0">
|
||||||
|
|
@ -397,8 +397,9 @@
|
||||||
<text @click="openDiscount">优惠明细</text>
|
<text @click="openDiscount">优惠明细</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100'
|
<view class='settlement' :class='couponData.status != "noAddress" ? "" : "disabled"' style='z-index:100' @tap="SubOrder">
|
||||||
@tap="SubOrder">{{couponData.status != "noAddress" ? '提交订单':'选择地址'}}</view>
|
{{couponData.status != "noAddress" ? '提交订单':'选择地址'}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<block v-if="coupon.status">
|
<block v-if="coupon.status">
|
||||||
|
|
@ -585,15 +586,15 @@
|
||||||
animated: false,
|
animated: false,
|
||||||
totalPrice: 0,
|
totalPrice: 0,
|
||||||
// use_integral: false,
|
// use_integral: false,
|
||||||
use_mer_integral: false,// 是否使用商户积分
|
// use_mer_integral: false,// 是否使用商户积分
|
||||||
use_platform_integral: false,// 是否使用平台积分
|
// order_use_mer_integral: 0,// 使用的商户总积分
|
||||||
order_use_mer_integral: 0,// 使用的商户总积分
|
// order_use_mer_integral_price: 0,// 商户积分抵扣的总金额
|
||||||
order_use_mer_integral_price: 0,// 商户积分抵扣的总金额
|
// use_platform_integral: false,// 是否使用平台积分
|
||||||
order_use_platform_integral: 0,// 使用的平台总积分
|
// order_use_platform_integral: 0,// 使用的平台总积分
|
||||||
order_use_platform_integral_price: 0,// 平台积分抵扣的总金额
|
// order_use_platform_integral_price: 0,// 平台积分抵扣的总金额
|
||||||
hold_mer_integral: 0,// 用户持有的当前订单相关商户总商户积分
|
// hold_mer_integral: 0,// 用户持有的当前订单相关商户总商户积分
|
||||||
hold_platform_integral: 0,// 用户持有的平台积分总数
|
// hold_platform_integral: 0,// 用户持有的平台积分总数
|
||||||
is_has_integral_use: 0,
|
// is_has_integral_use: 0,
|
||||||
pagesUrl: "",
|
pagesUrl: "",
|
||||||
orderKey: "",
|
orderKey: "",
|
||||||
offlinePostage: "",
|
offlinePostage: "",
|
||||||
|
|
@ -742,17 +743,17 @@
|
||||||
},
|
},
|
||||||
changeIntegral: function(type) {
|
changeIntegral: function(type) {
|
||||||
console.log("--------- 变更类型 ---------------",type);
|
console.log("--------- 变更类型 ---------------",type);
|
||||||
// this.use_integral = !this.use_integral;
|
this.use_integral = !this.use_integral;
|
||||||
if(type === 'mer') {
|
// if(type === 'mer') {
|
||||||
this.use_mer_integral = !this.use_mer_integral;
|
// this.use_mer_integral = !this.use_mer_integral;
|
||||||
// 判断:开启商户积分 则不开启平台积分
|
// // 判断:开启商户积分 则不开启平台积分
|
||||||
if(this.use_mer_integral) this.use_platform_integral = false;
|
// if(this.use_mer_integral) this.use_platform_integral = false;
|
||||||
}
|
// }
|
||||||
if(type === 'platform') {
|
// if(type === 'platform') {
|
||||||
this.use_platform_integral = !this.use_platform_integral;
|
// this.use_platform_integral = !this.use_platform_integral;
|
||||||
// 判断:开启平台积分 则不开启商户积分
|
// // 判断:开启平台积分 则不开启商户积分
|
||||||
if(this.use_platform_integral) this.use_mer_integral = false;
|
// if(this.use_platform_integral) this.use_mer_integral = false;
|
||||||
}
|
// }
|
||||||
this.getConfirm(this.addressId);
|
this.getConfirm(this.addressId);
|
||||||
},
|
},
|
||||||
showPresellAgree(){
|
showPresellAgree(){
|
||||||
|
|
@ -1012,9 +1013,9 @@
|
||||||
address_id: address_id,
|
address_id: address_id,
|
||||||
takes: that.take,
|
takes: that.take,
|
||||||
use_coupon: that.subCoupon,
|
use_coupon: that.subCoupon,
|
||||||
// use_integral: that.use_integral,
|
use_integral: that.use_integral,
|
||||||
use_mer_integral: that.use_mer_integral,
|
// use_mer_integral: that.use_mer_integral,
|
||||||
use_platform_integral: that.use_platform_integral,
|
// use_platform_integral: that.use_platform_integral,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
// 默认选中
|
// 默认选中
|
||||||
that.is_take = false
|
that.is_take = false
|
||||||
|
|
@ -1052,16 +1053,16 @@
|
||||||
that.$set(that, 'integral_count', res.data.order_total_integral);
|
that.$set(that, 'integral_count', res.data.order_total_integral);
|
||||||
that.$set(that, 'integral_price', res.data.order_total_integral_price);
|
that.$set(that, 'integral_price', res.data.order_total_integral_price);
|
||||||
that.$set(that, 'open_integral', res.data.openIntegral);
|
that.$set(that, 'open_integral', res.data.openIntegral);
|
||||||
// that.$set(that, 'use_integral', res.data.useIntegral);
|
that.$set(that, 'use_integral', res.data.useIntegral);
|
||||||
that.$set(that, 'use_mer_integral', res.data.useMerIntegral);
|
// that.$set(that, 'use_mer_integral', res.data.useMerIntegral);
|
||||||
that.$set(that, 'use_platform_integral', res.data.usePlatformIntegral);
|
// that.$set(that, 'use_platform_integral', res.data.usePlatformIntegral);
|
||||||
that.$set(that, 'order_use_mer_integral', res.data.order_use_mer_integral);
|
// that.$set(that, 'order_use_mer_integral', res.data.order_use_mer_integral);
|
||||||
that.$set(that, 'order_use_mer_integral_price', res.data.order_use_mer_integral_price);
|
// that.$set(that, 'order_use_mer_integral_price', res.data.order_use_mer_integral_price);
|
||||||
that.$set(that, 'order_use_platform_integral', res.data.order_use_platform_integral);
|
// that.$set(that, 'order_use_platform_integral', res.data.order_use_platform_integral);
|
||||||
that.$set(that, 'order_use_platform_integral_price', res.data.order_use_platform_integral_price);
|
// that.$set(that, 'order_use_platform_integral_price', res.data.order_use_platform_integral_price);
|
||||||
that.$set(that, 'hold_mer_integral', res.data.hold_mer_integral);
|
// that.$set(that, 'hold_mer_integral', res.data.hold_mer_integral);
|
||||||
that.$set(that, 'hold_platform_integral', res.data.hold_platform_integral);
|
// that.$set(that, 'hold_platform_integral', res.data.hold_platform_integral);
|
||||||
that.$set(that, 'is_has_integral_use', res.data.is_has_integral_use);
|
// that.$set(that, 'is_has_integral_use', res.data.is_has_integral_use);
|
||||||
that.$set(that, 'order_extend', (that.order_extend && that.order_extend.length>0) ? that.order_extend : res.data.order_extend);
|
that.$set(that, 'order_extend', (that.order_extend && that.order_extend.length>0) ? that.order_extend : res.data.order_extend);
|
||||||
that.totalPrice = res.data.order_price
|
that.totalPrice = res.data.order_price
|
||||||
that.orderStatus = res.data.status
|
that.orderStatus = res.data.status
|
||||||
|
|
@ -1523,9 +1524,9 @@
|
||||||
order_type: this.order_type,
|
order_type: this.order_type,
|
||||||
key: this.order_key,
|
key: this.order_key,
|
||||||
takes: this.take,
|
takes: this.take,
|
||||||
// use_integral: this.use_integral,
|
use_integral: this.use_integral,
|
||||||
use_mer_integral: this.use_mer_integral,
|
// use_mer_integral: this.use_mer_integral,
|
||||||
use_platform_integral: this.use_platform_integral,
|
// use_platform_integral: this.use_platform_integral,
|
||||||
receipt_data: this.invoiceData,
|
receipt_data: this.invoiceData,
|
||||||
extend: this.extend,
|
extend: this.extend,
|
||||||
post: this.post,
|
post: this.post,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue