Commit 820d57cb by 前端

Merge branch 'liwk_dev_1.0.0' into 'master'

修复BUG

See merge request !12
2 parents 716b03d5 ac80b1ee
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script> <script src="//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
<!-- 使用CDN加速的JS文件,配置在vue.config.js下 --> <!-- 使用CDN加速的JS文件,配置在vue.config.js下 -->
<% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %> <% for (var i in htmlWebpackPlugin.options.cdn&&htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script> <script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
......
...@@ -24,22 +24,25 @@ const WxConfig = { ...@@ -24,22 +24,25 @@ const WxConfig = {
}) })
.then(obj => { .then(obj => {
if (obj) { if (obj) {
wx.agentConfig({ setTimeout(() => {
corpid: obj.corpId, // 必填,企业微信的corpid,必须与当前登录的企业一致 console.log('wx.agentConfig:', wx.agentConfig)
agentid: obj.agentId, // 必填,企业微信的应用id (e.g. 1000247) wx.agentConfig({
timestamp: obj.timestamp, // 必填,生成签名的时间戳 corpid: obj.corpId, // 必填,企业微信的corpid,必须与当前登录的企业一致
nonceStr: obj.nonceStr, // 必填,生成签名的随机串 agentid: obj.agentId, // 必填,企业微信的应用id (e.g. 1000247)
signature: obj.signature, // 必填,签名,见附录-JS-SDK使用权限签名算法, timestamp: obj.timestamp, // 必填,生成签名的时间戳
jsApiList, nonceStr: obj.nonceStr, // 必填,生成签名的随机串
success (res) { signature: obj.signature, // 必填,签名,见附录-JS-SDK使用权限签名算法,
console.log(res, 'wx_config') jsApiList,
resolve() success (res) {
}, console.log(res, 'wx_config')
fail (err) { resolve()
console.log(err, 'wx_config') },
reject(err) fail (err) {
} console.log(err, 'wx_config')
}) reject(err)
}
})
}, 500)
} else { } else {
Notify('网络异常') Notify('网络异常')
} }
......
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
<div class="title flex"> <div class="title flex">
{{item.materialName}} {{item.materialName}}
<template v-if="!hidePYQ"> <template v-if="!hidePYQ">
<div class="sprite-icon icon-PYQ" @click="onEmit('share',item)"></div> <div
class="sprite-icon icon-PYQ"
@click="onEmit('share',item)"
></div>
</template> </template>
</div> </div>
<div class="content"> <div class="content">
...@@ -12,7 +15,10 @@ ...@@ -12,7 +15,10 @@
</template> </template>
<template v-else-if="item.materialType == 2">链接</template> <template v-else-if="item.materialType == 2">链接</template>
<template v-else> <template v-else>
<div v-html="decodeURIComponent(item.materialUrl)" class="hide"></div> <div
v-html="decodeURIComponent(item.materialUrl)"
class="hide"
></div>
</template> </template>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
...@@ -81,10 +87,10 @@ export default { ...@@ -81,10 +87,10 @@ export default {
padding: 10px 16px; padding: 10px 16px;
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
.hide{ .hide {
max-height: 150px; max-height: 150px;
overflow-y: scroll; overflow-y: scroll;
/deep/img{ /deep/img {
height: auto; height: auto;
} }
} }
......
...@@ -11,7 +11,7 @@ module.exports = { ...@@ -11,7 +11,7 @@ module.exports = {
title: '嘀加企微助手', title: '嘀加企微助手',
envVersion: 'trial', envVersion: 'trial',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
marketingApi.getPsdList({ materialName, businessType, groupId }).then(data => { marketingApi.getPsdList({ materialName, businessType, groupId }).then(data => {
console.log('素材列表', data) console.log('素材列表', data)
if (sort != 0 && data && data.length) data = this.sortList(data, sort == 1 ? 'sendNum' : 'readNum') if (sort != 0 && data && data.length) data = this.sortList(data, sort == 1 ? 'sendNum' : 'readNum')
this.list = data || [] this.list = data.materialToCRpcResponses || []
this.flag = true this.flag = true
this.hideLoading() this.hideLoading()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!