地图定位 充值
This commit is contained in:
parent
b8b9e24eef
commit
afb296cc5f
|
@ -6,6 +6,7 @@ const ROOTPATH3 = "wss://192.168.2.222:8187/wss/websocket/";
|
||||||
const ROOTPATH = "http://192.168.2.222:8187/sqx_fast";
|
const ROOTPATH = "http://192.168.2.222:8187/sqx_fast";
|
||||||
const ROOTPATH1 = "http://192.168.2.222:8187/sqx_fast";
|
const ROOTPATH1 = "http://192.168.2.222:8187/sqx_fast";
|
||||||
|
|
||||||
|
|
||||||
// const ROOTPATH = "http://192.168.2.13:8187/sqx_fast";
|
// const ROOTPATH = "http://192.168.2.13:8187/sqx_fast";
|
||||||
// const ROOTPATH1 = "http://192.168.2.13:8187/sqx_fast";
|
// const ROOTPATH1 = "http://192.168.2.13:8187/sqx_fast";
|
||||||
// const ROOTPATH3 = "wss://192.168.2.13:8187/wss/websocket/";
|
// const ROOTPATH3 = "wss://192.168.2.13:8187/wss/websocket/";
|
||||||
|
|
|
@ -350,7 +350,6 @@
|
||||||
}else{
|
}else{
|
||||||
this.artificerIdMy=false
|
this.artificerIdMy=false
|
||||||
}
|
}
|
||||||
console.log("artificerId",this.artificerId)
|
|
||||||
if (d.tabIndex) {
|
if (d.tabIndex) {
|
||||||
this.tabIndex = d.tabIndex;
|
this.tabIndex = d.tabIndex;
|
||||||
this.title_color = 2;
|
this.title_color = 2;
|
||||||
|
@ -688,8 +687,11 @@
|
||||||
payClassifyId: this.thisSelect.payClassifyId,
|
payClassifyId: this.thisSelect.payClassifyId,
|
||||||
type: 2,
|
type: 2,
|
||||||
userId: uni.getStorageSync('userId'),
|
userId: uni.getStorageSync('userId'),
|
||||||
artificerId:this.artificerId==''?this.artificerIdMy.artificerId:this.artificerId
|
|
||||||
}
|
}
|
||||||
|
if(this.artificerId){
|
||||||
|
data.artificerId=this.artificerId
|
||||||
|
}
|
||||||
|
|
||||||
this.$Request.post('/app/aliPay/payOrderMoney', data).then(
|
this.$Request.post('/app/aliPay/payOrderMoney', data).then(
|
||||||
res => {
|
res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view v-show="current === 1">
|
<view v-show="current === 1">
|
||||||
<view class="flex text-center flex-wrap"
|
<view class="flex text-center flex-wrap"
|
||||||
style="margin-top: 135px; padding: 0px 16px; justify-content: space-between;">
|
style="margin-top: 60px;justify-content: space-between;">
|
||||||
<div id="txMapContainer" style="width: 100%;height: calc(100vh - 188px);"> </div>
|
<div id="txMapContainer" style="width: 100%;height: calc(100vh - 188px);"> </div>
|
||||||
<!-- 地图地图 -->
|
<!-- 地图地图 -->
|
||||||
</view>
|
</view>
|
||||||
|
@ -351,9 +351,10 @@ import permision from "@/components/permission.js";
|
||||||
that.massageTypeId = e.massageTypeId
|
that.massageTypeId = e.massageTypeId
|
||||||
// that.getLocation();//低精度,快就完事了
|
// that.getLocation();//低精度,快就完事了
|
||||||
// that.getLocation(true);//高精度,慢慢查询
|
// that.getLocation(true);//高精度,慢慢查询
|
||||||
|
|
||||||
that.getTypeList();
|
that.getTypeList();
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
type: 'wgs84',
|
type: 'gcj02',
|
||||||
geocode: true, //设置该参数为true可直接获取经纬度及城市信息
|
geocode: true, //设置该参数为true可直接获取经纬度及城市信息
|
||||||
highAccuracyExpireTime: 500,
|
highAccuracyExpireTime: 500,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
@ -411,29 +412,29 @@ import permision from "@/components/permission.js";
|
||||||
that.getTpMy();
|
that.getTpMy();
|
||||||
|
|
||||||
that.token = uni.getStorageSync('token')
|
that.token = uni.getStorageSync('token')
|
||||||
// if (uni.getStorageSync('token')) {
|
if (uni.getStorageSync('token')) {
|
||||||
if (that.latitude && that.longitude) {
|
if (that.latitude && that.longitude) {
|
||||||
that.page = 1
|
that.page = 1
|
||||||
that.getlist()
|
that.getlist()
|
||||||
} else {
|
} else {
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
type: 'gcj02',
|
type: 'gcj02',
|
||||||
highAccuracyExpireTime: 500,
|
highAccuracyExpireTime: 500,
|
||||||
geocode: true, //设置该参数为true可直接获取经纬度及城市信息
|
geocode: true, //设置该参数为true可直接获取经纬度及城市信息
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res, '地理位置')
|
console.log(res, '地理位置')
|
||||||
that.latitude = res.latitude
|
that.latitude = res.latitude
|
||||||
that.longitude = res.longitude
|
that.longitude = res.longitude
|
||||||
that.page = 1
|
that.page = 1
|
||||||
that.getTypeList();
|
that.getTypeList();
|
||||||
// that.getlist()
|
that.getlist()
|
||||||
},
|
},
|
||||||
fail: function() {
|
fail: function() {
|
||||||
console.log('获取地址失败2')
|
console.log('获取地址失败2')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
that.myId = uni.getStorageSync('userId')
|
that.myId = uni.getStorageSync('userId')
|
||||||
// console.log(that.showModal, '------', that.myId)
|
// console.log(that.showModal, '------', that.myId)
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
|
@ -599,12 +600,7 @@ import permision from "@/components/permission.js";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getTpMy() {
|
getTpMy() {
|
||||||
var data={
|
this.$Request.getT('/app/message/selectMessageByUserId?page=1&limit=1&state=11').then(res => {
|
||||||
page:'',
|
|
||||||
limit:'',
|
|
||||||
state:''
|
|
||||||
}
|
|
||||||
this.$Request.getT('/app/message/selectMessageByUserId',data).then(res => {
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (res.data && res.data.list && res.data.list.length > 0) {
|
if (res.data && res.data.list && res.data.list.length > 0) {
|
||||||
this.tpSel = 1;
|
this.tpSel = 1;
|
||||||
|
@ -1227,6 +1223,12 @@ import permision from "@/components/permission.js";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
/deep/.u-drawer,/deep/.u-mask-show{
|
||||||
|
z-index:11 !important;
|
||||||
|
}
|
||||||
|
/deep/.u-drawer-content-visible{
|
||||||
|
z-index:99 !important;
|
||||||
|
}
|
||||||
.item-view-jianjie{
|
.item-view-jianjie{
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view v-show="current === 1">
|
<view v-show="current === 1">
|
||||||
<view class="flex text-center flex-wrap"
|
<view class="flex text-center flex-wrap"
|
||||||
style="margin-top: 135px; padding: 0px 16px; justify-content: space-between;">
|
style="margin-top: 60px;justify-content: space-between;">
|
||||||
<div id="txMapContainer" style="width: 100%;height: calc(100vh - 188px);"> </div>
|
<div id="txMapContainer" style="width: 100%;height: calc(100vh - 188px);"> </div>
|
||||||
<!-- 地图地图 -->
|
<!-- 地图地图 -->
|
||||||
</view>
|
</view>
|
||||||
|
@ -1238,6 +1238,12 @@ import permision from "@/components/permission.js";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
/deep/.u-drawer,/deep/.u-mask-show{
|
||||||
|
z-index:11 !important;
|
||||||
|
}
|
||||||
|
/deep/.u-drawer-content-visible{
|
||||||
|
z-index:99 !important;
|
||||||
|
}
|
||||||
.item-view-jianjie{
|
.item-view-jianjie{
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
|
|
Loading…
Reference in New Issue