增加购物车编辑备注功能

This commit is contained in:
2025-12-18 10:08:17 +08:00
parent 5546e6ccbb
commit aabe680071
4 changed files with 9 additions and 7 deletions

View File

@@ -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
}

View File

@@ -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;