Commit 37ef1fcd by 胡悦

更换适配插件

1 parent 57f5ce55
This diff could not be displayed because it is too large.
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
"axios": "^0.27.2", "axios": "^0.27.2",
"echarts": "^5.4.0", "echarts": "^5.4.0",
"js-sha1": "^0.6.0", "js-sha1": "^0.6.0",
"lib-flexible": "^0.3.2",
"md5": "^2.3.0", "md5": "^2.3.0",
"pinia": "^2.0.17", "pinia": "^2.0.17",
"pinia-plugin-persist": "^1.0.0", "pinia-plugin-persist": "^1.0.0",
...@@ -31,6 +30,7 @@ ...@@ -31,6 +30,7 @@
"@types/sha1": "^1.1.3", "@types/sha1": "^1.1.3",
"@vitejs/plugin-vue": "^2.3.3", "@vitejs/plugin-vue": "^2.3.3",
"postcss-loader": "^7.0.1", "postcss-loader": "^7.0.1",
"postcss-px-to-viewport": "^1.1.1",
"postcss-pxtorem": "^5.1.1", "postcss-pxtorem": "^5.1.1",
"sass": "^1.53.0", "sass": "^1.53.0",
"sass-loader": "^13.0.2", "sass-loader": "^13.0.2",
......
...@@ -3,19 +3,31 @@ ...@@ -3,19 +3,31 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:59:01 * @Date: 2022-10-10 10:59:01
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-10-28 17:10:10 * @LastEditTime: 2023-09-04 11:19:31
*/ */
module.exports = { module.exports = {
"plugins": { "plugins": {
"postcss-pxtorem": { // "postcss-pxtorem": {
rootValue: 75, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿 // rootValue: 75, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
unitPrecision: 6, // 计算结果保留 6 位小数 // unitPrecision: 6, // 计算结果保留 6 位小数
selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px // selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px
propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化 // propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化
replace: true, // 转换成 rem 以后,不保留原来的 px 单位属性 // replace: true, // 转换成 rem 以后,不保留原来的 px 单位属性
mediaQuery: true, // 允许在媒体查询中转换 px // mediaQuery: true, // 允许在媒体查询中转换 px
minPixelValue: 2, // 设置要替换的最小像素值 // minPixelValue: 2, // 设置要替换的最小像素值
// exclude: /node_modules/i // 排除 node_modules 文件(node_modules 内文件禁止转换) // // exclude: /node_modules/i // 排除 node_modules 文件(node_modules 内文件禁止转换)
// }
'postcss-px-to-viewport': {
unitToConvert: "px", // 要转化的单位
viewportWidth: 750, // UI设计稿的宽度
unitPrecision: 6, // 转换后的精度,即小数点位数
propList: ["*"], // 指定转换的css属性的单位,*代表全部css属性的单位都进行转换
viewportUnit: "vw", // 指定需要转换成的视窗单位,默认vw
fontViewportUnit: "vw", // 指定字体需要转换成的视窗单位,默认vw selectorBlackList: ["wrap"], // 指定不转换为视窗单位的类名,
minPixelValue: 2, // 默认值1,小于或等于1px则不进行转换
mediaQuery: true, // 是否在媒体查询的css代码中也进行转换,默认false
replace: true, // 是否转换后直接更换属性值
exclude: [/node_modules/], // 设置忽略文件,用正则做目录名匹配
} }
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -14,19 +14,19 @@ $imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/'; ...@@ -14,19 +14,19 @@ $imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
visibility: hidden; visibility: hidden;
} }
.data-time { // .data-time {
position: relative; // position: relative;
margin-bottom: -47px; // margin-bottom: -47px;
display: inline-block; // display: inline-block;
float: right; // float: right;
} // }
.service-name { // .service-name {
position: static; // position: static;
height: 100px; // height: 100px;
margin-top: -365px; // margin-top: -365px;
padding-left: 56px; // padding-left: 56px;
float: left; // float: left;
} // }
} }
.clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/ .clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/
content: ""; content: "";
...@@ -177,5 +177,5 @@ $imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/'; ...@@ -177,5 +177,5 @@ $imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
} }
} }
.firework { .firework {
top: 1557px !important; top: 1460px !important;
} }
\ No newline at end of file \ No newline at end of file
...@@ -308,21 +308,6 @@ ...@@ -308,21 +308,6 @@
} }
.store-report { .store-report {
position: relative; position: relative;
// min-height: 100vh;
.data-time {
position: relative;
margin-bottom: -47px;
display: inline-block;
float: right;
}
.merchant-name {
position: static;
height: 165px;
margin-top: -165px;
padding-left: 56px;
color: #fff;
text-shadow: 0 2px 0 #fe4f39;
}
} }
.firework { .firework {
position: absolute; position: absolute;
......
...@@ -3,15 +3,13 @@ ...@@ -3,15 +3,13 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-10-10 10:54:14 * @Date: 2022-10-10 10:54:14
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-03-07 10:21:50 * @LastEditTime: 2023-09-04 11:36:12
*/ */
import { createApp } from 'vue' import { createApp } from 'vue'
import store from './store' import store from './store'
// import apis from './api/index' // import apis from './api/index'
import router, { setupRouter } from './router' import router, { setupRouter } from './router'
import App from './App.vue' import App from './App.vue'
import 'lib-flexible/flexible'
import 'utils/rem'
import fetchConfig from './utils/config' import fetchConfig from './utils/config'
import fetchConfig1 from './utils/config1' import fetchConfig1 from './utils/config1'
import VConsole from 'vconsole' import VConsole from 'vconsole'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!