feat: 更新收货地址
This commit is contained in:
2
dist/app.js
vendored
2
dist/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/app.json
vendored
2
dist/app.json
vendored
@@ -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"}}
|
||||
2
dist/pages/my/index.js
vendored
2
dist/pages/my/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -20,7 +20,7 @@ export default {
|
||||
desc: "你的位置信息将用于小程序位置接口的效果展示", // 高速公路行驶持续后台定位
|
||||
},
|
||||
},
|
||||
requiredPrivateInfos: ["getLocation", "chooseLocation"],
|
||||
requiredPrivateInfos: ["getLocation", "chooseLocation",'chooseAddress'],
|
||||
window: {
|
||||
backgroundTextStyle: "light",
|
||||
navigationBarBackgroundColor: "#fff",
|
||||
|
||||
@@ -562,6 +562,8 @@ const Home = () => {
|
||||
})
|
||||
}}>订阅消息</View> */}
|
||||
|
||||
|
||||
|
||||
<Toast id="vanToast-demo2" />
|
||||
|
||||
<TabbarCom active={0} />
|
||||
|
||||
@@ -204,27 +204,45 @@ const my = (props: any) => {
|
||||
</View> */}
|
||||
|
||||
<View className="cellArr">
|
||||
{type !== "people" ||
|
||||
(true && (
|
||||
<Cell
|
||||
icon="star"
|
||||
title="打卡记录"
|
||||
isLink
|
||||
onClick={() => {
|
||||
if (isin) {
|
||||
// 跳转到目的页面,打开新页面
|
||||
Taro.navigateTo({
|
||||
url: "/pages/my/components/CheckinDetail/index",
|
||||
});
|
||||
} else {
|
||||
Toast.fail({
|
||||
message: "请先登录",
|
||||
selector: "#vanToast-demo2",
|
||||
});
|
||||
}
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
<Cell
|
||||
icon="star"
|
||||
title="打卡记录"
|
||||
isLink
|
||||
onClick={() => {
|
||||
if (isin) {
|
||||
// 跳转到目的页面,打开新页面
|
||||
Taro.navigateTo({
|
||||
url: "/pages/my/components/CheckinDetail/index",
|
||||
});
|
||||
} else {
|
||||
Toast.fail({
|
||||
message: "请先登录",
|
||||
selector: "#vanToast-demo2",
|
||||
});
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
<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
|
||||
icon="star"
|
||||
@@ -313,8 +331,6 @@ const my = (props: any) => {
|
||||
});
|
||||
}}
|
||||
/> */}
|
||||
|
||||
|
||||
</View>
|
||||
|
||||
<Toast id="vanToast-demo2" />
|
||||
|
||||
Reference in New Issue
Block a user