Browse Source

优化支付页面跳转

master
邓平艺 4 years ago
parent
commit
6366423a10
  1. 4
      pages/aboutpay/confirmcash.vue
  2. 22
      pages/shop/goodsdetail.vue
  3. 2
      pages/user/member/code.vue

4
pages/aboutpay/confirmcash.vue

@ -101,10 +101,10 @@
}).then(res => { }).then(res => {
uni.hideLoading(); uni.hideLoading();
if(res.data.code == 200){ if(res.data.code == 200){
this.$url('/pages/aboutpay/paystate?payState=1&amount='+ this.amount);
this.$url('/pages/aboutpay/paystate?payState=1&amount='+ this.amount, {type: 'redirect'});
}else{ }else{
this.$msg(res.data.message || res.data.data || '支付失败').then(() => { this.$msg(res.data.message || res.data.data || '支付失败').then(() => {
this.$url('/pages/aboutpay/paystate?payState=0');
this.$url('/pages/aboutpay/paystate?payState=0', {type: 'redirect'});
}) })
} }
}).catch(err => uni.hideLoading()) }).catch(err => uni.hideLoading())

22
pages/shop/goodsdetail.vue

@ -86,18 +86,20 @@
</view> </view>
</block> </block>
<!-- 商品选择规格 --> <!-- 商品选择规格 -->
<view class="bg-white">
<view class="cu-bar padding-lr" @click="shoot(2)">
<view class="lf-flex">
<text class="lf-color-777 lf-font-28">选择</text>
<text class="lf-color-222 lf-font-26 lf-m-l-30">{{ showSpec }}</text>
</view>
<view>
<text class="lf-font-24 lf-color-777 lf-iconfont icon-xiangyou"></text>
<block v-if="$isRight(goods_stock.specs)">
<view class="bg-white">
<view class="cu-bar padding-lr" @click="shoot(2)">
<view class="lf-flex">
<text class="lf-color-777 lf-font-28">选择</text>
<text class="lf-color-222 lf-font-26 lf-m-l-30">{{ showSpec }}</text>
</view>
<view>
<text class="lf-font-24 lf-color-777 lf-iconfont icon-xiangyou"></text>
</view>
</view> </view>
</view> </view>
</view>
<self-line></self-line>
<self-line></self-line>
</block>
<!-- 店铺信息 --> <!-- 店铺信息 -->
<view v-if="type != 'point'"> <view v-if="type != 'point'">

2
pages/user/member/code.vue

@ -199,7 +199,7 @@
this.$http.get({ this.$http.get({
api: 'api/offline/get_pay', api: 'api/offline/get_pay',
data: { data: {
refresh: this.first_http <= 1 ? 1 : 0
cancel: this.first_http <= 1 ? 1 : 0
}, },
header: { header: {
Authorization: this.token Authorization: this.token

Loading…
Cancel
Save