diff --git a/agentApp/common/api.js b/agentApp/common/api.js
index 92fd182..abdc2ec 100644
--- a/agentApp/common/api.js
+++ b/agentApp/common/api.js
@@ -1,3 +1,57 @@
-const { http } = uni.$u
-// 获取菜单
-export const fetchMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)
+import {
+ baseUrl
+} from "./config"
+
+const {
+ http
+} = uni.$u
+
+// 响应拦截
+http.interceptors.response.use((response) => {
+ /* 对响应成功做点什么 可使用async await 做异步操作*/
+ const data = response.data
+
+ // 自定义参数
+ const custom = response.config?.custom
+ if (data.code !== 200) {
+ // 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
+ if (custom.toast !== false) {
+ uni.$u.toast(data.msg)
+ }
+
+ // 如果需要catch返回,则进行reject
+ if (custom?.catch) {
+ return Promise.reject(data)
+ } else {
+ // 否则返回一个pending中的promise,请求不会进入catch中
+ return new Promise(() => {})
+ }
+ }
+ return data.data === undefined ? {} : data.data
+}, (response) => {
+ // 对响应错误做点什么 (statusCode !== 200)
+ return Promise.reject(response)
+})
+
+// 带上用户token
+const userConfig = function() {
+ return {
+ header: {
+ 'User-Token': uni.getStorageSync('user_token')
+ }
+ }
+}
+
+export const userGetMerchantInfo = (params) => http.post(baseUrl + '/api/user/getMerchantInfo', params, userConfig())
+
+export const userCreateOrder = (params) => http.post(baseUrl + '/api/user/createOrder', params, userConfig())
+
+export const userAccountInfo = () => http.post(baseUrl + '/api/user/accountInfo', {}, userConfig())
+
+export const userQueueRebateList = (params) => http.post(baseUrl + '/api/user/queueRebateList', params, userConfig())
+
+export const userOrderList = (params) => http.post(baseUrl + '/api/user/orderList', params, userConfig())
+
+export const userFillAlipayAccount = (params) => http.post(baseUrl + '/api/user/fillAlipayAccount', params, userConfig())
+
+export const userWithdraw = (params) => http.post(baseUrl + '/api/user/withdraw', params, userConfig())
\ No newline at end of file
diff --git a/agentApp/common/config.js b/agentApp/common/config.js
index b17c3c9..f73a43e 100644
--- a/agentApp/common/config.js
+++ b/agentApp/common/config.js
@@ -1,3 +1,3 @@
module.exports = {
- baseUrl: 'https://api.youzixy.com'
+ baseUrl: 'https://pdsk.leadfyy.com'
}
diff --git a/agentApp/manifest.json b/agentApp/manifest.json
index 3368e88..b023fb4 100644
--- a/agentApp/manifest.json
+++ b/agentApp/manifest.json
@@ -1,6 +1,6 @@
{
- "name" : "agentApp",
- "appid" : "__UNI__41F40AB",
+ "name" : "排队收款",
+ "appid" : "__UNI__A0FF0B7",
"description" : "多平台快速开发的UI框架",
"versionName" : "2.0.36",
"versionCode" : 1,
@@ -130,18 +130,21 @@
"template" : "template.h5.html",
"router" : {
"mode" : "history",
- "base" : "/wap/"
+ "base" : "/h5/"
},
"optimization" : {
"treeShaking" : {
- "enable" : false
+ "enable" : true
}
},
- "title" : "星链创动",
+ "title" : "排队收款",
"sdkConfigs" : {
"maps" : {}
},
- "domain" : ""
+ "domain" : "",
+ "devServer" : {
+ "https" : false
+ }
},
"vueVersion" : "2"
}
diff --git a/agentApp/pages.json b/agentApp/pages.json
index fbb2179..49d2dc4 100644
--- a/agentApp/pages.json
+++ b/agentApp/pages.json
@@ -14,7 +14,19 @@
},
{
- "path" : "pages/login/index",
+ "path" : "pages/user-login/index",
+ "style" :
+ {
+ "navigationBarTitleText": "用户登录",
+ "navigationBarBackgroundColor": "#1783FF",
+ "navigationBarTextStyle": "white"
+ // "enablePullDownRefresh": false
+
+ }
+
+ },
+ {
+ "path" : "pages/agent-login/index",
"style" :
{
"navigationBarTitleText": "代理登录",
diff --git a/agentApp/pages/login/index.vue b/agentApp/pages/agent-login/index.vue
similarity index 100%
rename from agentApp/pages/login/index.vue
rename to agentApp/pages/agent-login/index.vue
diff --git a/agentApp/pages/allpages/index.vue b/agentApp/pages/allpages/index.vue
index 9ea2553..e0276c4 100644
--- a/agentApp/pages/allpages/index.vue
+++ b/agentApp/pages/allpages/index.vue
@@ -32,7 +32,7 @@
switch(num) {
case 1:
uni.navigateTo({
- url: '/pages/login/index'
+ url: '/pages/agent-login/index'
});
break;
case 2:
diff --git a/agentApp/pages/payment/payment.vue b/agentApp/pages/payment/payment.vue
index abc4cc5..0fa2e81 100644
--- a/agentApp/pages/payment/payment.vue
+++ b/agentApp/pages/payment/payment.vue
@@ -4,14 +4,16 @@
-
+
+
- 付款给李姐烧烤(普罗旺斯店)
+ {{merchant.name}}
- 广西南宁市江南区波尔多庄园2-109号商铺
+ {{merchant.address}}
@@ -29,7 +31,8 @@
¥
-
+
-
-
+
+
+
\ No newline at end of file
diff --git a/agentApp/pages/user-login/index.vue b/agentApp/pages/user-login/index.vue
new file mode 100644
index 0000000..73de309
--- /dev/null
+++ b/agentApp/pages/user-login/index.vue
@@ -0,0 +1,34 @@
+
+
+ 登录中...
+
+
+
+
+
diff --git a/agentApp/pages/user-orders/user-orders.vue b/agentApp/pages/user-orders/user-orders.vue
index f2877a5..0d25823 100644
--- a/agentApp/pages/user-orders/user-orders.vue
+++ b/agentApp/pages/user-orders/user-orders.vue
@@ -1,352 +1,394 @@
-
-
-
-
-
-
-
-
-
- ¥
- 458.00
-
- 可提现
-
-
-
- 待入账:¥200.00
-
-
-
-
-
- 用户ID:
+
+
+
+
+
+
+
+
+
+ ¥
+ {{accountInfo.wallet_balance}}
+
+ 可提现
+
+
-
- 54568gh
+ 待入账:¥{{accountInfo.waiting_amount}}
+
+
+
+
+
+ 用户ID:
+
+
+ {{accountInfo.id}}
+
+
+
+
+
+
+
+
+ 最近排队信息
+
+
+
+ 暂无排队
+
+
+ {{item.merchant.name}}:
+ 购买时排队{{item.buy_queue_index}},当前{{item.now_queue_index}}
+
+
+
+
+ 查看更多
+
+
+
+
+
+
+
+ 暂无订单
+
+
+ 订单编号 {{order.out_trade_no}}
+
+
+
+
+
+ {{order.merchant.name}}
+ 金额:¥{{order.amount}}
+ 订单时间:{{order.paid_at}}
+
+
+
-
-
-
-
-
- 最近排队信息
-
-
-
- 李姐烧烤(普罗旺斯店):
- 购买时排队10,当前2
-
-
- 李姐烧烤(青秀万达店):
- 购买时排队200,当前48
-
-
-
- 查看更多
-
-
-
-
-
-
-
- 订单编号 22398983498
-
-
-
-
-
- 李姐烧烤(普罗旺斯店)
- 金额:¥450.00
- 订单时间:2023-10-24 20:39:56
-
-
-
-
- 订单编号 22398983498
-
-
-
-
-
- 李姐烧烤(普罗旺斯店)
- 金额:¥450.00
- 订单时间:2023-10-24 20:39:56
-
-
-
-
- 订单编号 22398983498
-
-
-
-
-
- 李姐烧烤(普罗旺斯店)
- 金额:¥450.00
- 订单时间:2023-10-24 20:39:56
-
-
-
-
-
-
+ .uni-page-body {
+ background: #f7f7f7;
+ }
+
+ .page-bg {
+ height: 525rpx;
+ background: url("https://common-1257637852.cos.ap-guangzhou.myqcloud.com/paidui-pay/withdrawal-bg.png") no-repeat center center;
+ background-size: cover;
+ padding: 0 30rpx;
+ }
+
+ .withdrawal-management {
+ position: absolute;
+ top: 0;
+ right: 0;
+ }
+
+ button.withdrawal-button {
+ width: 160rpx;
+ height: 60rpx;
+ line-height: 60rpx;
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #fff;
+ background: #FCC565;
+ margin: 0;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ border-bottom-left-radius: 30rpx;
+ }
+
+ button::after {
+ border: none;
+ }
+
+ .withdrawal-limit {
+ display: flex;
+ justify-content: center;
+ align-items: baseline;
+ padding-top: 30rpx;
+ text-align: center;
+ }
+
+ .limit-symbol {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 30rpx;
+ color: #fff;
+ }
+
+ .withdrawal-volume {
+ font-family: "Din";
+ font-size: 60rpx;
+ color: #fff;
+ font-weight: bold;
+ margin-left: 10rpx;
+ }
+
+ .Withdrawable-text {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 30rpx;
+ color: #fff;
+ text-align: center;
+ margin-top: 10rpx;
+ }
+
+ .withdrawal-content {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 15rpx 0;
+ }
+
+ image.withdrawal-line {
+ text-align: center;
+ width: 200rpx;
+ height: 1rpx;
+ background-size: cover;
+ }
+
+ .to-be-credited {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 30rpx;
+ color: #fff;
+ text-align: center;
+ }
+
+ .divider-style {
+ width: 690rpx;
+ height: 1rpx;
+ background: #F8A0A6;
+ margin: 20rpx 0;
+ }
+
+ .information-id-content {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .content-id-item {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .id-text {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #fff;
+ }
+
+ .id-value {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #fff;
+ }
+
+
+
+ .queuing-information-content {
+ background: #fff;
+ border-radius: 20rpx;
+ padding: 30rpx 0;
+ margin-top: 30rpx;
+ }
+
+ .recent-orders-title {
+ display: flex;
+ justify-content: left;
+ align-items: center;
+ padding: 0 30rpx;
+ border-bottom: 1rpx solid #eeeeee;
+ padding-bottom: 30rpx;
+ }
+
+ image.title-stlye {
+ width: 15rpx;
+ height: 19rpx;
+ background-size: cover;
+ margin-right: 20rpx;
+ }
+
+ .title-text {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 30rpx;
+ color: #454545;
+ font-weight: bold;
+ }
+
+ .information-item {
+ padding: 0 30rpx;
+ }
+
+ .item-content {
+ display: flex;
+ justify-content: left;
+ align-items: center;
+ margin-top: 30rpx;
+ }
+
+ .item-content-titie {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #454545;
+ font-weight: bold;
+ }
+
+ .item-content-text {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #666;
+ }
+
+ span.style-text {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #F52F3E;
+ font-weight: bold;
+ padding: 0 15rpx;
+ }
+
+ .see-more-content {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin-top: 30rpx;
+ }
+
+ .see-more-text {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #F52F3E;
+ }
+
+ .see-more-icon {
+ width: 0;
+ height: 0;
+ border-left: 14rpx solid #FDD5D8;
+ border-top: 14rpx solid transparent;
+ border-bottom: 14rpx solid transparent;
+ margin-left: 10rpx;
+ border-radius: 10rpx;
+ }
+
+ .ordering-information {
+ padding: 30rpx;
+ background: #fff;
+ margin-top: 20rpx;
+ border-radius: 20rpx;
+ padding-top: 0;
+ }
+
+ .order-number {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 26rpx;
+ color: #454545;
+ padding: 30rpx 0;
+ }
+
+ .ordering-pic {
+ width: 120rpx;
+ height: 120rpx;
+ background-size: cover;
+ border-radius: 15rpx;
+ }
+
+ image.order-chart {
+ width: 120rpx;
+ height: 120rpx;
+ background-size: cover;
+ border-radius: 15rpx;
+ }
+
+ .ordering-text {
+ margin-left: 30rpx;
+ }
+
+ .ordering-text-title {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 30rpx;
+ color: #454545;
+ }
+
+ .amount-of-money {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #999;
+ padding: 10rpx 0;
+ }
+
+ span.price-style {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #F52F3E;
+ }
+
+ .order-time {
+ font-family: PingFangSC-Regular, sans-serif;
+ font-size: 24rpx;
+ color: #999;
+ }
+
+ .ordering-item-content {
+ display: flex;
+ justify-content: left;
+ align-items: center;
+ border-bottom: 1rpx solid #eee;
+ padding-bottom: 30rpx;
+ }
+
\ No newline at end of file
diff --git a/agentApp/pages/withdrawal-management/withdrawal-management.vue b/agentApp/pages/withdrawal-management/withdrawal-management.vue
index bfc9e43..a90bdc9 100644
--- a/agentApp/pages/withdrawal-management/withdrawal-management.vue
+++ b/agentApp/pages/withdrawal-management/withdrawal-management.vue
@@ -10,7 +10,7 @@
¥
- 458.00
+ {{accountInfo.wallet_balance}}
@@ -20,20 +20,20 @@
- 总提现:¥500.00
+ 总提现:¥{{accountInfo.withdraw_total}}
- 待入账:1000元
+ 待入账:{{accountInfo.waiting_amount}}元
- 提现中:458元
+ 提现中:{{accountInfo.withdrawing_amount}}元
@@ -44,179 +44,360 @@
支付宝账户
-
-
+
+
去开通
+
+
+
+
+
+ 支付宝账号
+
+
+
+
+
+
+
+ 支付宝姓名
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
+ 提现账户
+
+
+
+ {{accountInfo.alipay_account}}
+
+
+ 修改
+
+
+
+
+
+ 可提现金额
+
+
+
+ ¥{{accountInfo.wallet_balance}}
+
+
+
+
+
+
+ 提现
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/agentApp/template.h5.html b/agentApp/template.h5.html
index dc9fd86..6146635 100644
--- a/agentApp/template.h5.html
+++ b/agentApp/template.h5.html
@@ -7,17 +7,19 @@
<%= htmlWebpackPlugin.options.title %>
+ <% if (process.env.NODE_ENV == 'production') { %>
-
+
-
-
+
+
+ <% } %>