From f14a7a2eebe8dd80c67646e0160b10f940223016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Sat, 18 Feb 2023 10:48:16 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/pages/product/productAdd/index.vue | 2 +- template/admin/src/pages/product/productReply/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/template/admin/src/pages/product/productAdd/index.vue b/template/admin/src/pages/product/productAdd/index.vue index 0c06a2fa0..c7c4baedb 100644 --- a/template/admin/src/pages/product/productAdd/index.vue +++ b/template/admin/src/pages/product/productAdd/index.vue @@ -660,7 +660,7 @@ - + diff --git a/template/admin/src/pages/product/productReply/index.vue b/template/admin/src/pages/product/productReply/index.vue index 34d6d1355..afa713480 100644 --- a/template/admin/src/pages/product/productReply/index.vue +++ b/template/admin/src/pages/product/productReply/index.vue @@ -70,7 +70,7 @@ 添加自评 From f0ff4a3e7ff0988086c1f3fb1a16ffb939566620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Sat, 18 Feb 2023 10:48:31 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=A4=84=E7=90=86pc=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=80=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/order/StoreOrderServices.php | 1 + 1 file changed, 1 insertion(+) diff --git a/crmeb/app/services/order/StoreOrderServices.php b/crmeb/app/services/order/StoreOrderServices.php index fa458428b..3ebf5198b 100644 --- a/crmeb/app/services/order/StoreOrderServices.php +++ b/crmeb/app/services/order/StoreOrderServices.php @@ -171,6 +171,7 @@ class StoreOrderServices extends BaseServices $data['refunded_count'] = (string)$storeOrderRefundServices->count($refund_where + ['refund_type' => 6]); $data['refund_count'] = bcadd(bcadd($data['refunding_count'], $data['refunded_count'], 0), $data['no_refund_count'], 0); $data['yue_pay_status'] = (int)sys_config('balance_func_status') && (int)sys_config('yue_pay_status') == 1 ? (int)1 : (int)2;//余额支付 1 开启 2 关闭 + $data['pc_order_count'] = $data['order_count'] + $data['refunding_count'] + $data['refunded_count']; $data['pay_weixin_open'] = is_wecaht_pay();//微信支付 1 开启 0 关闭 $data['ali_pay_status'] = is_ali_pay();//支付包支付 1 开启 0 关闭 $data['friend_pay_status'] = (int)sys_config('friend_pay_status') ?? 0;//好友代付 1 开启 0 关闭 From 77b24ac7d881d79aa3813d729935c2630393b191 Mon Sep 17 00:00:00 2001 From: From-wh Date: Sat, 18 Feb 2023 11:03:10 +0800 Subject: [PATCH 3/6] =?UTF-8?q?improve:=20=E4=BF=A1=E6=81=AF=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/pages/product/productList/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/admin/src/pages/product/productList/index.vue b/template/admin/src/pages/product/productList/index.vue index f900b14af..54234602e 100644 --- a/template/admin/src/pages/product/productList/index.vue +++ b/template/admin/src/pages/product/productList/index.vue @@ -55,6 +55,7 @@ Date: Sat, 18 Feb 2023 11:03:48 +0800 Subject: [PATCH 4/6] =?UTF-8?q?improve:=20=E6=A0=B7=E5=BC=8F=E5=8F=8A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/components/indexGoods/index.vue | 5 +++-- template/uni-app/pages.json | 2 +- template/uni-app/pages/goods/goods_return/index.vue | 2 +- template/uni-app/pages/index/diy/index.vue | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/template/uni-app/components/indexGoods/index.vue b/template/uni-app/components/indexGoods/index.vue index 21bf844d0..980bb8b54 100644 --- a/template/uni-app/components/indexGoods/index.vue +++ b/template/uni-app/components/indexGoods/index.vue @@ -129,8 +129,8 @@ margin-bottom: 8rpx; display: flex; flex-direction: column; - justify-content: space-between; - + justify-content: space-between; + /deep/image, /deep/.easy-loadimage, /deep/uni-image { @@ -149,6 +149,7 @@ .title { font-size: 28rpx; height: 76rpx; + line-height: 38rpx; } .tag { diff --git a/template/uni-app/pages.json b/template/uni-app/pages.json index 8866c9208..b80554efb 100644 --- a/template/uni-app/pages.json +++ b/template/uni-app/pages.json @@ -364,7 +364,7 @@ { "path": "user_cancellation/index", "style": { - "navigationBarTitleText": "注销说明", + "navigationBarTitleText": "注销协议", "app-plus": { // #ifdef APP-PLUS "titleNView": { diff --git a/template/uni-app/pages/goods/goods_return/index.vue b/template/uni-app/pages/goods/goods_return/index.vue index dfbadfc48..a18ceaad1 100644 --- a/template/uni-app/pages/goods/goods_return/index.vue +++ b/template/uni-app/pages/goods/goods_return/index.vue @@ -55,7 +55,7 @@ {{$t(`上传图片`)}} - {{$t(`上传图片`)}} + diff --git a/template/uni-app/pages/index/diy/index.vue b/template/uni-app/pages/index/diy/index.vue index 4840f4e40..5a30cc41e 100644 --- a/template/uni-app/pages/index/diy/index.vue +++ b/template/uni-app/pages/index/diy/index.vue @@ -659,7 +659,8 @@ }, diyData() { let that = this; - getDiy(0).then(res => { + getDiy(0).then(res => { + uni.hideLoading() uni.setStorageSync('DIY_DATA', res.data) setTimeout(() => { this.isNodes++; @@ -696,7 +697,6 @@ } temp.sort(sortNumber) that.styleConfig = temp; - uni.hideLoading() setTimeout(() => { this.showSkeleton = false }, 300) From 6d41caa5e073207ed69e1109800cfc120b039ddf Mon Sep 17 00:00:00 2001 From: From-wh Date: Sat, 18 Feb 2023 11:06:42 +0800 Subject: [PATCH 5/6] =?UTF-8?q?fix:=20app=E9=82=80=E8=AF=B7=E7=A0=81?= =?UTF-8?q?=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/users/user_spread_code/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/uni-app/pages/users/user_spread_code/index.vue b/template/uni-app/pages/users/user_spread_code/index.vue index a26631855..b7011e3b8 100644 --- a/template/uni-app/pages/users/user_spread_code/index.vue +++ b/template/uni-app/pages/users/user_spread_code/index.vue @@ -219,8 +219,8 @@ arr2 = [img.code || this.codeSrc, img.image] // #endif // #ifdef APP-PLUS - img = await this.downloadFilestoreImage(res.data.spread[i].pic) - arr2 = [this.codeSrc, img] + img = await this.imgToBase(res.data.spread[i].pic, res.data.qrcode) + arr2 = [img.code || this.codeSrc, img.image] // #endif that.$util.userPosterCanvas(arr2, res.data.nickname, res.data.site_name, i, this.wd, this.hg, ( tempFilePath) => { From 6d5d2e93789fb611217f9fc069b0e1cd3300fa88 Mon Sep 17 00:00:00 2001 From: From-wh Date: Sat, 18 Feb 2023 11:36:29 +0800 Subject: [PATCH 6/6] =?UTF-8?q?fix:=20=E5=90=8E=E5=8F=B0=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/uni-app/pages/goods_cate/goods_cate.vue | 7 ++----- template/uni-app/pages/goods_cate/goods_cate1.vue | 15 +++++++++++---- template/uni-app/pages/goods_cate/goods_cate2.vue | 9 ++++++++- template/uni-app/pages/goods_cate/goods_cate3.vue | 9 ++++++++- 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/template/uni-app/pages/goods_cate/goods_cate.vue b/template/uni-app/pages/goods_cate/goods_cate.vue index 56a5d8957..d6628cd12 100644 --- a/template/uni-app/pages/goods_cate/goods_cate.vue +++ b/template/uni-app/pages/goods_cate/goods_cate.vue @@ -40,11 +40,9 @@ } }, onLoad() {}, - onReady() { - this.getCategoryVersion() - }, + onReady() {}, onShow() { - + this.getCategoryVersion() }, methods: { getCategoryVersion() { @@ -58,7 +56,6 @@ } this.classStyle(); }) - }, jumpIndex() { if (this.is_diy) {} diff --git a/template/uni-app/pages/goods_cate/goods_cate1.vue b/template/uni-app/pages/goods_cate/goods_cate1.vue index 0ab4ee40b..704773ee3 100644 --- a/template/uni-app/pages/goods_cate/goods_cate1.vue +++ b/template/uni-app/pages/goods_cate/goods_cate1.vue @@ -112,7 +112,7 @@ cartNum: state => state.indexData.cartNum }) }, - mounted() { + mounted() { console.log(this.version) let that = this // #ifdef H5 @@ -127,6 +127,13 @@ this.activeRouter = '/' + curRoute this.getAllCategory(); }, + watch: { + isNew(newVal) { + if (newVal) { + this.getAllCategory(); + } + } + }, methods: { getNav() { getNavigation().then(res => { @@ -179,9 +186,9 @@ this.$set(this, 'lock', true); }, getAllCategory: function() { - let that = this; - console.log(this.version,'1',uni.getStorageSync('CAT_VERSION')) - if (this.version !== uni.getStorageSync('CAT_VERSION')) { + let that = this; + console.log(this.version, '1', uni.getStorageSync('CAT_VERSION')) + if (this.isNew || !uni.getStorageSync('CAT1_DATA')) { getCategoryList().then(res => { uni.setStorageSync('CAT1_DATA', res.data) that.productList = res.data; diff --git a/template/uni-app/pages/goods_cate/goods_cate2.vue b/template/uni-app/pages/goods_cate/goods_cate2.vue index 539136e78..68f69c87c 100644 --- a/template/uni-app/pages/goods_cate/goods_cate2.vue +++ b/template/uni-app/pages/goods_cate/goods_cate2.vue @@ -115,6 +115,13 @@ default: false } }, + watch: { + isNew(newVal) { + if (newVal) { + this.getAllCategory(); + } + } + }, computed: mapGetters(['isLogin', 'uid']), components: { productWindow, @@ -631,7 +638,7 @@ }, getAllCategory: function() { let that = this; - if (this.isNew) { + if (this.isNew || !uni.getStorageSync('CAT2_DATA')) { getCategoryList().then(res => { uni.setStorageSync('CAT2_DATA', res.data) let data = res.data; diff --git a/template/uni-app/pages/goods_cate/goods_cate3.vue b/template/uni-app/pages/goods_cate/goods_cate3.vue index 1eb2ef40e..2e6ae5b38 100644 --- a/template/uni-app/pages/goods_cate/goods_cate3.vue +++ b/template/uni-app/pages/goods_cate/goods_cate3.vue @@ -119,6 +119,13 @@ default: false } }, + watch: { + isNew(newVal) { + if (newVal) { + this.getAllCategory(); + } + } + }, data() { return { categoryList: [], @@ -667,7 +674,7 @@ }, getAllCategory: function() { let that = this; - if (this.isNew) { + if (this.isNew || !uni.getStorageSync('CAT3_DATA')) { getCategoryList().then(res => { let data = res.data; uni.setStorageSync('CAT3_DATA', data)