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