diff --git a/packages/agent/agent.vue b/packages/agent/agent.vue
index c90978a..e9ba699 100644
--- a/packages/agent/agent.vue
+++ b/packages/agent/agent.vue
@@ -7,13 +7,13 @@
/>
- 783489248292
- 有效期:2022-05-17至2022-05-31
+ {{userData.agent_code}}
+ 有效期:{{unixTimeFormat(userData.start_time)}} 至 {{unixTimeFormat(userData.end_time)}}
注:重新生成后没使用的优惠码将失效
复制分销优惠码
- 重新生成优惠码
+ 重新生成优惠码
@@ -22,17 +22,31 @@
diff --git a/pages/write/baseInfo.vue b/pages/write/baseInfo.vue
index 0abc8ce..90f55d5 100644
--- a/pages/write/baseInfo.vue
+++ b/pages/write/baseInfo.vue
@@ -110,7 +110,7 @@
优惠券:
-
+
diff --git a/service/index.js b/service/index.js
index a05fda3..3703bae 100644
--- a/service/index.js
+++ b/service/index.js
@@ -6,4 +6,20 @@ export async function my() {
url: '/api/v1/my',
method: 'post',
})
+}
+
+// 获取优惠码
+export async function couponSearch() {
+ return await request({
+ url: '/api/v1/coupon_search',
+ method: 'post',
+ })
+}
+
+// 更新优惠码
+export async function couponUpdate() {
+ return await request({
+ url: '/api/v1/coupon_update',
+ method: 'post',
+ })
}
\ No newline at end of file