|
|
|
@ -66,7 +66,7 @@ |
|
|
|
|
getTPigCinemaToken, |
|
|
|
|
getCacheParam, |
|
|
|
|
delCacheParam, |
|
|
|
|
getCmsContent, |
|
|
|
|
getCmsContent, |
|
|
|
|
findByLatAndLng |
|
|
|
|
} from "../../../Utils/Api.js"; //您的api路径 |
|
|
|
|
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; |
|
|
|
@ -233,15 +233,15 @@ |
|
|
|
|
success: function(res) { |
|
|
|
|
switch (uni.getSystemInfoSync().platform) { |
|
|
|
|
case 'android': |
|
|
|
|
let zuob = JSON.parse(res); |
|
|
|
|
let zuob = JSON.parse(res); |
|
|
|
|
app.globalData.latitude = zuob.latitude; |
|
|
|
|
app.globalData.longitude = zuob.longitude; |
|
|
|
|
that.findByLatAndLng(zuob.longitude,zuob.latitude); |
|
|
|
|
app.globalData.longitude = zuob.longitude; |
|
|
|
|
that.findByLatAndLng(zuob.longitude, zuob.latitude); |
|
|
|
|
break; |
|
|
|
|
case 'ios': |
|
|
|
|
app.globalData.latitude = res.latitude; |
|
|
|
|
app.globalData.longitude = res.longitude; |
|
|
|
|
that.findByLatAndLng(res.longitude,res.latitude); |
|
|
|
|
app.globalData.longitude = res.longitude; |
|
|
|
|
that.findByLatAndLng(res.longitude, res.latitude); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -249,23 +249,23 @@ |
|
|
|
|
fail: function() {} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//经纬度转换 |
|
|
|
|
findByLatAndLng(item, item1) { |
|
|
|
|
let datas = { |
|
|
|
|
lng: item, |
|
|
|
|
lat: item1 |
|
|
|
|
} |
|
|
|
|
findByLatAndLng(datas).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
// res.return_data.provinceName |
|
|
|
|
app.globalData.cityName = res.return_data.provinceName; |
|
|
|
|
app.globalData.qianzhuCityName = res.return_data.cityName; |
|
|
|
|
app.globalData.cityId = res.return_data.regionId; |
|
|
|
|
// app.globalData.cityId = '520000'; |
|
|
|
|
app.globalData.companyId = res.return_data.companyId; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//经纬度转换 |
|
|
|
|
findByLatAndLng(item, item1) { |
|
|
|
|
let datas = { |
|
|
|
|
lng: item, |
|
|
|
|
lat: item1 |
|
|
|
|
} |
|
|
|
|
findByLatAndLng(datas).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
// res.return_data.provinceName |
|
|
|
|
app.globalData.cityName = res.return_data.provinceName; |
|
|
|
|
app.globalData.qianzhuCityName = res.return_data.cityName; |
|
|
|
|
app.globalData.cityId = res.return_data.regionId; |
|
|
|
|
// app.globalData.cityId = '520000'; |
|
|
|
|
app.globalData.companyId = res.return_data.companyId; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
//获取首页功能 |
|
|
|
|
getCmsContentcmsContent() { |
|
|
|
@ -411,10 +411,12 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//拨打客服电话 |
|
|
|
|
playPhone() { |
|
|
|
|
playPhone() { |
|
|
|
|
let cont = "本服务由惠兑礼品提供\n400-678-738"; |
|
|
|
|
let content = cont.replace(/<br>/g,"\n"); |
|
|
|
|
uni.showModal({ |
|
|
|
|
title: '客服', |
|
|
|
|
content: '4006780738', |
|
|
|
|
content: content, |
|
|
|
|
success: function(res) { |
|
|
|
|
if (res.confirm) { |
|
|
|
|
uni.makePhoneCall({ |
|
|
|
@ -447,9 +449,9 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//单独跳转话费充值 |
|
|
|
|
jumphuafei(item) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: item.ext1 |
|
|
|
|
jumphuafei(item) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: item.ext1 |
|
|
|
|
}) |
|
|
|
|
// if (!app.globalData.userInfo) { |
|
|
|
|
// uni.navigateTo({ |
|
|
|
|