Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 37ef1fcd
authored
Sep 04, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更换适配插件
1 parent
57f5ce55
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
89 additions
and
94 deletions
package-lock.json
package.json
postcss.config.js
src/assets/styles/equity/serviceReport.scss
src/assets/styles/equity/storeReport.scss
src/main.ts
package-lock.json
View file @
37ef1fc
This diff could not be displayed because it is too large.
package.json
View file @
37ef1fc
{
"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"
,
"v
ant"
:
"^3.5.3"
,
"v
console"
:
"^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"
,
"v
console"
:
"^3.7.0"
,
"v
ue"
:
"^3.2.25"
,
"vue
-router"
:
"^4.1.1"
,
"vue
x"
:
"^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"
}
}
postcss.config.js
View file @
37ef1fc
/*
* @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
src/assets/styles/equity/serviceReport.scss
View file @
37ef1fc
...
...
@@ -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
:
1
557
px
!
important
;
top
:
1
460
px
!
important
;
}
\ No newline at end of file
src/assets/styles/equity/storeReport.scss
View file @
37ef1fc
...
...
@@ -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
;
...
...
src/main.ts
View file @
37ef1fc
...
...
@@ -3,15 +3,13 @@
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-0
3-07 10:21:50
* @LastEditTime: 2023-0
9-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'
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment