调整支付成功页面字段

This commit is contained in:
唐明明
2021-09-18 15:31:50 +08:00
parent d8d5766c86
commit ac4552a3ee
6 changed files with 43 additions and 17 deletions

View File

@@ -98,8 +98,8 @@
} }
}; };
}, },
created() { onShow() {
marketsInfo(this.$Route.query.marketId || 5).then(res =>{ marketsInfo(this.$Route.query.marketId).then(res =>{
this.info = res this.info = res
this.price = res.price this.price = res.price
this.loding = false this.loding = false
@@ -149,8 +149,16 @@
marketsPay(this.orderNo, this.payValue).then(res => { marketsPay(this.orderNo, this.payValue).then(res => {
switch (this.payValue){ switch (this.payValue){
case 'eb': case 'eb':
console.log(res) this.$refs.payLay.close()
console.log('支付结果') this.$Router.push({
name : 'payResults',
params : {
index: 1,
price: this.price,
type : 'eb',
total: '可在我的资产下我的权证中查看购买的数字权证'
}
})
break break
case 'wechat': case 'wechat':
this.wxPay(JSON.parse(res)) this.wxPay(JSON.parse(res))

View File

@@ -11,7 +11,7 @@
</view> </view>
</view> </view>
<view class="lists"> <view class="lists">
<view class="item" v-for="(item, index) in marketArray" :key="index"> <view class="item" v-for="(item, index) in marketArray" :key="index" @click="onDetails(item)">
<image class="cover" :src="item.goods.cover" mode="aspectFill"></image> <image class="cover" :src="item.goods.cover" mode="aspectFill"></image>
<view class="content"> <view class="content">
<view class="title nowrap">数字权证<text>{{item.surplus}}/{{item.stock}}</text></view> <view class="title nowrap">数字权证<text>{{item.surplus}}/{{item.stock}}</text></view>
@@ -36,7 +36,7 @@
page : {} page : {}
}; };
}, },
created() { onShow() {
this.getMarkets() this.getMarkets()
}, },
methods:{ methods:{
@@ -53,10 +53,14 @@
markets({ markets({
sort: this.tabIndex == 1 ? this.marketType : '' sort: this.tabIndex == 1 ? this.marketType : ''
}).then(res => { }).then(res => {
console.log(res.data)
this.marketArray = res.data this.marketArray = res.data
this.page = res.page this.page = res.page
}) })
},
// 转让商品详情
onDetails(e){
this.$Router.push({name: 'marketDetails', params: {marketId: e.market_id}})
console.log(e)
} }
}, },
onNavigationBarButtonTap(){ onNavigationBarButtonTap(){

View File

@@ -168,7 +168,6 @@
break; break;
} }
}).catch(err =>{ }).catch(err =>{
console.log(err)
uni.showToast({ uni.showToast({
title: err.message, title: err.message,
icon : 'none' icon : 'none'

View File

@@ -2,7 +2,7 @@
<view class="total vertical"> <view class="total vertical">
<uni-icons type="checkbox-filled" size="60" color="#e93340"></uni-icons> <uni-icons type="checkbox-filled" size="60" color="#e93340"></uni-icons>
<view class="title">支付成功</view> <view class="title">支付成功</view>
<view class="price">支付金额<text>{{type}}10.00</text></view> <view class="price">支付金额<text>{{type}}{{price}}</text></view>
<view class="text">{{total}}</view> <view class="text">{{total}}</view>
<button class="btn" type="default" @click="onBack">确定</button> <button class="btn" type="default" @click="onBack">确定</button>
</view> </view>

File diff suppressed because one or more lines are too long

View File

@@ -3604,7 +3604,12 @@ var render = function() {
{ {
key: item, key: item,
staticClass: _vm._$g("6-" + $30, "sc"), staticClass: _vm._$g("6-" + $30, "sc"),
attrs: { _i: "6-" + $30 } attrs: { _i: "6-" + $30 },
on: {
click: function($event) {
return _vm.$handleViewEvent($event)
}
}
}, },
[ [
_c("v-uni-image", { _c("v-uni-image", {
@@ -39716,7 +39721,7 @@ var render = function() {
[ [
_vm._v("支付金额"), _vm._v("支付金额"),
_c("v-uni-text", { attrs: { _i: 4 } }, [ _c("v-uni-text", { attrs: { _i: 4 } }, [
_vm._v(_vm._$g(4, "t0-0") + "10.00") _vm._v(_vm._$g(4, "t0-0") + _vm._$g(4, "t0-1"))
]) ])
], ],
1 1