版本提交
Showing
98 changed files
with
38 additions
and
15 deletions
... | @@ -11,17 +11,17 @@ module.exports = { | ... | @@ -11,17 +11,17 @@ module.exports = { |
11 | "enabledQcloud": false, //是否开启腾讯云COS 上传功能 | 11 | "enabledQcloud": false, //是否开启腾讯云COS 上传功能 |
12 | // 腾讯云COS 上传功能配置表 | 12 | // 腾讯云COS 上传功能配置表 |
13 | "qcloud": { | 13 | "qcloud": { |
14 | "appid": "wxc57ed87f2569f701", | 14 | "appid": "wx61c217d6f1553ccc", |
15 | "secretId": "xxx", | 15 | "secretId": "xxx", |
16 | "secretKey": "xxxxx", | 16 | "secretKey": "xxxxx", |
17 | "bucket": "xxxx", | 17 | "bucket": "xxxx", |
18 | "region": "sh", | 18 | "region": "sh", |
19 | "prefix": "what-ever/you-want", | 19 | "prefix": "/weapp/marubi/wish-list", |
20 | "overWrite": true, | 20 | "overWrite": true, |
21 | "headers": { | 21 | "headers": { |
22 | "Cache-Control": "max-age=5184000" | 22 | "Cache-Control": "max-age=5184000" |
23 | } | 23 | } |
24 | }, | 24 | }, |
25 | // 静态资源CDN 域名,配合CDN 功能实用,线上请确保在mp管理端已经注册域名 | 25 | // 静态资源CDN 域名,配合CDN 功能实用,线上请确保在mp管理端已经注册域名 |
26 | "assetsCDN": "https://res.jianhui.org/" | 26 | "assetsCDN": "https://kdcdn.oss-cn-shenzhen.aliyuncs.com" |
27 | }; | 27 | }; | ... | ... |
... | @@ -46,6 +46,7 @@ var paths = { | ... | @@ -46,6 +46,7 @@ var paths = { |
46 | imgFiles: 'src/image/**/*', | 46 | imgFiles: 'src/image/**/*', |
47 | scssFiles: 'src/**/*.scss', | 47 | scssFiles: 'src/**/*.scss', |
48 | baseFiles: ['src/**/*.{png,js,json,wxml,wxss,wxs,ts,woff2}', '!src/assets/**/*', '!src/image/**/*'], | 48 | baseFiles: ['src/**/*.{png,js,json,wxml,wxss,wxs,ts,woff2}', '!src/assets/**/*', '!src/image/**/*'], |
49 | targetFiles: ['src/**/*.{png,js,json}', '!src/assets/**/*', '!src/image/**/*'], //modify 观察时只复制部分,baseFiles是为了涵盖其他第三方引用,如ui | ||
49 | assetsDir: 'src/assets', | 50 | assetsDir: 'src/assets', |
50 | assetsImgFiles: 'src/assets/images/**/*.{png,jpg,jpeg,svg,gif}', | 51 | assetsImgFiles: 'src/assets/images/**/*.{png,jpg,jpeg,svg,gif}', |
51 | wxmlFiles: ['src/**/*.wxml'], | 52 | wxmlFiles: ['src/**/*.wxml'], |
... | @@ -130,7 +131,8 @@ function sassCompile() { | ... | @@ -130,7 +131,8 @@ function sassCompile() { |
130 | 'extname': '.wxss' | 131 | 'extname': '.wxss' |
131 | })) | 132 | })) |
132 | .pipe(replace('.scss', '.wxss')) | 133 | .pipe(replace('.scss', '.wxss')) |
133 | .pipe(replace('%ASSETS_IMG%/', res)) | 134 | // .pipe(replace('%ASSETS_IMG%/', res)) |
135 | .pipe(replace('../../image/oss/', res)) // 自定义图片地址 | ||
134 | .pipe(replace('src/assets/images', res)) // 雪碧图CSS RUL 中的图片路径 | 136 | .pipe(replace('src/assets/images', res)) // 雪碧图CSS RUL 中的图片路径 |
135 | .pipe(gulp.dest(paths.dist.baseDir)) | 137 | .pipe(gulp.dest(paths.dist.baseDir)) |
136 | } | 138 | } |
... | @@ -142,6 +144,12 @@ function copyBasicFiles() { | ... | @@ -142,6 +144,12 @@ function copyBasicFiles() { |
142 | .pipe(gulp.dest(paths.dist.baseDir)); | 144 | .pipe(gulp.dest(paths.dist.baseDir)); |
143 | } | 145 | } |
144 | 146 | ||
147 | // 复制基础文件 modify | ||
148 | function copyTargetFiles() { | ||
149 | return gulp.src(paths.src.targetFiles, {}) | ||
150 | .pipe(gulp.dest(paths.dist.baseDir)); | ||
151 | } | ||
152 | |||
145 | // 复制 WXML | 153 | // 复制 WXML |
146 | function copyWXML() { | 154 | function copyWXML() { |
147 | return gulp.src(paths.src.wxmlFiles, {}) | 155 | return gulp.src(paths.src.wxmlFiles, {}) |
... | @@ -154,7 +162,8 @@ function wxmlImgRewrite() { | ... | @@ -154,7 +162,8 @@ function wxmlImgRewrite() { |
154 | var res = config.assetsCDN + config.qcloud.prefix + '/'; | 162 | var res = config.assetsCDN + config.qcloud.prefix + '/'; |
155 | // console.log(res); | 163 | // console.log(res); |
156 | return gulp.src(paths.src.wxmlFiles) | 164 | return gulp.src(paths.src.wxmlFiles) |
157 | .pipe(replace('%ASSETS_IMG%/', res)) | 165 | // .pipe(replace('%ASSETS_IMG%/', res)) |
166 | .pipe(replace('../../image/oss/', res)) | ||
158 | .pipe(gulp.dest(paths.dist.baseDir)) | 167 | .pipe(gulp.dest(paths.dist.baseDir)) |
159 | } | 168 | } |
160 | 169 | ||
... | @@ -233,7 +242,8 @@ var watchHandler = function (type, file) { | ... | @@ -233,7 +242,8 @@ var watchHandler = function (type, file) { |
233 | var tmp = file.replace('src/', 'dist/'); | 242 | var tmp = file.replace('src/', 'dist/'); |
234 | del([tmp]); | 243 | del([tmp]); |
235 | } else { | 244 | } else { |
236 | copyBasicFiles(); | 245 | copyTargetFiles(); // modify |
246 | // copyBasicFiles(); | ||
237 | // copyWXML(); | 247 | // copyWXML(); |
238 | // wxmlImgRewrite(); | 248 | // wxmlImgRewrite(); |
239 | } | 249 | } | ... | ... |
1 | { | 1 | { |
2 | "pages": [ | 2 | "pages": [ |
3 | "pages/index/index", | ||
3 | "pages/prize-detail/prize-detail", | 4 | "pages/prize-detail/prize-detail", |
4 | "pages/user-table/user-table", | 5 | "pages/user-table/user-table", |
5 | "pages/index/index", | ||
6 | "pages/authorize/authorize", | 6 | "pages/authorize/authorize", |
7 | "pages/coop/coop", | 7 | "pages/coop/coop", |
8 | "pages/register/register", | 8 | "pages/register/register", | ... | ... |
... | @@ -116,3 +116,15 @@ | ... | @@ -116,3 +116,15 @@ |
116 | .van-popup { | 116 | .van-popup { |
117 | background-color: transparent !important; | 117 | background-color: transparent !important; |
118 | } | 118 | } |
119 | |||
120 | |||
121 | button { | ||
122 | border: none; | ||
123 | margin: 0; | ||
124 | padding: 0; | ||
125 | } | ||
126 | |||
127 | button::after { | ||
128 | border: none; | ||
129 | } | ||
130 | ... | ... |
src/image/draw/draw-c1.png
100644 → 100755
src/image/draw/draw-c2.png
100644 → 100755
src/image/oss/coop/coop-bg-1.png
deleted
100644 → 0
104 KB
src/image/oss/coop/coop-bg-2.png
deleted
100644 → 0
321 KB
src/image/oss/coop/coop-bg.png
deleted
100644 → 0
8.92 KB
src/image/oss/coop/coop-c2.png
deleted
100644 → 0
106 KB
src/image/oss/coop/coop-c3.png
deleted
100644 → 0
22.7 KB
src/image/oss/coop/coop-d1.png
deleted
100644 → 0
40.3 KB
src/image/oss/coop/coop-light.png
deleted
100644 → 0
381 Bytes
src/image/oss/coop/progress_rect.png
deleted
100644 → 0
168 Bytes
3.8 KB
4.44 KB
2.99 KB
18.4 KB
src/image/oss/coupon/coupon-1.png
deleted
100644 → 0
69.4 KB
src/image/oss/coupon/coupon-2.png
deleted
100644 → 0
67.4 KB
174 KB
27.1 KB
574 Bytes
716 Bytes
320 Bytes
978 Bytes
710 Bytes
710 Bytes
710 Bytes
726 Bytes
src/image/oss/icon/icon-check.png
deleted
100644 → 0
431 Bytes
src/image/oss/icon/icon-close.png
deleted
100644 → 0
382 Bytes
196 Bytes
src/image/oss/icon/icon-loc.png
deleted
100644 → 0
791 Bytes
src/image/oss/index/index-c1.png
deleted
100644 → 0
264 KB
src/image/oss/index/index-c2.png
deleted
100644 → 0
804 KB
src/image/oss/index/index-c3.png
deleted
100644 → 0
30.6 KB
src/image/oss/index/index-c4.png
deleted
100644 → 0
32.1 KB
src/image/oss/my-card/my-card-d1.png
deleted
100644 → 0
33.1 KB
src/image/oss/my-card/my-card-d2.png
deleted
100644 → 0
26.5 KB
src/image/oss/my-wish/my-wish-c1.png
deleted
100644 → 0
717 KB
src/image/oss/my-wish/my-wish-c2.png
deleted
100644 → 0
3.62 KB
src/image/oss/my-wish/my-wish-c3.png
deleted
100644 → 0
3.14 KB
src/image/oss/my-wish/my-wish-c4.png
deleted
100644 → 0
176 Bytes
src/image/oss/my-wish/my-wish-d1.png
deleted
100644 → 0
85.3 KB
src/image/oss/poster/poster-bg.png
deleted
100644 → 0
1.24 MB
18.2 KB
34.4 KB
19.3 KB
520 Bytes
40.8 KB
src/image/oss/rank/rank-c1.png
deleted
100644 → 0
133 KB
src/image/oss/rank/rank-d1.png
deleted
100644 → 0
33 KB
src/image/oss/rank/rank-d2.png
deleted
100644 → 0
28 KB
src/image/oss/register/check-c1.png
deleted
100644 → 0
277 Bytes
833 Bytes
src/image/oss/register/check.png
deleted
100644 → 0
446 Bytes
src/image/oss/register/logo.png
deleted
100644 → 0
14.9 KB
src/image/oss/register/plz-block.png
deleted
100644 → 0
1.98 KB
src/image/oss/register/plz-cont.png
deleted
100644 → 0
153 KB
442 Bytes
312 Bytes
962 Bytes
479 Bytes
2.52 KB
src/image/oss/rule/rule-c1.png
deleted
100644 → 0
111 KB
39.9 KB
39 KB
39.9 KB
57.3 KB
58.9 KB
src/image/oss/tips/tips-login.png
deleted
100644 → 0
66.6 KB
src/image/oss/tips/tips-new.png
deleted
100644 → 0
67.8 KB
src/image/oss/tips/tips-prize.png
deleted
100644 → 0
39.9 KB
54.1 KB
src/image/oss/tips/tips-rule.png
deleted
100644 → 0
111 KB
src/image/oss/tips/tips-shake.png
deleted
100644 → 0
88.7 KB
40.9 KB
src/image/oss/tips/tips-wish.png
deleted
100644 → 0
57.1 KB
10.7 KB
59.2 KB
141 KB
22.1 KB
src/image/tabbar/home.png
deleted
100755 → 0
2.19 KB
src/image/tabbar/home_D.png
deleted
100755 → 0
3.02 KB
src/image/tabbar/set.png
deleted
100755 → 0
3.97 KB
src/image/tabbar/set_D.png
deleted
100755 → 0
7.4 KB
... | @@ -166,14 +166,15 @@ Page({ | ... | @@ -166,14 +166,15 @@ Page({ |
166 | y: 0, | 166 | y: 0, |
167 | url: '../../image/draw/draw-c1.png', | 167 | url: '../../image/draw/draw-c1.png', |
168 | }, | 168 | }, |
169 | // // 头像 | 169 | // 头像 |
170 | // { | 170 | { |
171 | // width: 102, | 171 | width: 102, |
172 | // height: 102, | 172 | height: 102, |
173 | // x: 35, | 173 | x: 35, |
174 | // y: 700, | 174 | y: 779, |
175 | // url: userInfo.avatar, | 175 | borderRadius: 102, |
176 | // }, | 176 | url: userInfo.avatar, |
177 | }, | ||
177 | // 小程序码 | 178 | // 小程序码 |
178 | { | 179 | { |
179 | width: 118, | 180 | width: 118, | ... | ... |
-
Please register or sign in to post a comment