【类 型】:fix

【原  因】:checkUserInfo的函数之前修改过 不用接受参数 再函数内部直接调用的全局变量 ,前端调用时并没有删掉传参
【过  程】:去掉多余的wxLogin函数引用 checkUserInfo这个函数不用传参
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
sszdot 2024-12-23 18:03:00 +08:00
parent c280d65a7a
commit c8018ceb97
4 changed files with 20 additions and 12 deletions

View File

@ -58,6 +58,10 @@
.pr{
position: relative;
}
.pa{
position: absolute;
}
.fc {
text-align: center;

View File

@ -20,12 +20,18 @@
</view>
</view>
<view class="m-t-24 flex mr">
<view class="numberBut bg-m fci rad8 fz28 fb flex mac mc" :key="foodSn">
<view class="nullBut bg-m fci rad8 fz28 flex mac mc m-l-24" :key="foodSn">
立即支付
</view>
<view class="numberBut bg-m fci rad8 fz28 fb flex mac mc m-l-24" :key="foodSn">
{{ foodSn }}
</view>
<view class="nullBut border fcb rad8 fz28 flex mac mc m-l-24" style="">
<view class="nullBut border fcb rad8 fz28 flex mac mc m-l-24">
申请售后
</view>
<view class="nullBut border fcb rad8 fz28 flex mac mc m-l-24">
退款详情
</view>
</view>
</view>
</template>

View File

@ -47,8 +47,7 @@
<script>
import {
checkUserInfo,
wxLogin
checkUserInfo
} from '@/utils/index.js'
export default {
@ -69,7 +68,7 @@
return this.$store.state.orderList.filter(item => item.main_status === '已付款')
}
},
onShow() {
created() {
//token
this.checkUserInfo()
// tabber
@ -77,9 +76,7 @@
},
methods: {
//
checkUserInfo() {
return checkUserInfo(this.$store)
}
checkUserInfo,
}
}
</script>

View File

@ -71,12 +71,13 @@
orderList_unpaid() {
return this.$store.state.orderList.filter(item => item.main_status === '未付款')
},
// 退
// 退
orderList_paid() {
return this.$store.state.orderList.filter(item => item.main_status === '已付款' && item.refund_status ===
'未申请')
return this.$store.state.orderList.filter(item => {
(item.main_status === '已付款' || item.main_status === '已完成') && item.refund_status === '未申请'
})
},
// 退 退
// 退 退 退
orderList_refund() {
return this.$store.state.orderList.filter(item => item.refund_status !== '未申请')
},