切入曲靖验证和修正
This commit is contained in:
@@ -4,18 +4,51 @@
|
|||||||
/**
|
/**
|
||||||
常用内外边距样式
|
常用内外边距样式
|
||||||
*/
|
*/
|
||||||
@each $padMar, $pm in (mar:margin, pad:padding) {
|
@each $v in (8, 10, 12, 14, 16, 20, 24, 32, 48, 56, 64, 80) {
|
||||||
@each $pos, $p in (l:left, r:right, t:top, b:bottom) {
|
//gap
|
||||||
@each $v in (8, 10, 16, 20, 32, 48, 64) {
|
.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} {
|
.#{$padMar}-#{$pos+$v} {
|
||||||
#{$pm}-#{$p}: #{$v}px
|
#{$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;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'iconfont';
|
font-family: 'iconfont';
|
||||||
/* project id 1862352 */
|
/* project id 1862352 */
|
||||||
@@ -63,6 +96,7 @@ page {
|
|||||||
.bg-hover {
|
.bg-hover {
|
||||||
background: #eee !important;
|
background: #eee !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -14,10 +14,14 @@ export const user = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
getUserInfo({commit}) {
|
getUserInfo({commit}, way = "std") {
|
||||||
//获取企业微信后台账号信息
|
//获取企业微信后台账号信息
|
||||||
//党员认证状态 partyStatusForWX:0、未认证 1、认证中 2、已认证
|
//党员认证状态 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) {
|
if (res?.data) {
|
||||||
commit('setUser', res.data)
|
commit('setUser', res.data)
|
||||||
return Promise.all([])
|
return Promise.all([])
|
||||||
|
|||||||
@@ -67,16 +67,17 @@ export default {
|
|||||||
uni.navigateTo({url: `${app.path}`})
|
uni.navigateTo({url: `${app.path}`})
|
||||||
},
|
},
|
||||||
getApps() {
|
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() {
|
onShow() {
|
||||||
if (this.token) {
|
|
||||||
this.getUserInfo();
|
|
||||||
} else {
|
|
||||||
this.autoLogin().then(() => this.getUserInfo())
|
|
||||||
}
|
|
||||||
this.getApps()
|
this.getApps()
|
||||||
|
Promise.all([this.token ? 0 : this.autoLogin()]).then(() => this.getUserInfo())
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user