增加购物车编辑备注功能
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
<text class="productSkuName" v-if="item.skuName">{{
|
||||
item.skuName
|
||||
}}</text>
|
||||
<text class="color-666 u-font-24 u-m-t-4" v-if="item.remark">备注:{{item.remark}}</text>
|
||||
<template v-if="showLimitDiscount(item)">
|
||||
<text
|
||||
class="limitDiscount-time"
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
</view> -->
|
||||
<view class="status-wrap">
|
||||
<view class="item" :class="{ active: querForm.statusActiveIndex == 0 }" @click="tabChange(0)">
|
||||
<text class="t">商品兑换券 {{ returnSelNumber(0) }}</text>
|
||||
<text class="t">商品兑换券</text>
|
||||
</view>
|
||||
<view class="item" :class="{ active: querForm.statusActiveIndex == 1 }" @click="tabChange(1)">
|
||||
<text class="t">折扣优惠券{{ returnSelNumber(1) }}</text>
|
||||
<text class="t">折扣优惠券</text>
|
||||
</view>
|
||||
|
||||
<view class="icon-wrap" :style="{
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="u-font-24 color-666 u-flex">
|
||||
<text style="max-width: 296rpx;" class="u-line-1">备注:</text>
|
||||
<text style="max-width: 296rpx;" class="u-line-1">备注:{{item.cartListinfo.remark||''}}</text>
|
||||
<image @click="editRemark(item)"
|
||||
src="https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/3/9fe4df7c6c8b4290aa5f78282b143900.png"
|
||||
style="width: 34rpx;height: 34rpx;"></image>
|
||||
@@ -120,6 +120,7 @@
|
||||
import goodsPrice from "@/components/goods-price.vue";
|
||||
import * as orderUtils from "@/utils/order-utils.js";
|
||||
import model from './modal.vue'
|
||||
import _ from 'lodash'
|
||||
const modelData = reactive({
|
||||
show: false,
|
||||
item: {
|
||||
@@ -131,7 +132,7 @@
|
||||
|
||||
function editRemark(item) {
|
||||
console.log('editRemark', item)
|
||||
modelData.item = item
|
||||
modelData.item = _.cloneDeep(item)
|
||||
modelData.show = true
|
||||
}
|
||||
|
||||
|
||||
@@ -1154,7 +1154,7 @@
|
||||
return;
|
||||
}
|
||||
let res = await shoppingcart();
|
||||
|
||||
|
||||
if ((specifications.item.type == 'package' && allConditionsSatisfied.value) || (specifications.item.type ==
|
||||
'sku' && canSubmit.value)) {
|
||||
// 是否是套餐 有就传
|
||||
@@ -1181,7 +1181,7 @@
|
||||
memberPrice: specifications.item.memberPrice,
|
||||
is_print: 1,
|
||||
product_type: specifications.item.type,
|
||||
is_time_discount: specifications.item.is_time_discount
|
||||
is_time_discount: specifications.item.is_time_discount,
|
||||
});
|
||||
// 清空套餐选中
|
||||
selectedGroupSnap.value = [];
|
||||
@@ -1201,7 +1201,7 @@
|
||||
memberPrice: specifications.item.memberPrice,
|
||||
is_print: 1,
|
||||
product_type: specifications.item.type,
|
||||
is_time_discount: specifications.item.is_time_discount
|
||||
is_time_discount: specifications.item.is_time_discount,
|
||||
});
|
||||
showShopsku.value = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user