From 936b3d488ab47c50e4416d7117b6326884fe1974 Mon Sep 17 00:00:00 2001 From: xiaogang <825201136@qq.com> Date: Mon, 17 Jun 2024 18:47:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B4=E4=B8=9A=E4=BC=98=E9=85=B7=E7=9A=84?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E9=A1=B5=E9=9D=A2=E5=BC=80=E5=8F=91=E5=AE=8C?= =?UTF-8?q?=E6=AF=95=EF=BC=8C=E5=BE=85=E7=A1=AE=E5=AE=9A=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=9A=84=E9=93=BE=E6=8E=A5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/xyyk.js | 31 +++ demo.js | 27 ++ env.dev.js | 4 + env.js | 7 + env.prod.js | 4 + package.json | 52 ++-- pages.json | 19 +- pages/index/index.vue | 21 +- pages/xyyk/components/product-item.vue | 87 +++++++ pages/xyyk/components/ticket-item.vue | 80 ++++++ pages/xyyk/index.vue | 243 ++++++++++++++++++ pages/xyyk/tickets.vue | 66 +++++ static/xyyk/bg-banner.png | Bin 0 -> 26545 bytes static/xyyk/bg-popup.png | Bin 0 -> 32948 bytes static/xyyk/bg-product.png | Bin 0 -> 3549 bytes static/xyyk/bg-title.png | Bin 0 -> 13336 bytes static/xyyk/bg.png | Bin 0 -> 274948 bytes static/xyyk/icon-ticket.png | Bin 0 -> 2482 bytes unpackage/dist/build/web.zip | Bin 962779 -> 1127865 bytes .../{index-Br-FhQIZ.js => index-CMpkHqXW.js} | 4 +- .../dist/build/web/assets/index-CfAgyNET.css | 1 - .../dist/build/web/assets/index-CrO10ol2.css | 1 + ...KJAkX.js => pages-index-index.D7oNekXg.js} | 2 +- unpackage/dist/build/web/index.html | 2 +- .../dist/cache/.vite/deps/_metadata.json | 6 +- utils/request.js | 9 +- 26 files changed, 618 insertions(+), 48 deletions(-) create mode 100644 api/xyyk.js create mode 100644 demo.js create mode 100644 env.dev.js create mode 100644 env.js create mode 100644 env.prod.js create mode 100644 pages/xyyk/components/product-item.vue create mode 100644 pages/xyyk/components/ticket-item.vue create mode 100644 pages/xyyk/index.vue create mode 100644 pages/xyyk/tickets.vue create mode 100644 static/xyyk/bg-banner.png create mode 100644 static/xyyk/bg-popup.png create mode 100644 static/xyyk/bg-product.png create mode 100644 static/xyyk/bg-title.png create mode 100644 static/xyyk/bg.png create mode 100644 static/xyyk/icon-ticket.png rename unpackage/dist/build/web/assets/{index-Br-FhQIZ.js => index-CMpkHqXW.js} (99%) delete mode 100644 unpackage/dist/build/web/assets/index-CfAgyNET.css create mode 100644 unpackage/dist/build/web/assets/index-CrO10ol2.css rename unpackage/dist/build/web/assets/{pages-index-index.CUkKJAkX.js => pages-index-index.D7oNekXg.js} (74%) diff --git a/api/xyyk.js b/api/xyyk.js new file mode 100644 index 0000000..7d4ea0e --- /dev/null +++ b/api/xyyk.js @@ -0,0 +1,31 @@ +import request from "../utils/request"; + +export const login = (params) => request({ + url:'/v1/xy/login', + method:'POST', + ...params +}) + +export const getProduceList = (params) => request({ + url:'/v1/auth/activity', + method:'POST', + ...params +}) + +export const goBuy = (params) => request({ + url:'/v1/auth/order/buy', + method:'POST', + ...params +}) + +export const getTicketList = (params) => request({ + url:'/v1/auth/order/list', + method:'POST', + ...params +}) + +export const queryOrder = (params) => request({ + url:'/v1/auth/order/query', + ...params +}) + diff --git a/demo.js b/demo.js new file mode 100644 index 0000000..dd35485 --- /dev/null +++ b/demo.js @@ -0,0 +1,27 @@ + "uni-app": { + "scripts": { + "h5dev": { + "title":"H5测试开发环境", + "browser":"chrome", + "env": { + "UNI_PLATFORM": "h5", + // "REQUEST_BASE_URL": "http://zxjt.test.86698.cn" + "REQUEST_BASE_URL": "http://zxjt.test.86698.cn" + }, + "define": { + + } + }, + "h5prod": { + "title":"H5正式生产环境", + "browser":"chrome", + "env": { + "UNI_PLATFORM": "h5", + "REQUEST_BASE_URL": "https://zxjt.86698.cn" + }, + "define": { + + } + } + } + } \ No newline at end of file diff --git a/env.dev.js b/env.dev.js new file mode 100644 index 0000000..8a68d11 --- /dev/null +++ b/env.dev.js @@ -0,0 +1,4 @@ +export default { + env: 'development', + request_baseurl: 'http://development', +}; \ No newline at end of file diff --git a/env.js b/env.js new file mode 100644 index 0000000..36ebf2a --- /dev/null +++ b/env.js @@ -0,0 +1,7 @@ +import dev from './env.dev'; +import prod from './env.prod'; + +export default { + dev, + prod +} \ No newline at end of file diff --git a/env.prod.js b/env.prod.js new file mode 100644 index 0000000..55d3c20 --- /dev/null +++ b/env.prod.js @@ -0,0 +1,4 @@ +export default { + env: 'production', + request_baseurl: 'http://production', +}; \ No newline at end of file diff --git a/package.json b/package.json index a8b8b82..28eb252 100644 --- a/package.json +++ b/package.json @@ -6,32 +6,32 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "uni-app": { - "scripts": { - "h5dev": { - "title":"H5测试开发环境", - "browser":"chrome", - "env": { - "UNI_PLATFORM": "h5", - "REQUEST_BASE_URL": "http://zxjt.test.86698.cn" - }, - "define": { - - } - }, - "h5prod": { - "title":"H5正式生产环境", - "browser":"chrome", - "env": { - "UNI_PLATFORM": "h5", - "REQUEST_BASE_URL": "https://zxjt.86698.cn" - }, - "define": { - - } - } - } - }, + "uni-app": { + "scripts": { + "h5dev": { + "title":"H5测试开发环境", + "browser":"chrome", + "env": { + "UNI_PLATFORM": "h5", + "REQUEST_BASE_URL": "http://192.168.110.39:8083" + }, + "define": { + + } + }, + "h5prod": { + "title":"H5正式生产环境", + "browser":"chrome", + "env": { + "UNI_PLATFORM": "h5", + "REQUEST_BASE_URL": "https://zxjt.86698.cn" + }, + "define": { + + } + } + } + }, "keywords": [], "author": "", "license": "ISC" diff --git a/pages.json b/pages.json index f00cb09..380f61e 100644 --- a/pages.json +++ b/pages.json @@ -1,11 +1,24 @@ { - "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + "pages": [ + // { + // "path": "pages/index/index", + // "style": { + // "navigationBarTitleText": "现金红包明细" + // } + // }, { - "path": "pages/index/index", + "path": "pages/xyyk/index", "style": { - "navigationBarTitleText": "现金红包明细" + "navigationBarTitleText": "兴业优酷" + } + }, + { + "path": "pages/xyyk/tickets", + "style": { + "navigationBarTitleText": "我的券包" } } + ], "globalStyle": { "navigationStyle": "custom", diff --git a/pages/index/index.vue b/pages/index/index.vue index 4828634..61fd37e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,4 +1,4 @@ -d