|
|
@@ -9,9 +9,7 @@
|
|
|
</div>
|
|
|
<el-popover placement="right-end" width="30" trigger="hover">
|
|
|
<div class="flex f-c a-c">
|
|
|
- <div class="qrCode flex j-c a-c">
|
|
|
- <div id="qrcode" ref="qrcode"></div>
|
|
|
- </div>
|
|
|
+ <img :src="wechatPictureUrl" alt="" style="width: 130px;height:130px;">
|
|
|
<span style="font-size: 14px;color: #333;margin-top: 5px;">微信扫码咨询</span>
|
|
|
</div>
|
|
|
<div class="humanAgent flex f-c j-c a-c" slot="reference" >
|
|
|
@@ -40,6 +38,7 @@ export default {
|
|
|
qrcode: null,
|
|
|
qrcodeWidth: "130",
|
|
|
qrcodeHeight: "130",
|
|
|
+ wechatPictureUrl:"",
|
|
|
}
|
|
|
},
|
|
|
// 生命周期函数
|
|
|
@@ -55,13 +54,7 @@ export default {
|
|
|
wechat() {
|
|
|
this.$api.aiSupport.wechatpicture().then((res) => {
|
|
|
if (res.code == '200') {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.creatQrCode(res.data.wechatPictureUrl);
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.creatQrCode("https://www.baidu.com/s?ie=UTF-8&wd=baoidu");
|
|
|
- });
|
|
|
+ this.wechatPictureUrl=process.env.APP_BASE_URL+ res.data.wechatPictureUrl;
|
|
|
}
|
|
|
});
|
|
|
},
|