Commit ad93ccbe authored by 王宝峰's avatar 王宝峰

删除卡片当中的详情按钮,改为全卡片触发

parent 8eb921e3
......@@ -30,12 +30,12 @@
</view>
</view>
</view>
<view v-else class="card" v-for="(item,index) in ByTypelist" :key="index">
<view v-else class="card" v-for="(item,index) in ByTypelist" :key="index"
@click="toAppoint(item)">
<view class="ima">
<image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image>
</view>
<view>
<view style="height: 80px;width: 265px">
<view class="a-card">
{{item.mechanismName|ellipsis}}
</view>
......@@ -43,14 +43,9 @@
适用人群:&nbsp;&nbsp;{{item.propertyPeople|elli}}
</view>
</view>
<view style="width: 265px;right: 5%;">
<button class="b-card" @click="toAppoint(item)">
详情
</button>
</view>
</view>
</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more"
v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -70,7 +65,7 @@
</view>
</view>
</view >
</view>
<view v-else class="card" v-for="(item,index) in ByTypelist" :key="index">
<view class="ima">
<image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image>
......@@ -91,7 +86,8 @@
</view>
</view>
</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more"
v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -132,7 +128,8 @@
</view>
</view>
</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more"
v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -172,7 +169,8 @@
</view>
</view>
</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more"
v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -192,7 +190,7 @@
</view>
</view>
</view >
</view>
<view v-else class="card" v-for="(item,index) in ByTypelist" :key="index">
<view class="ima">
<image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image>
......@@ -213,7 +211,8 @@
</view>
</view>
</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more" v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
<view style="margin-left: 40%;margin-bottom: 20px;color: #666666;" @tap="more"
v-show="total >= queryParams.pageNum * queryParams.pageSize">加载更多~</view>
</view>
</scroll-view>
</swiper-item>
......@@ -246,12 +245,12 @@
},
data() {
return {
max:10,
f:10,
max: 10,
f: 10,
// token:uni.getStorageSync("token"),
onMore: true,
loadStatus:'loading',
isLoadMore:false,
loadStatus: 'loading',
isLoadMore: false,
triggered: false,
url: '/pages_course/tjty_course_course/course',
type: 1,
......@@ -308,17 +307,17 @@
...mapState('m_user', ['token'])
},
filters: {
ellipsis(value){
ellipsis(value) {
if (!value) return '';
if (value.length > 12) {
return value.slice(0,12) + '...'
return value.slice(0, 12) + '...'
}
return value
},
elli(value){
elli(value) {
if (!value) return '';
if (value.length > 7) {
return value.slice(0,7) + '...'
return value.slice(0, 7) + '...'
}
return value
}
......@@ -425,7 +424,7 @@
this.scrollLeft += this.category[i].width
};
},
list(id,pageNum) {
list(id, pageNum) {
listByType(id, pageNum).then(response => {
console.log(response);
if (this.flag) {
......@@ -566,12 +565,11 @@
font-size: 32rpx;
width: 500rpx;
height:80rpx ;
font-family: Source Han Sans CN, Source Han Sans CN-Regular;
font-weight: 400;
text-align: left;
color: #666666;
line-height: 50px;
line-height: 100rpx;
}
......@@ -579,12 +577,12 @@
.a-card {
font-size: 32rpx;
line-height: 120rpx;
width: 500rpx;
font-family: Source Han Sans CN, Source Han Sans CN-Bold;
font-weight: 700;
text-align: left;
color: #333333;
line-height: 42px;
}
......@@ -598,7 +596,7 @@
top: 25rpx;
width: 152rpx;
height: 64rpx;
right:20%;
right: 20%;
// height: auto;
text-align: center;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment