|
@@ -43,11 +43,13 @@
|
|
<text style="width: 270px;">{{content}}</text>
|
|
<text style="width: 270px;">{{content}}</text>
|
|
</div>
|
|
</div>
|
|
</u-modal>
|
|
</u-modal>
|
|
|
|
+ <u-toast ref="uToast"></u-toast>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- const img = '/static/logo.png';
|
|
|
|
|
|
+ // const img = '/static/logo.png';
|
|
|
|
+ const img = '/static/live-camera/shutter.png';
|
|
import * as config from '@/config'
|
|
import * as config from '@/config'
|
|
let baseUrl = config.def().baseUrlNew
|
|
let baseUrl = config.def().baseUrlNew
|
|
export default {
|
|
export default {
|
|
@@ -193,12 +195,17 @@
|
|
'content-type': 'application/json' //'application/x-www-form-urlencoded; charset=UTF-8',
|
|
'content-type': 'application/json' //'application/x-www-form-urlencoded; charset=UTF-8',
|
|
},
|
|
},
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
|
+ console.log("支付状态",res)
|
|
this.show = false
|
|
this.show = false
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: "支付成功!",
|
|
|
|
+ })
|
|
this.getTrack(1) //调北斗
|
|
this.getTrack(1) //调北斗
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: '支付失败',
|
|
|
|
|
|
+ title: res.data.message,
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
@@ -210,6 +217,7 @@
|
|
// /hyOrderTravelPath/orderPath
|
|
// /hyOrderTravelPath/orderPath
|
|
//模拟获取远程数据
|
|
//模拟获取远程数据
|
|
getTrack(num) {
|
|
getTrack(num) {
|
|
|
|
+ var that = this
|
|
if (num == 0) { //平台轨迹
|
|
if (num == 0) { //平台轨迹
|
|
uni.request({
|
|
uni.request({
|
|
url: baseUrl + '/hyOrderTravelPath/getInfo',
|
|
url: baseUrl + '/hyOrderTravelPath/getInfo',
|
|
@@ -224,6 +232,7 @@
|
|
},
|
|
},
|
|
success: (res) => {
|
|
success: (res) => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
|
|
+ that.tips = "切换北斗轨迹"
|
|
if (res.data.data.records.length >0) {
|
|
if (res.data.data.records.length >0) {
|
|
var trajectory = []
|
|
var trajectory = []
|
|
for (let i = 0; i < res.data.data.records.length; i++) {
|
|
for (let i = 0; i < res.data.data.records.length; i++) {
|