c7d81d9a by simon

版本提交

1 parent da367509
Showing 98 changed files with 38 additions and 15 deletions
......@@ -11,17 +11,17 @@ module.exports = {
"enabledQcloud": false, //是否开启腾讯云COS 上传功能
// 腾讯云COS 上传功能配置表
"qcloud": {
"appid": "wxc57ed87f2569f701",
"appid": "wx61c217d6f1553ccc",
"secretId": "xxx",
"secretKey": "xxxxx",
"bucket": "xxxx",
"region": "sh",
"prefix": "what-ever/you-want",
"prefix": "/weapp/marubi/wish-list",
"overWrite": true,
"headers": {
"Cache-Control": "max-age=5184000"
}
},
// 静态资源CDN 域名,配合CDN 功能实用,线上请确保在mp管理端已经注册域名
"assetsCDN": "https://res.jianhui.org/"
"assetsCDN": "https://kdcdn.oss-cn-shenzhen.aliyuncs.com"
};
......
......@@ -46,6 +46,7 @@ var paths = {
imgFiles: 'src/image/**/*',
scssFiles: 'src/**/*.scss',
baseFiles: ['src/**/*.{png,js,json,wxml,wxss,wxs,ts,woff2}', '!src/assets/**/*', '!src/image/**/*'],
targetFiles: ['src/**/*.{png,js,json}', '!src/assets/**/*', '!src/image/**/*'], //modify 观察时只复制部分,baseFiles是为了涵盖其他第三方引用,如ui
assetsDir: 'src/assets',
assetsImgFiles: 'src/assets/images/**/*.{png,jpg,jpeg,svg,gif}',
wxmlFiles: ['src/**/*.wxml'],
......@@ -130,7 +131,8 @@ function sassCompile() {
'extname': '.wxss'
}))
.pipe(replace('.scss', '.wxss'))
.pipe(replace('%ASSETS_IMG%/', res))
// .pipe(replace('%ASSETS_IMG%/', res))
.pipe(replace('../../image/oss/', res)) // 自定义图片地址
.pipe(replace('src/assets/images', res)) // 雪碧图CSS RUL 中的图片路径
.pipe(gulp.dest(paths.dist.baseDir))
}
......@@ -142,6 +144,12 @@ function copyBasicFiles() {
.pipe(gulp.dest(paths.dist.baseDir));
}
// 复制基础文件 modify
function copyTargetFiles() {
return gulp.src(paths.src.targetFiles, {})
.pipe(gulp.dest(paths.dist.baseDir));
}
// 复制 WXML
function copyWXML() {
return gulp.src(paths.src.wxmlFiles, {})
......@@ -154,7 +162,8 @@ function wxmlImgRewrite() {
var res = config.assetsCDN + config.qcloud.prefix + '/';
// console.log(res);
return gulp.src(paths.src.wxmlFiles)
.pipe(replace('%ASSETS_IMG%/', res))
// .pipe(replace('%ASSETS_IMG%/', res))
.pipe(replace('../../image/oss/', res))
.pipe(gulp.dest(paths.dist.baseDir))
}
......@@ -233,7 +242,8 @@ var watchHandler = function (type, file) {
var tmp = file.replace('src/', 'dist/');
del([tmp]);
} else {
copyBasicFiles();
copyTargetFiles(); // modify
// copyBasicFiles();
// copyWXML();
// wxmlImgRewrite();
}
......
{
"pages": [
"pages/index/index",
"pages/prize-detail/prize-detail",
"pages/user-table/user-table",
"pages/index/index",
"pages/authorize/authorize",
"pages/coop/coop",
"pages/register/register",
......
......@@ -116,3 +116,15 @@
.van-popup {
background-color: transparent !important;
}
button {
border: none;
margin: 0;
padding: 0;
}
button::after {
border: none;
}
......

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({
y: 0,
url: '../../image/draw/draw-c1.png',
},
// // 头像
// {
// width: 102,
// height: 102,
// x: 35,
// y: 700,
// url: userInfo.avatar,
// },
// 头像
{
width: 102,
height: 102,
x: 35,
y: 779,
borderRadius: 102,
url: userInfo.avatar,
},
// 小程序码
{
width: 118,
......