Commit 37ef1fcd by 胡悦

更换适配插件

1 parent 57f5ce55
This diff could not be displayed because it is too large.
{
"name": "vite-ts-project",
"private": true,
"version": "0.0.0",
"license": "ISC",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"axios": "^0.27.2",
"echarts": "^5.4.0",
"js-sha1": "^0.6.0",
"lib-flexible": "^0.3.2",
"md5": "^2.3.0",
"pinia": "^2.0.17",
"pinia-plugin-persist": "^1.0.0",
"qs": "^6.11.0",
"sha1": "^1.1.1",
"tslib": "^2.4.0",
"vant": "^3.5.3",
"vconsole": "^3.7.0",
"vue": "^3.2.25",
"vue-router": "^4.1.1",
"vuex": "^4.0.2"
},
"devDependencies": {
"@types/node": "^18.6.3",
"@types/qs": "^6.9.7",
"@types/sha1": "^1.1.3",
"@vitejs/plugin-vue": "^2.3.3",
"postcss-loader": "^7.0.1",
"postcss-pxtorem": "^5.1.1",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"typescript": "^4.7.4",
"vite": "^2.9.9",
"vite-plugin-style-import": "^1.4.1",
"vue-tsc": "^0.34.7"
}
}
{
"name": "vite-ts-project",
"private": true,
"version": "0.0.0",
"license": "ISC",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"axios": "^0.27.2",
"echarts": "^5.4.0",
"js-sha1": "^0.6.0",
"md5": "^2.3.0",
"pinia": "^2.0.17",
"pinia-plugin-persist": "^1.0.0",
"qs": "^6.11.0",
"sha1": "^1.1.1",
"tslib": "^2.4.0",
"vant": "^3.5.3",
"vconsole": "^3.7.0",
"vue": "^3.2.25",
"vue-router": "^4.1.1",
"vuex": "^4.0.2"
},
"devDependencies": {
"@types/node": "^18.6.3",
"@types/qs": "^6.9.7",
"@types/sha1": "^1.1.3",
"@vitejs/plugin-vue": "^2.3.3",
"postcss-loader": "^7.0.1",
"postcss-px-to-viewport": "^1.1.1",
"postcss-pxtorem": "^5.1.1",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"typescript": "^4.7.4",
"vite": "^2.9.9",
"vite-plugin-style-import": "^1.4.1",
"vue-tsc": "^0.34.7"
}
}
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2022-10-28 17:10:10
*/
module.exports = {
"plugins": {
"postcss-pxtorem": {
rootValue: 75, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
unitPrecision: 6, // 计算结果保留 6 位小数
selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px
propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化
replace: true, // 转换成 rem 以后,不保留原来的 px 单位属性
mediaQuery: true, // 允许在媒体查询中转换 px
minPixelValue: 2, // 设置要替换的最小像素值
// exclude: /node_modules/i // 排除 node_modules 文件(node_modules 内文件禁止转换)
}
}
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2023-09-04 11:19:31
*/
module.exports = {
"plugins": {
// "postcss-pxtorem": {
// rootValue: 75, // 75 表示 750 设计稿,37.5 表示 37.5 表示 375 设计稿
// unitPrecision: 6, // 计算结果保留 6 位小数
// selectorBlackList: ['.no-rem', 'no-rem'], // 要忽略的选择器并保留为px
// propList: ['*'], // 可以从 px 更改为 rem 的属性 感叹号开头的不转化
// replace: true, // 转换成 rem 以后,不保留原来的 px 单位属性
// mediaQuery: true, // 允许在媒体查询中转换 px
// minPixelValue: 2, // 设置要替换的最小像素值
// // 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
......@@ -14,19 +14,19 @@ $imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
visibility: hidden;
}
.data-time {
position: relative;
margin-bottom: -47px;
display: inline-block;
float: right;
}
.service-name {
position: static;
height: 100px;
margin-top: -365px;
padding-left: 56px;
float: left;
}
// .data-time {
// position: relative;
// margin-bottom: -47px;
// display: inline-block;
// float: right;
// }
// .service-name {
// position: static;
// height: 100px;
// margin-top: -365px;
// padding-left: 56px;
// float: left;
// }
}
.clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/
content: "";
......@@ -177,5 +177,5 @@ $imgUrl: 'https://img02.glsx.com.cn/weapp/resource/miniprogram/h5-posters/';
}
}
.firework {
top: 1557px !important;
top: 1460px !important;
}
\ No newline at end of file
......@@ -308,21 +308,6 @@
}
.store-report {
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 {
position: absolute;
......
......@@ -3,15 +3,13 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-03-07 10:21:50
* @LastEditTime: 2023-09-04 11:36:12
*/
import { createApp } from 'vue'
import store from './store'
// import apis from './api/index'
import router, { setupRouter } from './router'
import App from './App.vue'
import 'lib-flexible/flexible'
import 'utils/rem'
import fetchConfig from './utils/config'
import fetchConfig1 from './utils/config1'
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!