调整支付成功页面字段
This commit is contained in:
@@ -98,8 +98,8 @@
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
marketsInfo(this.$Route.query.marketId || 5).then(res =>{
|
||||
onShow() {
|
||||
marketsInfo(this.$Route.query.marketId).then(res =>{
|
||||
this.info = res
|
||||
this.price = res.price
|
||||
this.loding = false
|
||||
@@ -149,8 +149,16 @@
|
||||
marketsPay(this.orderNo, this.payValue).then(res => {
|
||||
switch (this.payValue){
|
||||
case 'eb':
|
||||
console.log(res)
|
||||
console.log('支付结果')
|
||||
this.$refs.payLay.close()
|
||||
this.$Router.push({
|
||||
name : 'payResults',
|
||||
params : {
|
||||
index: 1,
|
||||
price: this.price,
|
||||
type : 'eb',
|
||||
total: '可在我的资产下我的权证中查看购买的数字权证'
|
||||
}
|
||||
})
|
||||
break
|
||||
case 'wechat':
|
||||
this.wxPay(JSON.parse(res))
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<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>
|
||||
<view class="content">
|
||||
<view class="title nowrap">数字权证<text>{{item.surplus}}/{{item.stock}}</text></view>
|
||||
@@ -36,7 +36,7 @@
|
||||
page : {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
onShow() {
|
||||
this.getMarkets()
|
||||
},
|
||||
methods:{
|
||||
@@ -53,10 +53,14 @@
|
||||
markets({
|
||||
sort: this.tabIndex == 1 ? this.marketType : ''
|
||||
}).then(res => {
|
||||
console.log(res.data)
|
||||
this.marketArray = res.data
|
||||
this.page = res.page
|
||||
})
|
||||
},
|
||||
// 转让商品详情
|
||||
onDetails(e){
|
||||
this.$Router.push({name: 'marketDetails', params: {marketId: e.market_id}})
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
onNavigationBarButtonTap(){
|
||||
|
||||
@@ -168,7 +168,6 @@
|
||||
break;
|
||||
}
|
||||
}).catch(err =>{
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="total vertical">
|
||||
<uni-icons type="checkbox-filled" size="60" color="#e93340"></uni-icons>
|
||||
<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>
|
||||
<button class="btn" type="default" @click="onBack">确定</button>
|
||||
</view>
|
||||
|
||||
22
unpackage/dist/dev/app-plus/app-service.js
vendored
22
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
9
unpackage/dist/dev/app-plus/app-view.js
vendored
9
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -3604,7 +3604,12 @@ var render = function() {
|
||||
{
|
||||
key: item,
|
||||
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", {
|
||||
@@ -39716,7 +39721,7 @@ var render = function() {
|
||||
[
|
||||
_vm._v("支付金额"),
|
||||
_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
|
||||
|
||||
Reference in New Issue
Block a user