Commit cb1907ea by 李伟康

喜报早报记录可配置

1 parent ab121270
...@@ -59,7 +59,6 @@ export default { ...@@ -59,7 +59,6 @@ export default {
.van-tabbar { .van-tabbar {
background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%); background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.04); box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.04);
border-radius: 10px 10px 0px 0px;
overflow: hidden; overflow: hidden;
z-index: 3; z-index: 3;
.van-tabbar-item--active { .van-tabbar-item--active {
......
...@@ -11,7 +11,7 @@ module.exports = { ...@@ -11,7 +11,7 @@ module.exports = {
envVersion: 'trial', envVersion: 'trial',
title: '嘀加企微管家', title: '嘀加企微管家',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: '//scrm.test.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
...@@ -57,6 +57,16 @@ module.exports = { ...@@ -57,6 +57,16 @@ module.exports = {
}, },
clew: { clew: {
path: '/dj-scrm-wx-work-attachment-clew/#/' path: '/dj-scrm-wx-work-attachment-clew/#/'
},
psd: {
path: '/dj-scrm-wx-work-attachment-psd/#/'
} }
} },
//喜报早报记录 配置企微
paperPage: {
label: '喜报早报记录',
menuUrl: 'chat/paper@psd|https://img01.glsx.com.cn/weapp/resource/scrm-mobile/main/paper.png',
corpIds: ['ww7d1c6fb5709cc884', 'wwa55ffac1225eb25e']
},
} }
\ No newline at end of file \ No newline at end of file
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
const { subsystemInfo } = window.$fetchConfig const { subsystemInfo, paperPage } = window.$fetchConfig
import { ssoApi } from '@/api' import { ssoApi } from '@/api'
export default { export default {
name: '', name: '',
...@@ -49,6 +49,7 @@ export default { ...@@ -49,6 +49,7 @@ export default {
}, },
activated () { activated () {
ssoApi.getPermission().then(data => { ssoApi.getPermission().then(data => {
const { entmicroId } = this.getLocalStorage('dj_scrm_userInfo')
if (data && data.length) { if (data && data.length) {
let [merchantProTreeResponses] = data[0].products[0].merchantProTreeResponses let [merchantProTreeResponses] = data[0].products[0].merchantProTreeResponses
if (merchantProTreeResponses) { if (merchantProTreeResponses) {
...@@ -56,7 +57,11 @@ export default { ...@@ -56,7 +57,11 @@ export default {
if (list && list.length) { if (list && list.length) {
list.map(e => { list.map(e => {
if (e.children) { if (e.children) {
e.children.map(i => { if (e.label == '工作台' && paperPage.corpIds.includes(entmicroId)) {
if (e.children.length) e.children.push(paperPage)
else e.children = [paperPage]
}
e.children?.map(i => {
let [url, item] = i.menuUrl.split('@') let [url, item] = i.menuUrl.split('@')
let [target, icon] = item.split('|') let [target, icon] = item.split('|')
let [link, query] = url.split('?') let [link, query] = url.split('?')
...@@ -67,7 +72,6 @@ export default { ...@@ -67,7 +72,6 @@ export default {
}) })
} }
}) })
console.log(list)
this.list = list this.list = list
} }
} }
...@@ -93,12 +97,14 @@ export default { ...@@ -93,12 +97,14 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.layout { .layout {
padding: 16px 16px 66px; padding-bottom: 66px;
.title { .title {
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
color: #4a4a4a; color: #4a4a4a;
padding: 16px 0 10px; height: 34px;
line-height: 34px;
text-indent: 16px;
} }
.box { .box {
display: grid; display: grid;
...@@ -106,8 +112,8 @@ export default { ...@@ -106,8 +112,8 @@ export default {
align-items: center; align-items: center;
min-height: 84px; min-height: 84px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 2px 4px 0px rgba(206, 209, 222, 0.12), 0px 2px 8px 0px rgba(206, 209, 222, 0.4); // box-shadow: 0px 2px 4px 0px rgba(206, 209, 222, 0.12), 0px 2px 8px 0px rgba(206, 209, 222, 0.4);
border-radius: 4px; // border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
color: #333; color: #333;
font-size: 12px; font-size: 12px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!