增加购物车编辑备注功能
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user