切入曲靖验证和修正

This commit is contained in:
aixianling
2023-03-17 10:15:03 +08:00
parent 4f49a8ce3a
commit caa650d8a7
3 changed files with 51 additions and 12 deletions

View File

@@ -4,18 +4,51 @@
/**
常用内外边距样式
*/
@each $padMar, $pm in (mar:margin, pad:padding) {
@each $pos, $p in (l:left, r:right, t:top, b:bottom) {
@each $v in (8, 10, 16, 20, 32, 48, 64) {
@each $v in (8, 10, 12, 14, 16, 20, 24, 32, 48, 56, 64, 80) {
//gap
.gap-#{$v} {
gap: #{$v}px
}
.font-#{$v} {
font-size: #{$v}px;
}
@each $padMar, $pm in (mar:margin, pad:padding) {
.#{$padMar}-#{$v} {
#{$pm}: #{$v}px
}
//纵向
.#{$padMar}-v#{$v} {
#{$pm}-top: #{$v}px;
#{$pm}-bottom: #{$v}px;
}
//横向
.#{$padMar}-h#{$v} {
#{$pm}-left: #{$v}px;
#{$pm}-right: #{$v}px;
}
@each $pos, $p in (l:left, r:right, t:top, b:bottom) {
.#{$padMar}-#{$pos+$v} {
#{$pm}-#{$p}: #{$v}px
}
}
}
}
.bg-fff{
@each $where in (sticky, fixed) {
@each $pos, $p in (l:left, r:right, t:top, b:bottom) {
.#{$where}-#{$pos} {
position: fixed;
#{$p}: 0;
z-index: 202301031019;
width: 100%;
}
}
}
.bg-fff {
background-color: #fff;
}
@font-face {
font-family: 'iconfont';
/* project id 1862352 */
@@ -63,6 +96,7 @@ page {
.bg-hover {
background: #eee !important;
}
.flex {
display: flex;
align-items: center;

View File

@@ -14,10 +14,14 @@ export const user = {
},
},
actions: {
getUserInfo({commit}) {
getUserInfo({commit}, way = "std") {
//获取企业微信后台账号信息
//党员认证状态 partyStatusForWX:0、未认证 1、认证中 2、已认证
return http.post("/app/appwechatuser/check").then(res => {
const actions = {
std: "/app/appwechatuser/check",
qujing: "/app/appwechatuserqujing/check",
}
return http.post(actions[way]).then(res => {
if (res?.data) {
commit('setUser', res.data)
return Promise.all([])

View File

@@ -67,16 +67,17 @@ export default {
uni.navigateTo({url: `${app.path}`})
},
getApps() {
this.apps = config.apps.map(e => ({...e, path: e.libPath}))
this.apps = config.apps.map(e => {
if (/\/project\//.test(e.libPath)) {
e.project = e.libPath.replace(/.*project\/([^\/]+)\/.+/, '$1')
}
return {...e, path: e.libPath}
})
},
},
onShow() {
if (this.token) {
this.getUserInfo();
} else {
this.autoLogin().then(() => this.getUserInfo())
}
this.getApps()
Promise.all([this.token ? 0 : this.autoLogin()]).then(() => this.getUserInfo())
},
}
</script>