1 #13

Merged
caoliancun merged 1 commits from caolc1 into master 2 years ago
  1. 22
      BagStation/pages/stationDetail/stationDetail.vue
  2. 33
      pages/index/startPage/startPage.vue

@ -96,33 +96,23 @@
</view> </view>
<!-- 底部去支付 --> <!-- 底部去支付 -->
<view class="" v-if="activePay||qrcodePay"> <view class="">
<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" v-if="activePay" @tap="makePay"> <button class="cu-btn block bg-main-oil lg" @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,19 +100,26 @@
}) })
interstitialAd.onError((err) => { interstitialAd.onError((err) => {
setTimeout(() => { setTimeout(() => {
if (key == '在线') { uni.switchTab({
uni.switchTab({ url: '/pages/tabbar/home/home',
url: '/pages/tabbar/home/home', fail: (err) => {
fail: (err) => { console.log(err)
console.log(err) }
} // url:'/BagStation/orderDetail/orderDetail'
// url:'/BagStation/orderDetail/orderDetail' })
}) // if (key == '线') {
} else { // uni.switchTab({
uni.redirectTo({ // url: '/pages/tabbar/home/home',
url: '/BagAuth/pages/login/login' // fail: (err) => {
}) // 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)
}) })

Loading…
Cancel
Save