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