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 @@ + + + + \ 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 @@ + + + + + \ 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 @@ \ 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', + }, + } + + + + + + + \ 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', + }, + } + +