feat: 更新收货地址

This commit is contained in:
eric
2022-11-26 22:44:57 +08:00
parent 1821fb53be
commit f5032ceb90
6 changed files with 45 additions and 27 deletions

2
dist/app.js vendored

File diff suppressed because one or more lines are too long

2
dist/app.json vendored
View File

@@ -1 +1 @@
{"pages":["pages/home/index","pages/home/components/CheckIn/index","pages/home/components/Certified/index","pages/activityList/index","pages/formSubmit/index","pages/activityList/components/details/index","pages/mountainPeak/index","pages/my/index","pages/my/components/Version/index","pages/my/components/AbountUs/index","pages/my/components/CheckinDetail/index"],"permission":{"scope.userLocation":{"desc":"你的位置信息将用于小程序位置接口的效果展示"}},"requiredPrivateInfos":["getLocation","chooseLocation"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}} {"pages":["pages/home/index","pages/home/components/CheckIn/index","pages/home/components/Certified/index","pages/activityList/index","pages/formSubmit/index","pages/activityList/components/details/index","pages/mountainPeak/index","pages/my/index","pages/my/components/Version/index","pages/my/components/AbountUs/index","pages/my/components/CheckinDetail/index"],"permission":{"scope.userLocation":{"desc":"你的位置信息将用于小程序位置接口的效果展示"}},"requiredPrivateInfos":["getLocation","chooseLocation","chooseAddress"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"WeChat","navigationBarTextStyle":"black"}}

File diff suppressed because one or more lines are too long

View File

@@ -20,7 +20,7 @@ export default {
desc: "你的位置信息将用于小程序位置接口的效果展示", // 高速公路行驶持续后台定位 desc: "你的位置信息将用于小程序位置接口的效果展示", // 高速公路行驶持续后台定位
}, },
}, },
requiredPrivateInfos: ["getLocation", "chooseLocation"], requiredPrivateInfos: ["getLocation", "chooseLocation",'chooseAddress'],
window: { window: {
backgroundTextStyle: "light", backgroundTextStyle: "light",
navigationBarBackgroundColor: "#fff", navigationBarBackgroundColor: "#fff",

View File

@@ -562,6 +562,8 @@ const Home = () => {
}) })
}}>订阅消息</View> */} }}>订阅消息</View> */}
<Toast id="vanToast-demo2" /> <Toast id="vanToast-demo2" />
<TabbarCom active={0} /> <TabbarCom active={0} />

View File

@@ -204,8 +204,6 @@ const my = (props: any) => {
</View> */} </View> */}
<View className="cellArr"> <View className="cellArr">
{type !== "people" ||
(true && (
<Cell <Cell
icon="star" icon="star"
title="打卡记录" title="打卡记录"
@@ -224,7 +222,27 @@ const my = (props: any) => {
} }
}} }}
/> />
))}
<Cell
icon="coupon"
title="更新收货地址"
isLink
onClick={() => {
// 获取收获地址
Taro.chooseAddress({
success: function (res) {
console.log(res.userName);
console.log(res.postalCode);
console.log(res.provinceName);
console.log(res.cityName);
console.log(res.countyName);
console.log(res.detailInfo);
console.log(res.nationalCode);
console.log(res.telNumber);
},
});
}}
/>
{/* <Cell {/* <Cell
icon="star" icon="star"
@@ -313,8 +331,6 @@ const my = (props: any) => {
}); });
}} }}
/> */} /> */}
</View> </View>
<Toast id="vanToast-demo2" /> <Toast id="vanToast-demo2" />