lbs调整
This commit is contained in:
parent
bc3158555a
commit
195a1650a9
2
App.vue
2
App.vue
@ -38,6 +38,8 @@
|
|||||||
// 成功
|
// 成功
|
||||||
this.setUniverifyErrorMsg();
|
this.setUniverifyErrorMsg();
|
||||||
console.log("preLogin success: ", res);
|
console.log("preLogin success: ", res);
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
fail: (res) => {
|
fail: (res) => {
|
||||||
this.setUniverifyLogin(false);
|
this.setUniverifyLogin(false);
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import * as apiService from "@/common/api"
|
|||||||
|
|
||||||
export const getSystemInfo = () => {
|
export const getSystemInfo = () => {
|
||||||
let info = uni.getSystemInfoSync()
|
let info = uni.getSystemInfoSync()
|
||||||
console.log('getSystemInfo=====', info)
|
// console.log('getSystemInfo=====', info)
|
||||||
return info
|
return info
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,13 @@
|
|||||||
let envMap = {
|
let envMap = {
|
||||||
development: {
|
development: {
|
||||||
apiHost: 'http://47.102.220.189:58089/api/bizsvr',
|
apiHost: 'https://api-emis.tanex56.com/api/bizsvr',
|
||||||
socketHost: 'ws://47.102.220.189:58089/api/bizsvr',
|
socketHost: 'wss://api-emis.tanex56.com/api/bizsvr',
|
||||||
|
// apiHost: 'http://47.102.220.189:58089/api/bizsvr',
|
||||||
|
// socketHost: 'ws://47.102.220.189:58089/api/bizsvr',
|
||||||
},
|
},
|
||||||
production: {
|
production: {
|
||||||
apiHost: 'http://api-emis.tanex56.com/api/bizsvr',
|
apiHost: 'https://api-emis.tanex56.com/api/bizsvr',
|
||||||
socketHost: 'ws://api-emis.tanex56.com/api/bizsvr',
|
socketHost: 'wss://api-emis.tanex56.com/api/bizsvr',
|
||||||
// apiHost: 'http://api-emis.jtrs56.com/api/bizsvr',
|
// apiHost: 'http://api-emis.jtrs56.com/api/bizsvr',
|
||||||
// socketHost: 'ws://api-emis.jtrs56.com/api/bizsvr',
|
// socketHost: 'ws://api-emis.jtrs56.com/api/bizsvr',
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,6 +94,10 @@
|
|||||||
<u-textarea v-model="modelInfo.feeRemark" border="surround" height="120" placeholder="费用备注"
|
<u-textarea v-model="modelInfo.feeRemark" border="surround" height="120" placeholder="费用备注"
|
||||||
maxlength="300" count></u-textarea>
|
maxlength="300" count></u-textarea>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="pt-20">
|
||||||
|
<tpx-input v-model="modelInfo.codFeeDesc" border="surround" custom-style="height: 46rpx;" placeholder="代收备注"
|
||||||
|
maxlength="50" count></tpx-input>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<buns-edit-sheet percentHeight="40" :title="costModal.item.feeName" v-model:show="costModal.show" v-model:value="costModal.item" v-slot="tempObject" @onSure="handleCostItemSure" :okCloseModal="false">
|
<buns-edit-sheet percentHeight="40" :title="costModal.item.feeName" v-model:show="costModal.show" v-model:value="costModal.item" v-slot="tempObject" @onSure="handleCostItemSure" :okCloseModal="false">
|
||||||
|
|||||||
@ -66,6 +66,10 @@
|
|||||||
<text class="clr-sub pr-10">费用备注</text>
|
<text class="clr-sub pr-10">费用备注</text>
|
||||||
<text>{{modelInfo.feeRemark || '-'}}</text>
|
<text>{{modelInfo.feeRemark || '-'}}</text>
|
||||||
</u-row>
|
</u-row>
|
||||||
|
<u-row>
|
||||||
|
<text class="clr-sub pr-10">代收备注</text>
|
||||||
|
<text>{{modelInfo.codFeeDesc || '-'}}</text>
|
||||||
|
</u-row>
|
||||||
</u-row>
|
</u-row>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"appid" : "__UNI__BCB0FB5",
|
"appid" : "__UNI__BCB0FB5",
|
||||||
"description" : "探路国际速运",
|
"description" : "探路国际速运",
|
||||||
"versionName" : "1.0.1",
|
"versionName" : "1.0.1",
|
||||||
"versionCode" : 1063,
|
"versionCode" : 1062,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
@ -102,7 +102,19 @@
|
|||||||
"appkey_android" : "b7feefb9882f1d0953fbeffb1cef8aec"
|
"appkey_android" : "b7feefb9882f1d0953fbeffb1cef8aec"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"push" : {}
|
"push" : {},
|
||||||
|
"oauth" : {
|
||||||
|
"weixin" : {
|
||||||
|
"appid" : "wxcb329faf410bc997",
|
||||||
|
"UniversalLinks" : ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"share" : {
|
||||||
|
"weixin" : {
|
||||||
|
"appid" : "wxcb329faf410bc997",
|
||||||
|
"UniversalLinks" : ""
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"orientation" : [ "portrait-primary" ],
|
"orientation" : [ "portrait-primary" ],
|
||||||
"splashscreen" : {
|
"splashscreen" : {
|
||||||
|
|||||||
@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<view v-if="info.paymentStatus!=1&&info.blLockOnlinePay!='T'" class="blcok-white-noradius">
|
<view v-if="info.paymentStatus!=1&&info.blLockOnlinePay!='T'" class="blcok-white-noradius">
|
||||||
<u-button @click="shareToWeixin()" type="primary" size="large" shape="circle"
|
<u-button @click="shareToWeixin()" type="primary" size="large" shape="circle" open-type="share"
|
||||||
custom-style="height:80rpx;font-size: 30rpx;"
|
custom-style="height:80rpx;font-size: 30rpx;"
|
||||||
>分享给客户支付</u-button>
|
>分享给客户支付</u-button>
|
||||||
</view>
|
</view>
|
||||||
@ -215,43 +215,6 @@
|
|||||||
// let res = await apiService.getWxPayQrCode({settleBillNo: this.queryOption.blNo, _loading: true })
|
// let res = await apiService.getWxPayQrCode({settleBillNo: this.queryOption.blNo, _loading: true })
|
||||||
// this.payQrImageUrl = res.data
|
// this.payQrImageUrl = res.data
|
||||||
},
|
},
|
||||||
async handleCallPay(){
|
|
||||||
let info = this.$store.getters.userInfo
|
|
||||||
// console.log('==>info.openId==>', info.openId);
|
|
||||||
let openId = info.openId;
|
|
||||||
let res = await apiService.sumbitWxPay({settleBillNo: this.queryOption.blNo,openId:openId,_loading: true })
|
|
||||||
// 调起微信支付
|
|
||||||
// console.log('==>res.data=>', res.data);
|
|
||||||
let weChatPayData = res.data;
|
|
||||||
// console.log('==>weChatPayData=>', weChatPayData);
|
|
||||||
uni.requestPayment({
|
|
||||||
provider: 'wxpay',
|
|
||||||
timeStamp: weChatPayData.timeStamp,
|
|
||||||
nonceStr: weChatPayData.nonceStr,
|
|
||||||
package: weChatPayData.package,
|
|
||||||
signType: weChatPayData.signType,
|
|
||||||
paySign: weChatPayData.paySign,
|
|
||||||
success: function(res) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '支付成功',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
// console.log('支付成功', res);
|
|
||||||
// 业务逻辑
|
|
||||||
},
|
|
||||||
fail: function(err) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '支付失败:'+err,
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
// console.log('支付失败', err);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// console.log(res)
|
|
||||||
// debugger
|
|
||||||
},
|
|
||||||
|
|
||||||
shareToWeixin(){
|
shareToWeixin(){
|
||||||
this.shareTo('weixin', 'WXSceneSession')
|
this.shareTo('weixin', 'WXSceneSession')
|
||||||
},
|
},
|
||||||
@ -260,10 +223,10 @@
|
|||||||
provider: platform,
|
provider: platform,
|
||||||
scene: scene,
|
scene: scene,
|
||||||
type: 0,
|
type: 0,
|
||||||
title: "探路速运运单支付:"+this.queryOption.blNo,
|
title: "请使用微信支付探路速运账单费用:"+this.queryOption.blNo,
|
||||||
summary: "请使用微信付款",
|
summary: "请使用微信付款",
|
||||||
href: 'https://oms.tanex56.com/onlinePay?bid='+this.queryOption.blNo,
|
href: 'https://oms.tanex56.com/onlinePay?bid='+this.queryOption.blNo,
|
||||||
imageUrl: '',
|
imageUrl: 'https://oms.tanex56.com/shorticon.png',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '分享成功',
|
title: '分享成功',
|
||||||
@ -271,13 +234,51 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
console.error('分享失败:', err)
|
console.error('分享失败:', JSON.stringify(err))
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '分享失败,请稍后重试',
|
title: '分享失败:'+JSON.stringify(err),
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// var weixinShare = null;
|
||||||
|
// plus.share.getServices(function(services) {
|
||||||
|
// for (var i in services) {
|
||||||
|
// var service = services[i];
|
||||||
|
// // 获取微信分享对象
|
||||||
|
// if (service.id == 'weixin') {
|
||||||
|
// weixinShare = service;
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if(weixinShare==null){
|
||||||
|
// uni.showToast({
|
||||||
|
// title: '分享失败:获取微信分享服务失败',
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// weixinShare.send( {
|
||||||
|
// content: '我正在使用HBuilderX开发App,赶紧跟我一起来体验!'
|
||||||
|
// }, function(){
|
||||||
|
// // 分享成功
|
||||||
|
// }, function(err) {
|
||||||
|
// // 分享操作失败
|
||||||
|
// uni.showToast({
|
||||||
|
// title: '分享失败1:'+JSON.stringify(err),
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
// })
|
||||||
|
// }, function(err) {
|
||||||
|
// // 获取 services 失败
|
||||||
|
// uni.showToast({
|
||||||
|
// title: '分享失败2:'+JSON.stringify(err),
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
formatSendDay(sendDate){
|
formatSendDay(sendDate){
|
||||||
return dayjs(sendDate).format('YYYY-MM-DD');
|
return dayjs(sendDate).format('YYYY-MM-DD');
|
||||||
|
|||||||
@ -68,8 +68,11 @@ export const getOrderModels = () => {
|
|||||||
blOverWeight: undefined,
|
blOverWeight: undefined,
|
||||||
overWeightNumber: undefined,
|
overWeightNumber: undefined,
|
||||||
feeRemark: undefined, // 付款方式-其他-备注
|
feeRemark: undefined, // 付款方式-其他-备注
|
||||||
|
codFeeDesc: undefined, // 代收备注
|
||||||
realValue: undefined, // 货值, 单位:美元
|
realValue: undefined, // 货值, 单位:美元
|
||||||
blDispFd: undefined,
|
blDispFd: undefined,
|
||||||
|
blVirtual: undefined, // 是否虚拟单
|
||||||
|
masterBillCode: undefined, // 虚拟单主单
|
||||||
transferCode: undefined,
|
transferCode: undefined,
|
||||||
transferBillcode: undefined,
|
transferBillcode: undefined,
|
||||||
dispFdDate: undefined,
|
dispFdDate: undefined,
|
||||||
|
|||||||
@ -174,7 +174,7 @@
|
|||||||
staticInfo: {
|
staticInfo: {
|
||||||
commStat: {},
|
commStat: {},
|
||||||
orderStat: {},
|
orderStat: {},
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import {
|
|||||||
import * as apiService from "@/common/api"
|
import * as apiService from "@/common/api"
|
||||||
import { goto } from "@/common/untool"
|
import { goto } from "@/common/untool"
|
||||||
import { createSocketMessage, currentSocketTask } from "@/common/messageNotice/socket"
|
import { createSocketMessage, currentSocketTask } from "@/common/messageNotice/socket"
|
||||||
|
import XdLbsUniSdk from "@/common/lbs/XdLbsUniSdk.js"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
state: {
|
state: {
|
||||||
@ -87,6 +88,10 @@ export default {
|
|||||||
|
|
||||||
// 链接socket
|
// 链接socket
|
||||||
createSocketMessage({ userInfo: info })
|
createSocketMessage({ userInfo: info })
|
||||||
|
|
||||||
|
// lbs serice
|
||||||
|
XdLbsUniSdk.getInstance("1000003").init(info.empCode)
|
||||||
|
|
||||||
commit(USERKEY.GETUSERINFO, info)
|
commit(USERKEY.GETUSERINFO, info)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user