From a63832249230d2cda48a18d0797fb13a0b7604a0 Mon Sep 17 00:00:00 2001 From: lukaijie Date: Fri, 9 Dec 2022 15:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=94=AF=E4=BB=98=E5=AE=9Dmi?= =?UTF-8?q?ni.project.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 3 +++ mini.project.json | 3 +++ src/pages/item/list.scss | 2 +- src/subpages/ecshopx/nearly-shop.js | 14 ++++++-------- 4 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 mini.project.json diff --git a/config/index.js b/config/index.js index 8980fadef..846b10daa 100644 --- a/config/index.js +++ b/config/index.js @@ -38,6 +38,9 @@ if (process.env.TARO_ENV != 'h5') { if (process.env.TARO_ENV == 'h5') { copyPatterns.push({ from: 'src/files', to: `${DIST_PATH}` }) } +if(process.env.TARO_ENV == 'alipay') { + copyPatterns.push({ from: 'mini.project.json', to: `${DIST_PATH}/mini.project.json` }) +} const config = { projectName: pkg.name, diff --git a/mini.project.json b/mini.project.json new file mode 100644 index 000000000..20adb3345 --- /dev/null +++ b/mini.project.json @@ -0,0 +1,3 @@ +{ + "enableAppxNg": true +} diff --git a/src/pages/item/list.scss b/src/pages/item/list.scss index 2230cabd9..793b0c631 100644 --- a/src/pages/item/list.scss +++ b/src/pages/item/list.scss @@ -103,7 +103,7 @@ } .goods-item-wrap { margin-bottom: 20px; - box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.1); + // box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.1); border-radius: 2px; } .sp-goods-item { diff --git a/src/subpages/ecshopx/nearly-shop.js b/src/subpages/ecshopx/nearly-shop.js index 22180a6a8..3e31b2c47 100644 --- a/src/subpages/ecshopx/nearly-shop.js +++ b/src/subpages/ecshopx/nearly-shop.js @@ -107,8 +107,8 @@ function NearlyShop(props) { // 定位 const getLocationInfo = async () => { - setState((v) => { - v.locationIng = true + setState((draft) => { + draft.locationIng = true }) setPolicyModal(false) await entryLaunch.isOpenPosition(async (res) => { @@ -118,17 +118,15 @@ function NearlyShop(props) { v.shopList = [] v.keyword = '' v.name = '' - // v.type = 0 v.search_type = undefined }) - console.log('getLocationInfo 重新定位',) shopRef.current.reset() } }) - setState((v) => { - v.locationIng = false - v.type = 2 + setState((draft) => { + draft.locationIng = false + draft.type = 2 }) } @@ -258,7 +256,7 @@ function NearlyShop(props) { 我的收货地址 - {!address && ( + {address && (