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 && (