|
@@ -3,11 +3,7 @@
|
|
<div class="peripheralBody">
|
|
<div class="peripheralBody">
|
|
<van-tabs :active="active" @change="onChange">
|
|
<van-tabs :active="active" @change="onChange">
|
|
<van-tab title="全部" :name="0"></van-tab>
|
|
<van-tab title="全部" :name="0"></van-tab>
|
|
- <van-tab title="大类" :name="1"></van-tab>
|
|
|
|
- <van-tab title="大类" :name="2"></van-tab>
|
|
|
|
- <van-tab title="大类" :name="3"></van-tab>
|
|
|
|
- <van-tab title="大类" :name="4"></van-tab>
|
|
|
|
- <van-tab title="大类" :name="5"></van-tab>
|
|
|
|
|
|
+ <van-tab title="大类" :name="1" v-for="(item,index) in typeList"></van-tab>
|
|
</van-tabs>
|
|
</van-tabs>
|
|
<div class="peripheralBox">
|
|
<div class="peripheralBox">
|
|
<div class="peripheralItem" v-for="item in peripheralList" @tap="toDetail(item)">
|
|
<div class="peripheralItem" v-for="item in peripheralList" @tap="toDetail(item)">
|
|
@@ -23,6 +19,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { policyList,getUserLocalStorageInfo,policyListAll } from "@/js_sdk/http.js";
|
|
export default {
|
|
export default {
|
|
name: "peripheralService",
|
|
name: "peripheralService",
|
|
data(){
|
|
data(){
|
|
@@ -31,13 +28,27 @@ export default {
|
|
peripheralList:[
|
|
peripheralList:[
|
|
{name:'关于入住企业规模发展奖励',type:['小类','大类']},
|
|
{name:'关于入住企业规模发展奖励',type:['小类','大类']},
|
|
{name:'关于入住企业规模发展奖励',type:['小类','大类']},
|
|
{name:'关于入住企业规模发展奖励',type:['小类','大类']},
|
|
- ]
|
|
|
|
|
|
+ ],
|
|
|
|
+ typeList:[],
|
|
|
|
+ userId:getUserLocalStorageInfo().userId
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
methods:{
|
|
methods:{
|
|
onChange(e) {
|
|
onChange(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
|
|
+ getList(){
|
|
|
|
+ policyListAll().then(res=>{
|
|
|
|
+ this.typeList = res.data
|
|
|
|
+ console.log(this.typeList,'11111')
|
|
|
|
+ })
|
|
|
|
+ // policyList({userId:this.userId}).then(res=>{
|
|
|
|
+ //
|
|
|
|
+ // })
|
|
|
|
+ },
|
|
toDetail(item) {
|
|
toDetail(item) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:'/pages/subPackages/industrialPolicy/detail'
|
|
url:'/pages/subPackages/industrialPolicy/detail'
|