Browse Source

change

gongyingshang
赵明涛 9 months ago
parent
commit
24c84c8335
  1. 2
      src/subpackage/party/pages/miniapp/certify.vue
  2. 27
      src/subpackage/party/pages/miniapp/regular.vue

2
src/subpackage/party/pages/miniapp/certify.vue

@ -7,7 +7,7 @@
<!-- <text class="rb-title">品牌信息</text> -->
<view class="rb-input-box rb-line b-flex-x b-flex-b">
<view class="rb-input-title b-flex-x">小程序名称<text>*</text></view>
<input class="rb-input" v-model="form.account_name" type="text" placeholder="请输入品牌名称"
<input class="rb-input" v-model="form.account_name" type="text" placeholder="请输入小程序名称"
placeholder-class="input-hold-class"></input>
</view>
<view class="rb-input-box rb-line b-flex-x b-flex-b">

27
src/subpackage/party/pages/miniapp/regular.vue

@ -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 {
// 118 29 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({

Loading…
Cancel
Save