From d676bb1e21272646c8f2cd3e5ce56aa6a9bf0d8c Mon Sep 17 00:00:00 2001 From: From-wh Date: Wed, 29 Mar 2023 15:58:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?improve:=20=E4=BC=98=E5=8C=96=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/pages/marketing/live/add_goods.vue | 6 +++--- template/admin/src/pages/marketing/storeSeckill/create.vue | 3 ++- template/admin/src/pages/order/invoice/index.vue | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/template/admin/src/pages/marketing/live/add_goods.vue b/template/admin/src/pages/marketing/live/add_goods.vue index fda3c1460..4802fd780 100644 --- a/template/admin/src/pages/marketing/live/add_goods.vue +++ b/template/admin/src/pages/marketing/live/add_goods.vue @@ -24,7 +24,7 @@
- +
@@ -182,10 +182,10 @@ export default { }, 300); }); }, - bindDelete(index) { + bindDelete(index,item) { this.goodsList.splice(index, 1); if (this.tabList.length) { - let i = this.tabList.findIndex((e) => e.id == row.id); + let i = this.tabList.findIndex((e) => e.id == item.product_id); this.tabList.splice(i, 1); } }, diff --git a/template/admin/src/pages/marketing/storeSeckill/create.vue b/template/admin/src/pages/marketing/storeSeckill/create.vue index ef7760012..f3d3d345d 100644 --- a/template/admin/src/pages/marketing/storeSeckill/create.vue +++ b/template/admin/src/pages/marketing/storeSeckill/create.vue @@ -636,8 +636,9 @@ export default { h('InputNumber', { props: { min: 0, - precision: key === 'price' ? 2 : 0, value: key === 'price' ? params.row.price : params.row.quota, + formatter: (value) => + key === 'price' ? `${value}`.match(/^\d+(?:\.\d{0,2})?/) : `${value}`.match(/^\d+(?:\.\d{0,-1})?/), }, on: { 'on-change': (e) => { diff --git a/template/admin/src/pages/order/invoice/index.vue b/template/admin/src/pages/order/invoice/index.vue index f3f7c04b7..09e947a0e 100644 --- a/template/admin/src/pages/order/invoice/index.vue +++ b/template/admin/src/pages/order/invoice/index.vue @@ -152,7 +152,7 @@
联系信息
真实姓名: {{ invoiceDetails.name }} - 联系电话: {{ invoiceDetails.user_phone }} + 联系电话: {{ invoiceDetails.drawer_phone }} 联系邮箱: {{ invoiceDetails.email }} From 8e50bffe0b92321ccdcbeb1a96e0f210e606ccd7 Mon Sep 17 00:00:00 2001 From: From-wh Date: Wed, 29 Mar 2023 15:59:06 +0800 Subject: [PATCH 2/3] =?UTF-8?q?style:=20=E5=8D=8E=E4=B8=BA=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E6=96=87=E5=AD=97=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/pages/activity/goods_combination/index.vue | 3 ++- template/uni-app/pages/goods_cate/goods_cate.vue | 6 ++---- template/uni-app/pages/goods_cate/goods_cate1.vue | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/template/uni-app/pages/activity/goods_combination/index.vue b/template/uni-app/pages/activity/goods_combination/index.vue index e0ce0580e..60cf96292 100644 --- a/template/uni-app/pages/activity/goods_combination/index.vue +++ b/template/uni-app/pages/activity/goods_combination/index.vue @@ -305,7 +305,8 @@ .name { color: #333; font-size: 30rpx; - height: 82rpx; + line-height: 38rpx; + height: 70rpx; } .bottom { diff --git a/template/uni-app/pages/goods_cate/goods_cate.vue b/template/uni-app/pages/goods_cate/goods_cate.vue index 356aa5d63..aff54a578 100644 --- a/template/uni-app/pages/goods_cate/goods_cate.vue +++ b/template/uni-app/pages/goods_cate/goods_cate.vue @@ -49,11 +49,9 @@ getCategoryVersion().then(res => { if (!uni.getStorageSync('CAT_VERSION') || res.data.version != uni.getStorageSync( 'CAT_VERSION')) { - this.isNew = !this.isNew - console.log('变了') + this.isNew = !this.isNew uni.setStorageSync('CAT_VERSION', res.data.version) - } else { - console.log('没变') + } else { // this.isNew = false } this.classStyle(); diff --git a/template/uni-app/pages/goods_cate/goods_cate1.vue b/template/uni-app/pages/goods_cate/goods_cate1.vue index b8b005a4c..499690b5f 100644 --- a/template/uni-app/pages/goods_cate/goods_cate1.vue +++ b/template/uni-app/pages/goods_cate/goods_cate1.vue @@ -187,8 +187,7 @@ let that = this; if (type || !uni.getStorageSync('CAT1_DATA')) { getCategoryList().then(res => { - uni.setStorageSync('CAT1_DATA', res.data) - console.log('调了') + uni.setStorageSync('CAT1_DATA', res.data) that.productList = res.data; that.$nextTick(res => { that.infoScroll(); From bb6e74b2aad5ba20b82cfbf82320056fb056e3a3 Mon Sep 17 00:00:00 2001 From: From-wh Date: Wed, 29 Mar 2023 16:00:18 +0800 Subject: [PATCH 3/3] =?UTF-8?q?improve:=20title=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/pages.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/template/uni-app/pages.json b/template/uni-app/pages.json index 8bb91361f..9594f786f 100644 --- a/template/uni-app/pages.json +++ b/template/uni-app/pages.json @@ -69,9 +69,16 @@ "pages": [{ "path": "customer_list/chat", "style": { - "navigationBarTitleText": "对话详情", - "navigationBarBackgroundColor": "#3875EA", - "navigationBarTextStyle": "white" + "navigationBarTitleText": "对话详情", + "navigationBarBackgroundColor": "#3875EA", + "navigationBarTextStyle": "white", + "app-plus": { + // #ifdef APP-PLUS + "titleNView": { + "type": "default" + } + // #endif + } } }, {