From 360655a0822f301424b1f0aaae07de2b877610f5 Mon Sep 17 00:00:00 2001 From: xiaogang <825201136@qq.com> Date: Mon, 16 Dec 2024 10:20:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E5=82=A8=E9=9F=B3=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 8 +++-- .env.production | 1 - README.md | 1 + custom.page.js | 4 ++- index.html | 15 ++++---- src/App.vue | 6 ++-- src/pages/ycnc/order.vue | 16 +++++++-- src/pages/ycnc/orderDetail.vue | 12 ++++++- src/pages/ycysp/config.js | 29 +++++++++++++++ src/pages/ycysp/order.vue | 6 ++-- src/pages/ycysp/orderDetail.vue | 8 +++-- src/pages/ycysp/pay.vue | 7 ++-- vite.plugin.js | 62 ++++++++++++++++++--------------- 13 files changed, 120 insertions(+), 55 deletions(-) diff --git a/.env b/.env index 07cad84..f07324f 100644 --- a/.env +++ b/.env @@ -1,3 +1,7 @@ # 邮储奶茶活动 -VITE_YCNC_APPID = '2vikrqptiia9pe9bf5ztrd' -VITE_YCNC_SECRET = '6fpfwdkgcggyk0yf2yb6bt' \ No newline at end of file +# VITE_YCNC_APPID = '2vikrqptiia9pe9bf5ztrd' +# VITE_YCNC_SECRET = '6fpfwdkgcggyk0yf2yb6bt' + +# 邮储音视频 +VITE_YCNC_APPID = '2vi3695tiia9pe9bf5yyyi' +VITE_YCNC_SECRET = '6fpf26837kmgr0yf2yf643' \ No newline at end of file diff --git a/.env.production b/.env.production index 873e03e..59cfd18 100644 --- a/.env.production +++ b/.env.production @@ -4,7 +4,6 @@ # 邮储奶茶活动(测试环境) # VITE_BASE_URL = 'http://milk.test.api.cdlsxd.cn' # VITE_YCNC_MERCH_CODE = '100310100018908' -# VITE_YCNC_MERCH_CODE = '100610100019042' # 邮储奶茶活动(正式环境) # VITE_BASE_URL = 'https://milk.api.cdlsxd.cn' # VITE_YCNC_MERCH_CODE = '100510102303326' diff --git a/README.md b/README.md index 4bf3205..8721583 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,5 @@ vite打包配置文件,主要是一些插件 ### 各个模块的说明 ycnc 邮储奶茶活动 xyyk 兴业半价优酷的活动 +ycysp 邮储音视频活动------>测试环境下,vite.config.js配置base,http配置请求content-type diff --git a/custom.page.js b/custom.page.js index 4737eca..3e4e797 100644 --- a/custom.page.js +++ b/custom.page.js @@ -5,6 +5,7 @@ import path from 'path' const config = { pages:'./src/pages', pagesInclude:['ycysp/home.vue','ycysp/pay.vue','ycysp/order.vue','ycysp/orderDetail.vue',] + // pagesInclude:['ycnc',] } const { pages, pagesInclude } = config @@ -37,7 +38,8 @@ const getPages = () => { const targetExclude = targetPages.filter(elem => !targetModule[ele].includes(elem)).map(current => `${ele}/${current}`) excludePages.push(...targetExclude) }) - console.log('排除的模块以及页面',[...excludeModule,...excludePages]); + console.log('打包的模块以及页面',[...config.pagesInclude]); + console.error('排除的模块以及页面',[...excludeModule,...excludePages]); return { exclude:[...excludeModule,...excludePages], } diff --git a/index.html b/index.html index fe0aa83..bac152f 100644 --- a/index.html +++ b/index.html @@ -16,16 +16,17 @@
+ - - +