|
@@ -1,7 +1,6 @@
|
|
|
import { api_studentOrderPage } from "../../api/login";
|
|
|
// 获取应用实例
|
|
|
const app = getApp<IAppOption>()
|
|
|
-// pages/orders/orders.ts
|
|
|
Page({
|
|
|
|
|
|
/**
|
|
@@ -29,10 +28,10 @@ Page({
|
|
|
id: 4,
|
|
|
label: "已取消",
|
|
|
},
|
|
|
- // {
|
|
|
- // id: 5,
|
|
|
- // label: "退款中",
|
|
|
- // },
|
|
|
+ {
|
|
|
+ id: 5,
|
|
|
+ label: "售后",
|
|
|
+ },
|
|
|
// {
|
|
|
// id: 6,
|
|
|
// label: "已退款",
|
|
@@ -82,7 +81,7 @@ Page({
|
|
|
openId: app.globalData.userInfo?.liteOpenid,
|
|
|
page: currentPage,
|
|
|
rows: this.data.rows,
|
|
|
- wechatOrderStatus: tabIdx == 0 ? "" : tabIdx == 1 ? "WAIT_PAY" : tabIdx == 2 ? "WAIT_USE" : tabIdx == 3 ? "PAID" : tabIdx == 4 ? "CLOSED" : "",
|
|
|
+ wechatOrderStatus: tabIdx == 0 ? "" : tabIdx == 1 ? "WAIT_PAY" : tabIdx == 2 ? "WAIT_USE" : tabIdx == 3 ? "PAID" : tabIdx == 4 ? "CLOSED" : tabIdx == 5 ? 'REFUNDED' : "",
|
|
|
})
|
|
|
if (data.code == 200) {
|
|
|
const { rows, total } = data.data;
|
|
@@ -122,7 +121,8 @@ Page({
|
|
|
WAIT_USE: '等待使用',
|
|
|
PAID: '交易完成',
|
|
|
CLOSED: '交易取消',
|
|
|
- REFUNDED: '退款成功'
|
|
|
+ REFUNDING: '售后中',
|
|
|
+ REFUNDED: '售后成功'
|
|
|
}
|
|
|
return template[status]
|
|
|
},
|
|
@@ -157,11 +157,11 @@ Page({
|
|
|
loadMore() {
|
|
|
const currentPage = this.data.page;
|
|
|
if (this.data.page >= this.data.maxPage) {
|
|
|
- wx.showToast({
|
|
|
- title: "没有更多数据了",
|
|
|
- icon: "none",
|
|
|
- duration: 1000,
|
|
|
- });
|
|
|
+ // wx.showToast({
|
|
|
+ // title: "没有更多数据了",
|
|
|
+ // icon: "none",
|
|
|
+ // duration: 1000,
|
|
|
+ // });
|
|
|
} else {
|
|
|
this.setData(
|
|
|
{
|
|
@@ -213,7 +213,6 @@ Page({
|
|
|
},
|
|
|
onDetail(e: any) {
|
|
|
const { dataset } = e.currentTarget
|
|
|
- console.log(e)
|
|
|
wx.navigateTo({
|
|
|
url: '../orders/order-result?orderNo=' + dataset.orderno
|
|
|
})
|