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