Commit 534eb811 by 前端

Merge branch 'master' into 'develop'

Master

See merge request !8
2 parents 362fa669 8b5f32d1
.sprite-icon { background-image: url(../images/sprite.png);background-size: 139px 104px;}
.icon-default-avatar { width: 44px; height: 44px; background-position: 0px 0px;}
.icon-down { width: 12px; height: 12px; background-position: -96px -63px;}
.icon-eye { width: 13px; height: 8px; background-position: 0px -96px;}
.icon-file { width: 26px; height: 26px; background-position: -42px -54px;}
.icon-index-tips { width: 23px; height: 23px; background-position: -96px 0px;}
.icon-link { width: 32px; height: 32px; background-position: 0px -54px;}
.icon-pdf { width: 32px; height: 34px; background-position: -54px 0px;}
.icon-PYQ { width: 21px; height: 20px; background-position: -96px -33px;}
.icon-send { width: 10px; height: 10px; background-position: -129px 0px;}
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(../images/sprite.png);background-size: 311px 116px;}
.icon-default-avatar { width: 44px; height: 44px; background-position: 0px -52px;}
.icon-down { width: 12px; height: 12px; background-position: -238px -52px;}
.icon-eye { width: 13px; height: 8px; background-position: -260px -52px;}
.icon-file { width: 26px; height: 26px; background-position: -138px -52px;}
.icon-index-tips { width: 23px; height: 23px; background-position: -174px -52px;}
.icon-link { width: 32px; height: 32px; background-position: -96px -52px;}
.icon-pdf { width: 32px; height: 34px; background-position: -54px -52px;}
.icon-PYQ { width: 21px; height: 20px; background-position: -207px -52px;}
.icon-send { width: 10px; height: 10px; background-position: 0px -106px;}
.icon-steps { width: 311px; height: 42px; background-position: 0px 0px;}
\ No newline at end of file \ No newline at end of file

4.99 KB | W: | H:

7.49 KB | W: | H:

src/assets/images/nothing.png
src/assets/images/nothing.png
src/assets/images/nothing.png
src/assets/images/nothing.png
  • 2-up
  • Swipe
  • Onion skin

8.72 KB | W: | H:

10.3 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -81,7 +81,6 @@ const actions = { ...@@ -81,7 +81,6 @@ const actions = {
let url = `${redirectUrl.split('#')[0]}#/` let url = `${redirectUrl.split('#')[0]}#/`
let route = state.lastPath == 'home' ? '' : state.lastPath let route = state.lastPath == 'home' ? '' : state.lastPath
state.showWindow = true state.showWindow = true
console.log(data)
if (code == '0') { if (code == '0') {
if (data.loginList.length) { if (data.loginList.length) {
route = route.replace('.', '/') route = route.replace('.', '/')
...@@ -138,7 +137,7 @@ const actions = { ...@@ -138,7 +137,7 @@ const actions = {
return return
} else { } else {
appid = 'ww7ee69c648ae1b7e6' appid = 'ww7ee69c648ae1b7e6'
agentid = 1000035 // agentid = 1000003
// appid = 'wwc1fefc2a3f70bd0b' // appid = 'wwc1fefc2a3f70bd0b'
// agentid = 1000002 // agentid = 1000002
} }
...@@ -146,20 +145,26 @@ const actions = { ...@@ -146,20 +145,26 @@ const actions = {
} }
let dj_scrm_storage = { corpId: appid } let dj_scrm_storage = { corpId: appid }
let wxUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize' let wxUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize'
wxUrl = `${wxUrl}?appid=${appid}&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=snsapi_privateinfo` wxUrl = `${wxUrl}?appid=${appid}&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code`
if (agentid) { if (agentid && agentid != 'undefined') {
wxUrl = `${wxUrl}&agentid=${agentid}` wxUrl = `${wxUrl}&scope=snsapi_privateinfo&agentid=${agentid}`
dj_scrm_storage.agentId = agentid dj_scrm_storage.agentId = agentid
} }
else wxUrl = `${wxUrl}&scope=snsapi_base`
util.setLocalStorage('dj_scrm_corpId', dj_scrm_storage) util.setLocalStorage('dj_scrm_corpId', dj_scrm_storage)
window.location.href = `${wxUrl}&state=STATE#wechat_redirect` window.location.href = `${wxUrl}&state=STATE#wechat_redirect`
} }
}, },
navigation ({ dispatch }, to) { navigation ({ dispatch }, to) {
let { redirect_uri, corpId } = getParams() let { redirect_uri, corpId, agentId } = getParams()
let userInfo = util.getLocalStorage('dj_scrm_userInfo') let userInfo = util.getLocalStorage('dj_scrm_userInfo')
let loginList = util.getLocalStorage('dj_scrm_accountList') let loginList = util.getLocalStorage('dj_scrm_accountList')
if (corpId) util.setLocalStorage('dj_scrm_corpId', { corpId }) if (corpId) {
let dj_scrm_storage = {}
dj_scrm_storage.corpId = corpId
if (agentId && agentId != 'undefined') dj_scrm_storage.agentId = agentId
util.setLocalStorage('dj_scrm_corpId', dj_scrm_storage)
}
if (redirect_uri) util.setLocalStorage('dj_scrm_redirect_uri', redirect_uri) if (redirect_uri) util.setLocalStorage('dj_scrm_redirect_uri', redirect_uri)
let dj_scrm = util.getLocalStorage('dj_scrm_corpId') let dj_scrm = util.getLocalStorage('dj_scrm_corpId')
if (dj_scrm && userInfo) { if (dj_scrm && userInfo) {
......
...@@ -7,10 +7,36 @@ ...@@ -7,10 +7,36 @@
<div class="title">暂无权限</div> <div class="title">暂无权限</div>
<div class="tips">请联系管理员开通账户</div> <div class="tips">请联系管理员开通账户</div>
</div> </div>
<div class="title"> <div class="box">
<span>您也可以尝试以下操作</span> <div class="title">授权嘀加企微助手获取您手机号码</div>
<div class="sub-title">如您因拒绝授权而提示无权限,您可按如下步骤进行操作。</div>
<div class="steps">
<div class="sprite-icon icon-steps"></div>
<div class="text flex">
第一步:点击本页面右上角“<div class="dot-flex"><img
class="dot"
src="@/assets/images/icon/dot.png"
/></div>”
</div>
</div>
<template v-for="(i,index) in steps">
<div
:class="['steps',{'last':index == 2}]"
:key="index"
>
<div
class="sprite-icon icon-steps"
v-if="index != 2"
></div>
<div
class="text flex"
v-html="i"
></div>
</div>
</template>
</div> </div>
<div class="box"> <div class="box">
<div class="title">您也可以尝试以下操作:</div>
<div class="item"> <div class="item">
<div class="title">方式一:</div> <div class="title">方式一:</div>
<div class="value"> <div class="value">
...@@ -36,7 +62,6 @@ ...@@ -36,7 +62,6 @@
<div class="tips">企业微信的手机号必须和后台员工账户的手机号保持一致。</div> <div class="tips">企业微信的手机号必须和后台员工账户的手机号保持一致。</div>
</div> </div>
</div> </div>
<div class="tips">如若以上方式都无效,请联系公司管理员。</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -45,13 +70,18 @@ ...@@ -45,13 +70,18 @@
import store from '@/store' import store from '@/store'
export default { export default {
name: '', name: '',
data() { data () {
return { return {
steps: [
'第二步:选中“<span class="black">嘀加企微管家&gt;</span>”',
'第三步:选中“<span class="black">个人敏感信息授权管理</span>”点击“<span class="black">管理</span>”',
'第四步:勾选“<span class="black">手机号</span>”点击“<span class="black">保存</span>”。'
]
} }
}, },
mounted() {}, mounted () { },
methods: { methods: {
refresh() { refresh () {
store.dispatch('navigation') store.dispatch('navigation')
} }
} }
...@@ -60,4 +90,90 @@ export default { ...@@ -60,4 +90,90 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
@import '@/assets/css/error.scss'; @import '@/assets/css/error.scss';
.layout {
background-color: rgb(247, 247, 247);
.tips-box {
padding: 40px 0;
.icon {
width: 72px;
height: 81px;
}
.title {
font-size: 18px;
color: #333333;
}
.tips {
font-size: 14px;
}
}
.box {
padding: 10px 16px;
background: #ffffff;
box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5);
border-radius: 4px;
margin-bottom: 10px;
> .title {
font-size: 14px;
color: #333333;
font-weight: 500;
}
.sub-title {
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
}
.item {
margin-top: 10px;
border-radius: 0;
padding: 0;
box-shadow: none;
font-size: 14px;
.value {
line-height: 18px;
.tips {
color: #757575;
font-size: 12px;
}
.text {
.icon {
margin-left: auto;
}
}
}
}
.steps {
position: relative;
margin-bottom: 4px;
.text {
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 100%;
height: 36px;
font-size: 12px;
padding: 0 16px;
color: #757575;
box-sizing: border-box;
/deep/.black {
color: #333333;
}
/deep/.dot-flex {
display: flex;
align-items: center;
flex-direction: column;
}
/deep/.dot {
width: 4px;
height: 12px;
}
}
}
.last.steps {
width: 100%;
height: 36px;
background: #f0f6fd;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<!-- home --> <!-- home -->
<template> <template>
<div class="container"> <div class="container">
<template v-if="showWindow"> <template v-if="showWindow || $route.meta.noAuth">
<transition name="fade"> <transition name="fade">
<keep-alive v-if="$route.meta.keepAlive"> <keep-alive v-if="$route.meta.keepAlive">
<router-view></router-view> <router-view></router-view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!