123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <view style="padding: 0 36upx;">
- <view style="text-align: center;margin: 0 auto;padding: 10upx 0;">
- <van-icon color="#eee;" size="88px" name="passed" />
- </view>
- <view style="text-align: center;padding: 10upx 0;">订单支付成功</view>
- <view class="submitRemin" @click="lookfor" style="background-color: #fff;color:#303133;border: 1px solid #D9332E;">查看订单详情</view>
- <view class="submitRemin" @click="submitRemin">继续购物</view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return{
- order_id:'',
- isform: 0,
- }
- },
- onLoad(e) {
- console.log(e);
- this.order_id = e.order_id;
- this.isform = e.isform; // 1 从订单过来 2 从购物车过来
- },
- methods:{
- // ji xu gou wu
- submitRemin() {
- console.log(this.isform);
- if(this.isform == 1) {
- uni.switchTab({
- url: '/pages/myOrder/index'
- })
- uni.$emit('finshlist');
- }else {
- uni.navigateTo({
- url: '/pages/index/cart'
- })
- }
-
- },
- // cha kan ding dan xiang qing
- lookfor() {
- let order_id = this.order_id ;
- uni.navigateTo({
- url: `/pages/myOrder/order?id=${order_id}`
- });
- }
- }
-
- }
- </script>
- <style>
- </style>
|