Commit ad3c493d authored by 小耗子's avatar 小耗子

修改返回

parent 5975ea36
<template>
<view class="back">
<view class="lf" @click="goback">
返回
</view>
<view class="title">{{info.title}}</view>
</view>
</template>
<script>
export default {
props:{
info:{
type: Object
}
},
data() {
return {
}
},
methods:{
goback(){
uni.navigateTo({
url: '/pages/h5/index'
})
}
}
}
</script>
<style lang="scss" scoped>
.back{
position: fixed;width:100%;margin-top:50rpx;position: relative; margin-top: 26px; height: 80px;line-height: 80px;
.lf{
position: absolute;width: 40px;text-align: center;padding-left:10rpx;
}
.title{
width: 100%;text-align:center
}
}
</style>
\ No newline at end of file
<template>
<view>
<view style="position: fixed;width:100%;margin-top:50rpx;position: relative;">
<view style="position: absolute;width: 40px;text-align: center" @click="goback"> 返回 </view>
<view style="width: 100%;text-align:center">自定义头部</view>
</view>
<sh-custom-nav :info="info" ></sh-custom-nav>
<view class="pay-container" v-if="!isPay">
<view class="money-box"><text class="money">{{actuallyPay}}</text></view>
<u-button @click="pay" shape="circle" type="primary" text="确认支付" color="#61b077"></u-button>
......@@ -30,8 +25,11 @@
</template>
<script>
import http from '@/shopro/request/index';
import Coupons from '@/components/sh-empty/sh-empty'
import shCustomNav from '@/components/sh-custom-nav/sh-custom-nav';
export default {
components:{
shCustomNav
},
data() {
return {
params:{},
......@@ -39,7 +37,10 @@
payStatus:'pending',
payTips:"等待中",
orderId:"",
isPay:false
isPay:false,
info:{
title:'支付'
}
}
},
methods: {
......@@ -91,16 +92,16 @@
// wx.navigateBack({
// delta: pages.length-2
// })
uni.navigateTo({
url: '/pages/h5/index'
})
uni.navigateTo({
url: '/pages/h5/index'
})
}
},
onLoad(option){
let {data,orderId,actuallyPay} = option;
this.actuallyPay = actuallyPay;
this.orderId = orderId;
this.params = JSON.parse(decodeURIComponent(data));
// let {data,orderId,actuallyPay} = option;
// this.actuallyPay = actuallyPay;
// this.orderId = orderId;
// this.params = JSON.parse(decodeURIComponent(data));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment