c7d81d9a by simon

版本提交

1 parent da367509
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
......

338 KB | W: | H:

87 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

21 KB | W: | H:

5.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

17.7 KB | W: | H:

6.9 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

28.2 KB | W: | H:

6.29 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

15.7 KB | W: | H:

7.59 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

22.9 KB | W: | H:

6.72 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

20.2 KB | W: | H:

5.39 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

17.5 KB | W: | H:

5.03 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

16.4 KB | W: | H:

4.91 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

29.6 KB | W: | H:

5.81 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

18.2 KB | W: | H:

5.2 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

19.9 KB | W: | H:

6.39 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
...@@ -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,
......