Compare commits
2 Commits
caolc1
...
ccdb777232
| Author | SHA1 | Date | |
|---|---|---|---|
| ccdb777232 | |||
| e2672d627e |
21
App.vue
21
App.vue
@@ -237,16 +237,17 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
// uni.getLocation({
|
console.log(12388)
|
||||||
// type: 'wgs84',
|
uni.getLocation({
|
||||||
// success: function(res) {
|
type: 'wgs84',
|
||||||
// uni.setStorageSync('location', {
|
success: function(res) {
|
||||||
// longitude: res.longitude + '',
|
uni.setStorageSync('location', {
|
||||||
// latitude: res.latitude + ''
|
longitude: res.longitude + '',
|
||||||
// })
|
latitude: res.latitude + ''
|
||||||
// }
|
})
|
||||||
// });
|
}
|
||||||
|
});
|
||||||
console.log('onReady')
|
console.log('onReady')
|
||||||
const token = uni.getStorageSync('Authorization')
|
const token = uni.getStorageSync('Authorization')
|
||||||
const openid = uni.getStorageSync('openid')
|
const openid = uni.getStorageSync('openid')
|
||||||
|
|||||||
@@ -96,23 +96,33 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- 底部去支付 -->
|
<!-- 底部去支付 -->
|
||||||
<view class="">
|
<view class="" v-if="activePay||qrcodePay">
|
||||||
<!-- <view class="btn bg-white placeholder-hidden">
|
<view class="btn bg-white placeholder-hidden">
|
||||||
<view class="flex bg-white padding flex-direction">
|
<view class="flex bg-white padding flex-direction">
|
||||||
<button class="cu-btn block bg-main-oil lg" v-if="activePay" @tap="makePay">
|
<button class="cu-btn block bg-main-oil lg" v-if="activePay" @tap="makePay">
|
||||||
<image class="site-icon margin-right-sm" :src="imgURL+'site-yz.png'" mode="widthFix">
|
<image class="site-icon margin-right-sm" :src="imgURL+'site-yz.png'" mode="widthFix">
|
||||||
</image>
|
</image>
|
||||||
一键支付
|
一键支付
|
||||||
</button>
|
</button>
|
||||||
|
<!-- <button v-if="qrcodePay" class="cu-btn block bg-main-oil margin-tb-sm lg" @tap="siteQrPay">
|
||||||
|
<image class="site-icon margin-right-sm" :src="imgURL+'site-qr.png'" mode="widthFix">
|
||||||
|
</image>
|
||||||
|
二维码支付
|
||||||
|
</button> -->
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view>
|
||||||
<view class="btn bg-white fixed ">
|
<view class="btn bg-white fixed ">
|
||||||
<view class="flex bg-white padding flex-direction">
|
<view class="flex bg-white padding flex-direction">
|
||||||
<button class="cu-btn block bg-main-oil lg" @tap="makePay">
|
<button class="cu-btn block bg-main-oil lg" v-if="activePay" @tap="makePay">
|
||||||
<image class="site-icon margin-right-sm" :src="imgURL+'site-yz.png'" mode="widthFix">
|
<image class="site-icon margin-right-sm" :src="imgURL+'site-yz.png'" mode="widthFix">
|
||||||
</image>
|
</image>
|
||||||
一键支付
|
一键支付
|
||||||
</button>
|
</button>
|
||||||
|
<!-- <button v-if="qrcodePay" class="cu-btn block bg-main-oil margin-tb-sm lg" @tap="siteQrPay">
|
||||||
|
<image class="site-icon margin-right-sm" :src="imgURL+'site-qr.png'" mode="widthFix">
|
||||||
|
</image>
|
||||||
|
二维码支付
|
||||||
|
</button> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -100,26 +100,19 @@
|
|||||||
})
|
})
|
||||||
interstitialAd.onError((err) => {
|
interstitialAd.onError((err) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.switchTab({
|
if (key == '在线') {
|
||||||
url: '/pages/tabbar/home/home',
|
uni.switchTab({
|
||||||
fail: (err) => {
|
url: '/pages/tabbar/home/home',
|
||||||
console.log(err)
|
fail: (err) => {
|
||||||
}
|
console.log(err)
|
||||||
// url:'/BagStation/orderDetail/orderDetail'
|
}
|
||||||
})
|
// url:'/BagStation/orderDetail/orderDetail'
|
||||||
// if (key == '在线') {
|
})
|
||||||
// uni.switchTab({
|
} else {
|
||||||
// url: '/pages/tabbar/home/home',
|
uni.redirectTo({
|
||||||
// fail: (err) => {
|
url: '/BagAuth/pages/login/login'
|
||||||
// console.log(err)
|
})
|
||||||
// }
|
}
|
||||||
// // url:'/BagStation/orderDetail/orderDetail'
|
|
||||||
// })
|
|
||||||
// } else {
|
|
||||||
// uni.redirectTo({
|
|
||||||
// url: '/BagAuth/pages/login/login'
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
}, 2000)
|
}, 2000)
|
||||||
console.log('onError event emit', err)
|
console.log('onError event emit', err)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user