diff --git a/.env.development b/.env.development
index 4051359..30e5588 100644
--- a/.env.development
+++ b/.env.development
@@ -2,4 +2,7 @@
# VITE_BASE_URL = 'http://192.168.110.50:8083'
# 邮储奶茶活动
# VITE_BASE_URL = 'http://milk.api.test.86698.cn'
-VITE_BASE_URL = 'http://milk.test.api.cdlsxd.cn'
+# VITE_BASE_URL = 'http://milk.test.api.cdlsxd.cn'
+# 邮储音视频
+# VITE_BASE_URL = 'http://milk.api.test.86698.cn'
+VITE_BASE_URL = 'http://192.168.110.128:8081'
diff --git a/custom.page.js b/custom.page.js
index c0d301a..4737eca 100644
--- a/custom.page.js
+++ b/custom.page.js
@@ -4,7 +4,7 @@ import path from 'path'
const config = {
pages:'./src/pages',
- pagesInclude:['ycysp/pay.vue']
+ pagesInclude:['ycysp/home.vue','ycysp/pay.vue','ycysp/order.vue','ycysp/orderDetail.vue',]
}
const { pages, pagesInclude } = config
diff --git a/src/api/ycysp.js b/src/api/ycysp.js
new file mode 100644
index 0000000..8bf12c9
--- /dev/null
+++ b/src/api/ycysp.js
@@ -0,0 +1,28 @@
+import http from "../utils/http";
+
+
+export const login = (params) => http({
+ url:'/api/v1/login',
+ method:'POST',
+ noToken:true,
+ ...params
+})
+
+export const getBrandList = (params) => http({
+ url:'/api/v1/brand',
+ method:'GET',
+ ...params
+})
+
+export const getProductList = (params) => http({
+ url:'/api/v1/product',
+ method:'GET',
+ ...params
+})
+
+
+export const createOrder = (params) => http({
+ url:'/api/v1/order',
+ method:'POST',
+ ...params
+})
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index c7641be..a9efabd 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1,17 +1,53 @@
{
"pages": [
{
- "path": "pages/ycysp/coupon",
- "type": "page"
+ "path": "pages/ycysp/home",
+ "type": "home",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "音视频专区",
+ "navigationBarBackgroundColor": "#FFF"
+ }
+ },
+ {
+ "path": "pages/ycysp/order",
+ "type": "page",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "我的订单",
+ "navigationBarBackgroundColor": "#FFF"
+ }
+ },
+ {
+ "path": "pages/ycysp/orderDetail",
+ "type": "page",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "订单详情",
+ "navigationBarBackgroundColor": "#FFF"
+ }
},
{
"path": "pages/ycysp/pay",
+ "type": "page",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "支付确认",
+ "navigationBarBackgroundColor": "#FFF"
+ }
+ },
+ {
+ "path": "pages/ycysp/component/coupon-item",
"type": "page"
},
{
"path": "pages/ycysp/component/member",
"type": "page"
},
+ {
+ "path": "pages/ycysp/component/order-item",
+ "type": "page"
+ },
{
"path": "pages/ycysp/component/recharge-item",
"type": "page"
diff --git a/src/pages/ycysp/component/coupon-item.vue b/src/pages/ycysp/component/coupon-item.vue
new file mode 100644
index 0000000..c100985
--- /dev/null
+++ b/src/pages/ycysp/component/coupon-item.vue
@@ -0,0 +1,84 @@
+
+
+
+ ¥
+ 10
+
+
+
+ 芒果全屏会员年卡适用
+ 2024.09.19 -2024.10.31
+ 单日限领取1张
+
+ 立即领取
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/ycysp/component/member.vue b/src/pages/ycysp/component/member.vue
index 559f048..1e3de06 100644
--- a/src/pages/ycysp/component/member.vue
+++ b/src/pages/ycysp/component/member.vue
@@ -1,18 +1,56 @@
-
+
+
+
\ No newline at end of file
diff --git a/src/pages/ycysp/component/order-item.vue b/src/pages/ycysp/component/order-item.vue
new file mode 100644
index 0000000..02e20e5
--- /dev/null
+++ b/src/pages/ycysp/component/order-item.vue
@@ -0,0 +1,178 @@
+
+
+
+ 订单编号:{{ detail.order_no }}
+ {{ stateConfig[detail.state] }}
+
+
+
+
+
+
+ {{ detail.product_name }}
+ ¥{{ detail.price }}元
+
+
+ 数量
+ x1
+
+
+
+ 下单时间:{{ detail.create_time }}
+
+
+ 删除订单
+ 立即付款
+ 查看卡券
+ 申请退款
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/ycysp/component/recharge-item.vue b/src/pages/ycysp/component/recharge-item.vue
index 34137d2..e47a80b 100644
--- a/src/pages/ycysp/component/recharge-item.vue
+++ b/src/pages/ycysp/component/recharge-item.vue
@@ -1,16 +1,28 @@
-
- 黄金月卡
+
+ {{ detail.product_name }}
¥
- 18
+ {{ detail.sell_price }}
- 原价30
+ 原价{{ detail.price }}
\ No newline at end of file
diff --git a/src/pages/ycysp/orderDetail.vue b/src/pages/ycysp/orderDetail.vue
new file mode 100644
index 0000000..7782de0
--- /dev/null
+++ b/src/pages/ycysp/orderDetail.vue
@@ -0,0 +1,292 @@
+
+ {
+ style: {
+ navigationStyle: 'custom',
+ navigationBarTitleText: '订单详情',
+ navigationBarBackgroundColor:'#FFF',
+ },
+ }
+
+
+
+
+
+
+ 订单详情
+
+
+
+
+ {{ orderDetail.product_name }}
+ ¥{{ orderDetail.price }}元
+
+
+ 数量
+ x1
+
+
+
+
+
+ 订单编号:{{ orderDetail.order_no }}
+ 支付时间:{{
+ orderDetail.exchange_time }}
+ 下单时间:{{ orderDetail.create_time }}
+ 订单金额:{{ orderDetail.price }}
+
+
+
+ 查看卡券
+ 立即付款
+ 申请退款
+ 返回首页
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/ycysp/pay.vue b/src/pages/ycysp/pay.vue
index 9c5efd8..d8f0196 100644
--- a/src/pages/ycysp/pay.vue
+++ b/src/pages/ycysp/pay.vue
@@ -1,13 +1,28 @@
+
+ {
+ style: {
+ navigationStyle: 'custom',
+ navigationBarTitleText: '支付确认',
+ navigationBarBackgroundColor:'#FFF',
+ },
+ }
+
+
订单详情
-
+
+
+
- 优酷VIP视频月卡
- ¥15元
+ {{ _product.product_name }}
+ ¥{{ _product.price}}元
数量
@@ -15,17 +30,57 @@
+
- 充值账户:152****7226
+ 充值账户:{{ _account }}
充值类型:月卡
+ 优惠金额:{{ discount }}
+
+
+
+ 共 1 件,应付总额:¥{{ _product.price }}
+ 实际支付:¥{{ _product.sell_price }}
- 立即支付
+ 立即支付