适用于标准版4.4.3,PRO版本可以用
有时候我们的积分只需要兑换商品,不能抵扣,但是又不想让他显示,那就可以在后台增加一个开关
1、在在配置列表添加字段变量order_integral
维护-开发配置-配置分类-商城配置-商城基础配置后面的配置列表-点添加配置
2、打开前端\pages\users\order_confirm\index.vue
CRMEB技术开发QQ:
order_integral: 0,//积分是否抵扣
that.$set(that, 'order_integral', res.data.order_integral);
<view v-if="!order_integral">
<view class='item acea-row row-between-wrapper' v-if="!pinkId && !BargainId && !combinationId && !seckillId && !advanceId">
<view>积分抵扣</view>
<view class='discount acea-row row-middle'>
<view> {{useIntegral ? "剩余积分":"当前积分"}}
<text class='num font-color'>{{integral || 0}}</text>
</view>
<checkbox-group @change="ChangeIntegral">
<checkbox :disabled="integral<=0 && !useIntegral" :checked='useIntegral ? true : false' />
</checkbox-group>
</view>
</view>
</view>
3、打开后端\app\services\order\StoreOrderServices.php