From 1d6a520a984b7c4352bd0fcec520ed21cb9d71c8 Mon Sep 17 00:00:00 2001
From: aihe <961836564@qq.com>
Date: Wed, 13 Dec 2023 00:51:07 +0800
Subject: [PATCH] uu
---
common/enum.js | 17 +-
common/untool.js | 8 +-
pages.json | 12 ++
pages/bill/detail.vue | 177 ++++++++++++++++++++
pages/bill/list.vue | 325 +++++++++++++++++++++++++++++++++++++
pages/tabBar/mine/mine.vue | 6 +-
6 files changed, 537 insertions(+), 8 deletions(-)
create mode 100644 pages/bill/detail.vue
create mode 100644 pages/bill/list.vue
diff --git a/common/enum.js b/common/enum.js
index 07db382..1576560 100644
--- a/common/enum.js
+++ b/common/enum.js
@@ -9,6 +9,7 @@ const ordStatusList = [
{ title: '待付款', val: ordStaEnum.unpay }
]
+
const payTypeEnum = {
postNow: 1,
toNow: 2,
@@ -84,6 +85,18 @@ const sendTypeList = [
{ title: '整柜提货', val: sendTypeEnum.container }
]
+const payStatusEnum = {
+ todo: 1,
+ done: 2,
+ other: 3,
+}
+
+const payStatusList = [
+ { title: '待付款', val: payStatusEnum.todo },
+ { title: '已付款', val: payStatusEnum.done },
+ { title: '其他', val: payStatusEnum.other }
+]
+
export {
ordStaEnum,
ordStatusList,
@@ -94,5 +107,7 @@ export {
dateTypeEnum,
dateTypeList,
sendTypeEnum,
- sendTypeList
+ sendTypeList,
+ payStatusEnum,
+ payStatusList
}
\ No newline at end of file
diff --git a/common/untool.js b/common/untool.js
index 31038d7..d7927f6 100644
--- a/common/untool.js
+++ b/common/untool.js
@@ -1,7 +1,7 @@
const tabBarUrls = [
- 'tabBar/sending/sending',
- 'tabBar/search/search',
- 'tabBar/mine/mine'
+ '/pages/tabBar/sending/sending',
+ '/pages/tabBar/search/search',
+ '/pages/tabBar/mine/mine'
]
const goto = (url, type = 1)=> {
@@ -35,7 +35,7 @@ const setClipboardData = (val)=> {
uni.setClipboardData({
data: val,
success: () => {
- showToast({ title: "复制成功", icon: 'none' })
+ showToast('复制成功')
},
})
}
diff --git a/pages.json b/pages.json
index 348ab23..2a7f67b 100644
--- a/pages.json
+++ b/pages.json
@@ -91,6 +91,18 @@
"style": {
"navigationBarTitleText": "实名认证"
}
+ },
+ {
+ "path": "pages/bill/list",
+ "style": {
+ "navigationBarTitleText": "我的账单"
+ }
+ },
+ {
+ "path": "pages/bill/detail",
+ "style": {
+ "navigationBarTitleText": "账单明细"
+ }
}
],
diff --git a/pages/bill/detail.vue b/pages/bill/detail.vue
new file mode 100644
index 0000000..072c624
--- /dev/null
+++ b/pages/bill/detail.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+ 账单编号
+ {{'T7080123982301'}}
+
+
+ 出账日期
+ {{'2023-11-20 13:28:56'}}
+
+
+ 总票数
+ {{'1'}}
+
+
+ 总件数
+ {{'20'}}
+
+
+ 总重量
+ {{'120.00 kg'}}
+
+
+ 应付金额
+ {{'1225.00 CNY'}}
+
+
+ 已付金额
+ {{'0.00 CNY'}}
+
+
+ 开票状态
+ {{'未开票'}}
+
+
+
+ 支付给
+
+
+
+
+
+
+
+
+ 支付金额
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/bill/list.vue b/pages/bill/list.vue
new file mode 100644
index 0000000..917b0db
--- /dev/null
+++ b/pages/bill/list.vue
@@ -0,0 +1,325 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { handleSearchParamChange() }" v-slot="curOrdTab"
+ >
+
+ ({{curOrdTab.item.val}})
+
+
+
+
+
+
+
+
+ {{hasExtSchParam?'已':''}}筛选
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ T7080123982307
+
+ {{'未开票'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 去付款
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabBar/mine/mine.vue b/pages/tabBar/mine/mine.vue
index b863d85..b188a42 100644
--- a/pages/tabBar/mine/mine.vue
+++ b/pages/tabBar/mine/mine.vue
@@ -73,10 +73,10 @@
{ title: '186单', subTitle: "收件", icon: getCdnUrl(`mine/shjian.png`), url: '' }
],
toolBtnlist: [
- { title: '运单列表', subTitle: "", icon: getCdnUrl(`mine/ydlib.png`), url: '' },
+ { title: '运单列表', subTitle: "", icon: getCdnUrl(`mine/ydlib.png`), url: 'tabBar/search/search' },
{ title: '进仓单', subTitle: "", icon: getCdnUrl(`mine/jcdan.png`), url: '' },
{ title: '协议', subTitle: "", icon: getCdnUrl(`mine/xieyi.png`), url: '' },
- { title: '账单查询', subTitle: "", icon: getCdnUrl(`mine/zhdancha.png`), url: '' },
+ { title: '账单查询', subTitle: "", icon: getCdnUrl(`mine/zhdancha.png`), url: 'bill/list' },
{ title: '地址簿', subTitle: "", icon: getCdnUrl(`mine/dizhi.png`), url: 'address/list' },
{ title: '快件查询', subTitle: "", icon: getCdnUrl(`mine/kjcha.png`), url: '' },
{ title: '投诉建议', subTitle: "", icon: getCdnUrl(`mine/tousu.png`), url: 'complaint/complaint' },
@@ -93,7 +93,7 @@
methods: {
getCdnUrl,
handlePageRedirect(item) {
- goto(item.url)
+ item.url && goto(item.url)
}
}
}