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

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

parent 8eb921e3
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
</view> </view>
</view> </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"> <view class="ima">
<image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image> <image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image>
</view> </view>
<view> <view>
<view style="height: 80px;width: 265px">
<view class="a-card"> <view class="a-card">
{{item.mechanismName|ellipsis}} {{item.mechanismName|ellipsis}}
</view> </view>
...@@ -43,14 +43,9 @@ ...@@ -43,14 +43,9 @@
适用人群:&nbsp;&nbsp;{{item.propertyPeople|elli}} 适用人群:&nbsp;&nbsp;{{item.propertyPeople|elli}}
</view> </view>
</view> </view>
<view style="width: 265px;right: 5%;">
<button class="b-card" @click="toAppoint(item)">
详情
</button>
</view>
</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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -70,7 +65,7 @@ ...@@ -70,7 +65,7 @@
</view> </view>
</view> </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">
<view class="ima"> <view class="ima">
<image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image> <image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image>
...@@ -91,7 +86,8 @@ ...@@ -91,7 +86,8 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -132,7 +128,8 @@ ...@@ -132,7 +128,8 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -172,7 +169,8 @@ ...@@ -172,7 +169,8 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -192,7 +190,7 @@ ...@@ -192,7 +190,7 @@
</view> </view>
</view> </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">
<view class="ima"> <view class="ima">
<image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image> <image style="width: 116px;height:116px;border-radius:16px " :src="item.image"></image>
...@@ -213,7 +211,8 @@ ...@@ -213,7 +211,8 @@
</view> </view>
</view> </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> </view>
</scroll-view> </scroll-view>
</swiper-item> </swiper-item>
...@@ -246,12 +245,12 @@ ...@@ -246,12 +245,12 @@
}, },
data() { data() {
return { return {
max:10, max: 10,
f:10, f: 10,
// token:uni.getStorageSync("token"), // token:uni.getStorageSync("token"),
onMore: true, onMore: true,
loadStatus:'loading', loadStatus: 'loading',
isLoadMore:false, isLoadMore: false,
triggered: false, triggered: false,
url: '/pages_course/tjty_course_course/course', url: '/pages_course/tjty_course_course/course',
type: 1, type: 1,
...@@ -308,17 +307,17 @@ ...@@ -308,17 +307,17 @@
...mapState('m_user', ['token']) ...mapState('m_user', ['token'])
}, },
filters: { filters: {
ellipsis(value){ ellipsis(value) {
if (!value) return ''; if (!value) return '';
if (value.length > 12) { if (value.length > 12) {
return value.slice(0,12) + '...' return value.slice(0, 12) + '...'
} }
return value return value
}, },
elli(value){ elli(value) {
if (!value) return ''; if (!value) return '';
if (value.length > 7) { if (value.length > 7) {
return value.slice(0,7) + '...' return value.slice(0, 7) + '...'
} }
return value return value
} }
...@@ -425,7 +424,7 @@ ...@@ -425,7 +424,7 @@
this.scrollLeft += this.category[i].width this.scrollLeft += this.category[i].width
}; };
}, },
list(id,pageNum) { list(id, pageNum) {
listByType(id, pageNum).then(response => { listByType(id, pageNum).then(response => {
console.log(response); console.log(response);
if (this.flag) { if (this.flag) {
...@@ -566,12 +565,11 @@ ...@@ -566,12 +565,11 @@
font-size: 32rpx; font-size: 32rpx;
width: 500rpx; width: 500rpx;
height:80rpx ;
font-family: Source Han Sans CN, Source Han Sans CN-Regular; font-family: Source Han Sans CN, Source Han Sans CN-Regular;
font-weight: 400; font-weight: 400;
text-align: left; text-align: left;
color: #666666; color: #666666;
line-height: 50px; line-height: 100rpx;
} }
...@@ -579,12 +577,12 @@ ...@@ -579,12 +577,12 @@
.a-card { .a-card {
font-size: 32rpx; font-size: 32rpx;
line-height: 120rpx;
width: 500rpx; width: 500rpx;
font-family: Source Han Sans CN, Source Han Sans CN-Bold; font-family: Source Han Sans CN, Source Han Sans CN-Bold;
font-weight: 700; font-weight: 700;
text-align: left; text-align: left;
color: #333333; color: #333333;
line-height: 42px;
} }
...@@ -598,7 +596,7 @@ ...@@ -598,7 +596,7 @@
top: 25rpx; top: 25rpx;
width: 152rpx; width: 152rpx;
height: 64rpx; height: 64rpx;
right:20%; right: 20%;
// height: auto; // height: auto;
text-align: center; 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