Commit 1fff8800 by 前端

Merge branch 'chenwq_dev_2.0.0' into 'master'

修复BUG

See merge request !10
2 parents 048374ba 30d83a60
......@@ -8,7 +8,7 @@ const WxConfig = {
if (e == 'chooseImage') jsApiList.push('getLocalImgData')
})
let [redirectUrl] = window.location.href.split('#')
const { corpId } = util.getLocalStorage('dj_scrm_corpId') || util.getQuery()
const { corpId } = util.getQuery() || util.getLocalStorage('dj_scrm_corpId')
/** 获取企微应用AgentConfig */
let data = {
corpId,
......
......@@ -10,7 +10,7 @@
module.exports = {
envVersion: 'trial',
request: {
baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -22,19 +22,21 @@
v-if="editForm.additionalType == '4'"
>
<div class="text">{{ editForm.wwMomentContent.text || ''}}</div>
<template v-if="editForm.wwMomentContent.contentType != 0">
<template v-if="editForm.wwMomentContent && editForm.wwMomentContent.contentType != 0">
<div
ref="wechatMutiImg"
v-if="[1,2].includes(editForm.wwMomentContent.contentType)"
class="wechat-muti-img"
>
<img
ref="mutiImgItem"
class="muti-img-item"
v-for="(item, index) in editForm.wwMomentContent.imgUrls"
:key="index"
:src="item"
/>
<template v-if="editForm.wwMomentContent">
<img
ref="mutiImgItem"
class="muti-img-item"
v-for="(item, index) in editForm.wwMomentContent.imgUrls"
:key="index"
:src="item"
/>
</template>
</div>
<div
v-else
......@@ -53,16 +55,15 @@
v-else
>
<div>{{ editForm.eventContent }}</div>
<div
v-show="editForm.urlContent.title"
class="flex sop-url"
>
<img
class="url-img"
:src="editForm.urlContent.imgUrl"
/>
<p class="url-txt txt-ellipsis">{{ editForm.urlContent.title }}</p>
</div>
<template v-if="editForm.urlContent">
<div class="flex sop-url">
<img
class="url-img"
:src="editForm.urlContent && editForm.urlContent.imgUrl"
/>
<p class="url-txt txt-ellipsis">{{editForm.urlContent && editForm.urlContent.title }}</p>
</div>
</template>
</div>
<!-- 用户 -->
<div
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!