添加支付宝mini.project.json

This commit is contained in:
lukaijie
2022-12-09 15:06:27 +08:00
parent 86ae200b34
commit a638322492
4 changed files with 13 additions and 9 deletions

View File

@@ -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,

3
mini.project.json Normal file
View File

@@ -0,0 +1,3 @@
{
"enableAppxNg": true
}

View File

@@ -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 {

View File

@@ -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) {
</View>
<View className='block-title block-flex'>
<View>我的收货地址</View>
{!address && (
{address && (
<View
className='arrow'
onClick={() =>