diff --git a/api/dealer/capital.js b/api/dealer/capital.js
new file mode 100644
index 0000000..6694481
--- /dev/null
+++ b/api/dealer/capital.js
@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+// api地址
+const api = {
+ list: 'dealer.capital/list',
+ submit: 'dealer.capital/submit'
+}
+
+// 分销商提现明细
+export const list = (param) => {
+ return request.get(api.list, param)
+}
+
+// 提交提现申请
+export const submit = (data) => {
+ return request.post(api.submit, data)
+}
diff --git a/pages.json b/pages.json
index 2b59628..9d78845 100644
--- a/pages.json
+++ b/pages.json
@@ -282,6 +282,12 @@
"navigationBarTitleText": ""
}
},
+ {
+ "path": "pages/dealer/commission",
+ "style": {
+ "navigationBarTitleText": "分销佣金"
+ }
+ },
{
"path": "pages/dealer/withdraw/apply",
"style": {
diff --git a/pages/.DS_Store b/pages/.DS_Store
index 85d9a35..836e94b 100644
Binary files a/pages/.DS_Store and b/pages/.DS_Store differ
diff --git a/pages/dealer/commission.vue b/pages/dealer/commission.vue
new file mode 100644
index 0000000..33d00eb
--- /dev/null
+++ b/pages/dealer/commission.vue
@@ -0,0 +1,246 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.describe}} {{ item.money }}元
+ {{ item.create_time }}
+
+
+
+ {{ ApplyStatusText[item.apply_status] }}
+
+
+ 驳回原因
+
+
+
+
+
+
+
+
+
+
+ {{ rejectReason }}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/news3/JoinDistribution.vue b/pages/news3/JoinDistribution.vue
index d4dd0c0..fcab2c0 100644
--- a/pages/news3/JoinDistribution.vue
+++ b/pages/news3/JoinDistribution.vue
@@ -1,8 +1,8 @@
-
+
-
+
加入分销
@@ -11,7 +11,10 @@
-
+
+
+
+
Deioio
@@ -21,7 +24,7 @@
加入时间2024.01.21
-
+
提现
@@ -32,35 +35,35 @@
- 0.00
+ {{ dealer.money }}
已提现佣金
- 0
+ {{ dealer.freeze_money }}
未结算佣金
-
+
分销佣金
-
+
分销订单
-
+
提现明细
-
+
我的团队
-
+
推广二维码
@@ -73,17 +76,48 @@
export default {
data() {
return {
-
+ // 正在加载
+ isLoading: true,
+ // 当前用户信息
+ user: {},
+ // 当前是否为分销商
+ isDealer: false,
+ // 当前分销商信息
+ dealer: {},
+ // 推荐人昵称
+ refereeName: undefined,
+ // 分销设置
+ setting: {
+ background: undefined,
+ words: undefined
+ }
};
},
methods:{
- /**
- * 售后点击
- */
- onApplyAftersales(){
- uni.navigateTo({
- url: '/pages/AfterSaleType/AfterSaleType',
- })
+ // 获取分销商中心数据
+ getCenter() {
+ const app = this
+ app.isLoading = true
+ Api.center()
+ .then(result => {
+ // api数据赋值
+ const data = result.data
+ app.isDealer = data.isDealer
+ app.user = data.user
+ app.dealer = data.dealer
+ app.refereeName = data.refereeName
+ app.setting = data.setting
+ // 设置当前页面标题
+ app.setPageTitle()
+ app.isLoading = false
+ })
+ },
+
+ // 设置当前页面标题
+ setPageTitle() {
+ uni.setNavigationBarTitle({
+ title: this.setting.words.index.title.value
+ })
}
}
}
@@ -121,7 +155,7 @@ page{
.userInfo{
position: relative;
z-index:3;
- margin:0 30upx;
+ margin:180rpx 30upx 0;
image{
width:100%;
height:auto;