|
@@ -1,17 +1,14 @@
|
|
|
<template>
|
|
|
<!-- pages/fuwu/fuwu.wxml -->
|
|
|
- <view class="container">
|
|
|
+ <view class="contain">
|
|
|
<!-- 问答类别 -->
|
|
|
-
|
|
|
- <view class="wendaFL" @tap="" v-for="(obj, index) in typeList" :key="index">
|
|
|
- <ul class="wendaFL">
|
|
|
- <li class="sanNong">
|
|
|
- <image :src="'http://127.0.0.1:8080'+obj.path" class="lbBj"></image>
|
|
|
- <h2>{{obj.type}}</h2>
|
|
|
- <span>1566</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </view>
|
|
|
+ <ul class="wendaFL" v-for="(e,idx) in typeList" :key="idx" style="width: 48%;">
|
|
|
+ <li class="sanNong" style="width: 100%;">
|
|
|
+ <image :src="loadImgSrcLocalhost('e.path')" class="lbBj" @tap="goSanNong"></image>
|
|
|
+ <h2>{{obj.type}}</h2>
|
|
|
+ <span>1566</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -51,6 +48,7 @@ export default {
|
|
|
//获取类型列表
|
|
|
getTypeList(){
|
|
|
getTypeList(this.queryParams).then(res =>{
|
|
|
+ debugger
|
|
|
this.typeList = res.rows
|
|
|
})
|
|
|
},
|
|
@@ -73,6 +71,13 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
-<style>
|
|
|
+<style scoped>
|
|
|
@import './asking.css';
|
|
|
+.contain {
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0rpx 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
</style>
|