You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xuan-pay-cweb/pages/index/business-category/business-category.vue

49 lines
876 B

<template>
<view>
<jobSelect ref="jobSelect" :listData="listData" @confirem="confiremJob"></jobSelect>
</view>
</template>
<script>
import jobSelect from '../../../components/yunmiao-jobSelect/yunmiao-jobSelect.vue';
import {
getIndustry
} from '../../../Utils/Api.js';
let app = getApp();
export default {
components: {
jobSelect
},
data() {
return {
//行业数据
listData: [],
}
},
onLoad() {
this.getIndustry();
},
methods: {
//行业查询
getIndustry() {
getIndustry().then(res => {
if (res.return_code == '000000') {
this.listData = res.return_data;
}
})
},
//选择分类
confiremJob(e) {
app.globalData.businessid = e.id;
app.globalData.businessname = e.name;
uni.navigateBack({})
},
}
}
</script>
<style>
</style>