地图定位 充值

This commit is contained in:
Mr.jiang 2024-06-25 15:20:37 +08:00
parent b8b9e24eef
commit afb296cc5f
4 changed files with 44 additions and 33 deletions

View File

@ -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/";

View File

@ -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) {

View File

@ -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);">&nbsp;</div> <div id="txMapContainer" style="width: 100%;height: calc(100vh - 188px);">&nbsp;</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;

View File

@ -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);">&nbsp;</div> <div id="txMapContainer" style="width: 100%;height: calc(100vh - 188px);">&nbsp;</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;