Compare commits

..

No commits in common. "0d76b301b96297175310c1038b1014f79ac457a6" and "4878c435711ec7d7bbcba2c056acab9e5ed74ccd" have entirely different histories.

4 changed files with 9 additions and 32 deletions

View File

@ -12,7 +12,7 @@
//
this.$store.dispatch('fetchMenuList')
// Promise
const promises = []
const promises = [];
//spu
promises.push(this.$store.dispatch('fetchSpuList'))
//sku

View File

@ -31,7 +31,7 @@
<view v-if="showPickupNumber" class="numberBut bg-m fci rad8 fz28 fb flex mac mc m-l-24">
{{ foodSn }}
</view>
<navigator v-if="showAfterSaleButton" class="m-l-24" :url="`/pages/order/refund?order_sn=${order.order_sn}`" hover-class="navigator-hover">
<navigator v-if="showAfterSaleButton" class="m-l-24" :url="`/pages/shop/refund?order_sn=${order.order_sn}`" hover-class="navigator-hover">
<view class="nullBut border fcb rad8 fz28 flex mac mc">
申请售后
</view>

View File

@ -1,16 +1,10 @@
<template>
<view>
<!-- topbar -->
<u-navbar
title="订单"
bgColor="#d43030"
:titleStyle="{ color: '#FFF' }"
:autoBack="false"
placeholder
>
<view class="u-nav-slot" slot="left" @click="onBackClick">
<u-icon name="arrow-left" color="#fff" size="19"></u-icon>
</view>
<u-navbar title="订单" bgColor="#d43030" :titleStyle="{ color: '#FFF'}" :autoBack="true" placeholder>
<view class="u-nav-slot" slot="left">
<u-icon name="arrow-left" color="#fff" size="19"></u-icon>
</view>
</u-navbar>
<!-- tab -->
<view class="tabListBox m-l-24 m-r-24 m-t-24 flex msb pr">
@ -69,8 +63,6 @@
}
},
onLoad() {
//
this.$store.dispatch('fetchOrderList')
// tapline
this.lineOffset(this.current)
},
@ -95,21 +87,6 @@
}
},
methods: {
//
onBackClick() {
const pages = getCurrentPages() //
if (pages.length === 1) {
//
uni.reLaunch({
url: '/pages/index/index', //
})
} else {
//
uni.navigateBack({
delta: 1, //
})
}
},
//tab current
handlerTab(index) {
this.current = index

View File

@ -217,9 +217,9 @@
//退
if (res.data.status === 1) {
// 退tab
uni.navigateTo({
url: `/pages/order/index`
})
// uni.navigateTo({
// url: `/pages/shop/pay?order_sn=${res.data.order_sn}&fullPrice=${fullPrice}`
// })
} else if (res.data.status === -1) {
uni.removeStorage({ //
key: 'userInfo',