|
|
@ -118,6 +118,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import util from '@/utils/util.js'; |
|
|
|
import { API } from '@/js/api'; |
|
|
|
import { servers } from '@/js/server'; |
|
|
|
import party_api from '../../../party/js/api'; |
|
|
|
|
|
|
@ -146,6 +147,7 @@ export default { |
|
|
|
// 企业代码类型 1:统一社会信用代码(18 位) 2:组织机构代码(9 位 xxxxxxxx-x) 3:营业执照注册号(15 位) |
|
|
|
code_type_arr: ["统一社会信用代码18 位)", "组织机构代码(9 位)", "营业执照注册号"], |
|
|
|
code_type_index: 0, |
|
|
|
indexData: {}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -247,9 +249,28 @@ export default { |
|
|
|
//清理证件号 |
|
|
|
this.verify_info.code = "" |
|
|
|
}, |
|
|
|
toCertify(){ |
|
|
|
let appid = this.appid |
|
|
|
util.routeTo(`/subpackage/party/pages/miniapp/regist`,"nT") |
|
|
|
async toCertify(){ |
|
|
|
try{ |
|
|
|
let _appid = await this.getAppid() |
|
|
|
console.log('toCertify',_appid) |
|
|
|
if(_appid) util.routeTo(`/subpackage/party/pages/miniapp/regist?appid=${_appid}`,"rT") |
|
|
|
}catch(err){ |
|
|
|
console.warn('toCertify err',err) |
|
|
|
util.showNone('获取appid失败!') |
|
|
|
util.routeTo(`/pages/index/index`,"rL") |
|
|
|
} |
|
|
|
}, |
|
|
|
getAppid(){ |
|
|
|
return servers.get({ |
|
|
|
url: API.calc, |
|
|
|
data: {}, |
|
|
|
failMsg: '加载数据失败!' |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
this.indexData = res; |
|
|
|
this.$store.commit('setBrandInfo',res); |
|
|
|
return res.brand.mini_wechat.appid |
|
|
|
}) |
|
|
|
}, |
|
|
|
getVerifyMiniAppInfo(){ |
|
|
|
return servers.get({ |
|
|
|