|
@@ -43,6 +43,7 @@ var thirdPartyVerify = {
|
|
},
|
|
},
|
|
init: function () {
|
|
init: function () {
|
|
this.getKeywordsList()
|
|
this.getKeywordsList()
|
|
|
|
+ this.getQrInfo()
|
|
},
|
|
},
|
|
getKeywordsList: function () {
|
|
getKeywordsList: function () {
|
|
var arr = []
|
|
var arr = []
|
|
@@ -56,6 +57,23 @@ var thirdPartyVerify = {
|
|
this.keywordsList = arr
|
|
this.keywordsList = arr
|
|
return arr
|
|
return arr
|
|
},
|
|
},
|
|
|
|
+ getQrInfo: function () {
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: '/commercial/customer/info',
|
|
|
|
+ type: 'GET',
|
|
|
|
+ data: {
|
|
|
|
+ module: 'tripartiteAuth'
|
|
|
|
+ },
|
|
|
|
+ success:function(res) {
|
|
|
|
+ if (res && res.data) {
|
|
|
|
+ thirdPartyVerifyDialog.setCustomerInfo(res.data.phone, res.data.wxCodeImg)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error:function(err) {
|
|
|
|
+ console.log(err)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
bindEvents: function () {
|
|
bindEvents: function () {
|
|
$('.third-party-popover').on('click', function () {
|
|
$('.third-party-popover').on('click', function () {
|
|
thirdPartyVerifyDialog.showDialog(true)
|
|
thirdPartyVerifyDialog.showDialog(true)
|
|
@@ -180,6 +198,12 @@ var thirdPartyVerifyDialogTemplate = `
|
|
<span>服务体系认证:实力认证,竞争有优势</span>
|
|
<span>服务体系认证:实力认证,竞争有优势</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="t-p-main-desc-container desc-qr" v-if="isWx">
|
|
|
|
+ <div class="p-c-h-c-img">
|
|
|
|
+ <img :src="qrImgUrl" alt="客服企业微信二维码">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mt8">长按二维码加客服微信,备注认证服务</div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="j-footer">
|
|
<div class="j-footer">
|
|
<div class="t-p-footer-container j-button-group">
|
|
<div class="t-p-footer-container j-button-group">
|
|
@@ -199,7 +223,8 @@ var thirdPartyVerifyDialog = new Vue({
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
platform: goTemplateData.platform,
|
|
platform: goTemplateData.platform,
|
|
- phone: '15136295365',
|
|
|
|
|
|
+ phone: '',
|
|
|
|
+ qrImgUrl: '',
|
|
show: false
|
|
show: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -218,6 +243,10 @@ var thirdPartyVerifyDialog = new Vue({
|
|
closeIconClick: function () {
|
|
closeIconClick: function () {
|
|
this.showDialog(false)
|
|
this.showDialog(false)
|
|
},
|
|
},
|
|
|
|
+ setCustomerInfo: function (phone, qrImgUrl) {
|
|
|
|
+ this.phone = phone
|
|
|
|
+ this.qrImgUrl = qrImgUrl
|
|
|
|
+ },
|
|
callPhone: function () {
|
|
callPhone: function () {
|
|
if (!this.isWx) {
|
|
if (!this.isWx) {
|
|
try {
|
|
try {
|