修改主题色

msb_beta
ch 3 years ago
parent e6b8ba64be
commit 9b92348b3d

1
.gitignore vendored

@ -1,5 +1,6 @@
.hbuilderx/
.history/
env.js
node_moudel/
package-lock.json
unpackage/dist/build/.automator/

@ -0,0 +1,45 @@
/*
* @Author: ch
* @Date: 2022-05-05 14:40:00
* @LastEditors: ch
* @LastEditTime: 2022-05-05 18:07:18
* @Description: 根据git分支生成对应环境的环境变量
* 开发时如果环境变量换了可以不用重启服务直接运行node env.config.js即可
*/
const fs = require('fs');
const path = require('path');
const getRepoInfo = require('git-repo-info');
const envConfig = {
dev : {
base_url: 'dev'
},
test : {
base_url: 'xxx'
},
reslese : {
base_url: 'xxx'
},
prod : {
base_url: 'xxx'
}
}
const branch = getRepoInfo().branch; // 调用获取git信息
let curEnvConfig = {};
switch (branch){
case 'msb_test':
curEnvConfig = envConfig.test;
break;
case 'msb_beta':
curEnvConfig = envConfig.release;
break;
case 'msb_prod':
curEnvConfig = envConfig.prod;
break;
default:
curEnvConfig = envConfig.dev;
break;
}
fs.writeFileSync(`${path.resolve(__dirname, '../common/config')}/env.js`,
`const ENV = ${JSON.stringify(curEnvConfig)}; export default ENV;`);

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-17 17:42:32
* @LastEditors: ch
* @LastEditTime: 2022-05-05 16:22:30
* @LastEditTime: 2022-05-05 19:00:38
* @Description: 项目接口请求统一处理器返回一个需要token和不需要token的请求封装方法
*/

@ -21,6 +21,7 @@
"vuex": "^3.6.2"
},
"devDependencies": {
"@dcloudio/uni-helper-json": "^1.0.13"
"@dcloudio/uni-helper-json": "^1.0.13",
"git-repo-info": "^2.1.1"
}
}

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-23 10:31:12
* @LastEditors: ch
* @LastEditTime: 2022-04-30 19:30:49
* @LastEditTime: 2022-05-05 18:37:20
* @Description: file content
-->
<template>
@ -63,7 +63,7 @@ export default {
top:-2rpx;
height: 231rpx;
width: 110vw;
background: $color-blue5;
background: #F3574D;
border-bottom-left-radius: 100%;
border-bottom-right-radius: 100%;
}

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2019-08-22 19:41:20
* @LastEditors: ch
* @LastEditTime: 2022-05-05 10:52:47
* @LastEditTime: 2022-05-05 18:42:34
* @Description: file content
-->
<template>
@ -33,10 +33,10 @@
</view>
<Seckill :data="seckillData" v-if="seckillData.activityTimeVO"></Seckill>
<view class="title">为您甄选</view>
<view class="title">甄选推荐</view>
<Pick :data="recommendedGoodsList"></Pick>
<view class="title">为您推荐</view>
<view class="title">为您精选</view>
<BsChoiceGoods ref="goodsGroup" ></BsChoiceGoods>
@ -142,7 +142,7 @@ page {
display: flex;
align-items: center;
justify-content: space-between;
background: $color-blue5;
background: #F3574D;
}
.logo{
width: 265rpx;
@ -170,7 +170,7 @@ page {
}
.search{
padding: 5rpx 30rpx 0;
background: $color-blue5;
background: #F3574D;
&__min{
width: 548rpx;
padding: 0;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Loading…
Cancel
Save