|
@@ -221,37 +221,37 @@ export default {
|
|
|
getaddress() {
|
|
|
console.log('dizhi+++++++++++');
|
|
|
let obj = this;
|
|
|
- uni.getLocation({
|
|
|
- type: 'gcj02',
|
|
|
- success: res => {
|
|
|
- console.log(res, 123456);
|
|
|
- obj.setLat(res.latitude);
|
|
|
- obj.setLon(res.longitude);
|
|
|
- },
|
|
|
- fail: err => {
|
|
|
- console.log(err, 'shi+++++++++++++++');
|
|
|
- openMap().then(e => {
|
|
|
- this.getaddress();
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- // weixindata().then(wxOjb => {
|
|
|
- // console.log(wxOjb,'获取微信');
|
|
|
- // wxOjb.getLocation({
|
|
|
- // type: 'gcj02',
|
|
|
- // success: res => {
|
|
|
- // console.log(res, 123456);
|
|
|
- // obj.setLat(res.latitude);
|
|
|
- // obj.setLon(res.longitude);
|
|
|
- // },
|
|
|
- // fail: err => {
|
|
|
- // console.log(err, 'shi+++++++++++++++');
|
|
|
- // openMap().then(e => {
|
|
|
- // this.getaddress();
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
+ // uni.getLocation({
|
|
|
+ // type: 'gcj02',
|
|
|
+ // success: res => {
|
|
|
+ // console.log(res, 123456);
|
|
|
+ // obj.setLat(res.latitude);
|
|
|
+ // obj.setLon(res.longitude);
|
|
|
+ // },
|
|
|
+ // fail: err => {
|
|
|
+ // console.log(err, 'shi+++++++++++++++');
|
|
|
+ // openMap().then(e => {
|
|
|
+ // this.getaddress();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
// });
|
|
|
+ weixindata().then(wxOjb => {
|
|
|
+ console.log(wxOjb,'获取微信');
|
|
|
+ wxOjb.getLocation({
|
|
|
+ type: 'gcj02',
|
|
|
+ success: res => {
|
|
|
+ console.log(res, 123456);
|
|
|
+ obj.setLat(res.latitude);
|
|
|
+ obj.setLon(res.longitude);
|
|
|
+ },
|
|
|
+ fail: err => {
|
|
|
+ console.log(err, 'shi+++++++++++++++');
|
|
|
+ openMap().then(e => {
|
|
|
+ this.getaddress();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
//砍价商品推荐详情页
|
|
|
navToDetailPages(item) {
|