Browse Source

行业分类显示

master
453530270@qq.com 2 years ago
parent
commit
34c0129140
  1. 5
      api/verify.js
  2. 45
      pages/user/mycertinfo/orgverify.vue

5
api/verify.js

@ -17,6 +17,11 @@ export const cerscan = (data) => {
return request.post(api.cerscan_url, data )
}
// 行业列表
export function getIndustry(param, option) {
return request.get(api.industry, param, option)
}
// do upload
export const upload = files => {
// 文件上传大小, 2M

45
pages/user/mycertinfo/orgverify.vue

@ -112,6 +112,15 @@
<option value="2">空乘</option>
</select>
</view>
<view class="flex-box">
<picker mode="selector" :range="industryList" range-key="name" :value="idIndex"
@change="onChangeIndustry">
<text v-if="idIndex > -1">{{ industryList[idIndex].name }}</text>
<text v-else class="col-80">选择行业类别</text>
</picker>
</view>
</view>
</view>
@ -145,9 +154,20 @@
//
jfr_idafile:[],
jfr_idbfile:[],
// id
industryType:0,
//
industryList: [],
//
idIndex: -1,
}
},
mounted() {
//
this.getIndustList()
},
methods: {
//
vfselitem(item){
this.vfindex = item
@ -206,6 +226,31 @@
selsf(val){
this.sfval = val
},
//
getIndustList(){
const app = this
return new Promise((resolve, reject) => {
VerifyApi.getIndustry()
.then(result => {
app.industryList = result.data
//app.expressList = result.data.list
resolve()
})
.catch(reject)
})
},
//
onChangeIndustry(e) {
console.log("e",e)
const curIndex = e.detail.value
this.idIndex = curIndex
// console.log("curIndustry",this.industryList[curIndex])
this.industryType = this.industryList[curIndex].industryId
// console.log(this.industryType)
},
//
chooseImage( item) {
const app = this

Loading…
Cancel
Save