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