diff --git a/components/viewPopup.vue b/components/viewPopup.vue index c5533fc..39ca246 100644 --- a/components/viewPopup.vue +++ b/components/viewPopup.vue @@ -1,101 +1,104 @@ \ No newline at end of file diff --git a/pages/afterSales/afterSalesOrderDetail.vue b/pages/afterSales/afterSalesOrderDetail.vue index 9791f6f..ff1ee61 100644 --- a/pages/afterSales/afterSalesOrderDetail.vue +++ b/pages/afterSales/afterSalesOrderDetail.vue @@ -27,7 +27,7 @@ {{item.store_name}} - 牛腩块 + {{item.unit || ''}} @@ -83,7 +83,7 @@ onLoad(() => { const eventChannel = instance.getOpenerEventChannel(); - eventChannel.on('afterSalesOrderDetail', function(data) { + eventChannel.on('afterSalesDetail', function(data) { shopInfo.value = data; console.log(shopInfo.value); }) diff --git a/pages/index/index.vue b/pages/index/index.vue index ac3ee88..beb97cc 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -274,6 +274,7 @@ const searchKeyword = () => { where.value.name = keyword.value; + where.value.store_name = keyword.value; getGoodList(); } @@ -287,6 +288,7 @@ page_size: 25, name: '', order: '', + store_name: '', store_id: STORE_INFO.id || '' }) @@ -307,7 +309,8 @@ goodListApi({ ...where.value, class_all: class_all, - class: class_id + class: class_id, + cate_id: class_id, }).then(res => { if (loadmore) goodList.value.push(...res.data.lists); else goodList.value = res.data.lists; @@ -427,8 +430,6 @@ }) } - // uni.setStorageSync() - // 选择商品相关 const showGoodPopup = ref(false); const goodRef = ref(null); @@ -517,16 +518,14 @@ const instance = getCurrentInstance(); // 获取组件实例 const getWXDom = () => { let query = uni.createSelectorQuery().in(instance).select("#drag_area"); - query - .fields({ - size: true, - scrollOffset: true, - }, - (data) => { - targetHeight.value = data.scrollHeight - data.height - } - ) - .exec(); + query.fields({ + size: true, + scrollOffset: true, + }, + (data) => { + targetHeight.value = data.scrollHeight - data.height + } + ).exec(); } setTimeout(() => { getWXDom() diff --git a/pagesOrder/detail/detail.vue b/pagesOrder/detail/detail.vue index 6688f56..782db89 100644 --- a/pagesOrder/detail/detail.vue +++ b/pagesOrder/detail/detail.vue @@ -82,9 +82,8 @@ - - - + + 核销码 {{datas.verify_code}} @@ -196,7 +195,6 @@ import orderCanclePopup from "@/components/orderCanclePopup.vue"; import shopListPopupVue from "@/components/shopListPopup.vue"; import modal from "@/components/modal.vue"; - // import QRCode from "@/uni_modules/uview-plus/components/u-qrcode/u-qrcode.vue"; import { orderDetailApi, cancelOrderApi, @@ -242,9 +240,7 @@ order_id: datas.value.id }).then(res => { datas.value = res.data; - options.code = datas.value.verify_code; // 生成条形码的值 - shopInfo.value = res.data.store_info; if (addressList.value.length > 0 && res.data.paid) { addressInfo.value = addressList.value.find(item => item.address_id == res.data.address_id); @@ -504,13 +500,9 @@ flex-direction: column; justify-content: center; align-items: center; - height: 500rpx; + height: 300rpx; background: #fff; border-radius: 5px; - - view { - margin-top: 44rpx; - } } .m-address { @@ -557,7 +549,6 @@ flex-direction: column; justify-content: space-between; color: #989898; - // background-color: red; .title { display: flex; diff --git a/pagesOrder/order/component/good.vue b/pagesOrder/order/component/good.vue index 87150a8..e97388b 100644 --- a/pagesOrder/order/component/good.vue +++ b/pagesOrder/order/component/good.vue @@ -53,8 +53,9 @@ @click="rePay">立即支付 - 核销码 + + 核销码 + 再次购买 - - + + 核销码 {{datas.verify_code}} - -