潜在服务商
This commit is contained in:
@ -102,7 +102,6 @@ export function getContactQrCodeResult(data){
|
||||
return request({
|
||||
url:'/agg-api/wxcp/getContactQrCodeResult',
|
||||
method:'POST',
|
||||
contentType:'application/json',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@ -110,7 +110,7 @@
|
||||
<script>
|
||||
import {leftCopy} from "@/utils/common"
|
||||
import QRCode from 'qrcode'
|
||||
import { uploadImage, supplierServicePartTree, ocrHandler, unifiedOCRWithCompress, getArea, saveSupplier, getSupplierInfo, getOrCodeInfo } from "@/api/mine"
|
||||
import { uploadImage, supplierServicePartTree, ocrHandler, unifiedOCRWithCompress, getArea, saveSupplier, getSupplierInfo, getOrCodeInfo, getContactQrCodeResult } from "@/api/mine"
|
||||
import {myMixins} from "@/utils/myMixins"
|
||||
import {Dialog} from "vant";
|
||||
export default {
|
||||
@ -139,6 +139,7 @@
|
||||
serviceAreaCode: [],
|
||||
},
|
||||
qrCodeUrl: '',
|
||||
qrCode: '',
|
||||
areaShow: false,
|
||||
areaList: [],
|
||||
supplierServiceList: [],
|
||||
@ -146,7 +147,9 @@
|
||||
children: 'children',
|
||||
label: 'title'
|
||||
},
|
||||
areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', }
|
||||
areaProps: { multiple: true, checkStrictly: true, value: 'id',label: 'title', },
|
||||
configId: '',
|
||||
wechatId: '',
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
@ -168,6 +171,8 @@
|
||||
let res = await getOrCodeInfo({
|
||||
name: this.form.name
|
||||
});
|
||||
this.configId = res?.configId;
|
||||
this.qrCode = res?.qrCode
|
||||
console.log('idid', res);
|
||||
},
|
||||
async getInfoHandler() {
|
||||
@ -212,11 +217,11 @@
|
||||
this.$toast('服务区域不能为空')
|
||||
return
|
||||
}
|
||||
/* let flag = await this.QrCodeResult();
|
||||
if( !flag ) {
|
||||
await this.QrCodeResult();
|
||||
if( !this.wechatId ) {
|
||||
this.$toast('请先添加企微再申请')
|
||||
return
|
||||
}*/
|
||||
}
|
||||
if( this.$refs.tree.getCheckedKeys().length > 0 ) {
|
||||
await this.saveHandler()
|
||||
} else {
|
||||
@ -224,11 +229,13 @@
|
||||
return
|
||||
}
|
||||
},
|
||||
/*async QrCodeResult() { //获取添加企微结果
|
||||
await getContactQrCodeResult({
|
||||
async QrCodeResult() { //获取添加企微结果
|
||||
let res = await getContactQrCodeResult({
|
||||
configId: this.configId
|
||||
});
|
||||
},*/
|
||||
console.log('resres', res)
|
||||
this.wechatId = res?.data?.wechatId
|
||||
},
|
||||
async saveHandler() {
|
||||
if( this.clickFlag ) {
|
||||
try {
|
||||
@ -246,7 +253,7 @@
|
||||
businessLicense: this.companyPhoto,
|
||||
serviceType: this.$refs.tree.getCheckedKeys().join(','),
|
||||
serviceAreaCode: checkArr.join(','),
|
||||
wechatId: 'test',
|
||||
wechatId: this.wechatId,
|
||||
});
|
||||
Dialog.alert({
|
||||
title: '提示',
|
||||
@ -281,7 +288,7 @@
|
||||
},
|
||||
async getQrCode() {
|
||||
try {
|
||||
this.qrCodeUrl = await QRCode.toDataURL('123123', {
|
||||
this.qrCodeUrl = await QRCode.toDataURL(this.qrCode, {
|
||||
width: 150,
|
||||
margin: 2,
|
||||
color: {
|
||||
|
||||
Reference in New Issue
Block a user