|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="content">
|
|
|
- <div class="swiper-box" style="width: 100%">
|
|
|
+ <view class="swiper-box" style="width: 100%">
|
|
|
<swiper
|
|
|
class="swiper"
|
|
|
indicator-dots="true"
|
|
|
@@ -16,15 +16,15 @@
|
|
|
></image>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
- </div>
|
|
|
- <div class="input-box">
|
|
|
+ </view>
|
|
|
+ <view class="input-box">
|
|
|
<image src="/static/policy/u377.png" alt="" />
|
|
|
<input type="text" placeholder="请输入政策关键词搜索" />
|
|
|
- </div>
|
|
|
- <div class="policy-box">
|
|
|
- <div class="policy-title"><p>最新政策</p></div>
|
|
|
- <div class="policy-item-box">
|
|
|
- <div
|
|
|
+ </view>
|
|
|
+ <view class="policy-box">
|
|
|
+ <view class="policy-title"><p>最新政策</p></view>
|
|
|
+ <view class="policy-item-box">
|
|
|
+ <view
|
|
|
v-for="(item, idx) in policyList"
|
|
|
:key="idx"
|
|
|
:class="{ active: active === idx }"
|
|
|
@@ -32,28 +32,29 @@
|
|
|
@click="active = idx"
|
|
|
>
|
|
|
{{ item }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="policy-content">
|
|
|
- <div
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="policy-content">
|
|
|
+ <view
|
|
|
class="policy-content-item"
|
|
|
v-for="(item, idx) in policyData"
|
|
|
:key="idx"
|
|
|
+ @click="enterPolicyDeatil(item)"
|
|
|
>
|
|
|
- <div class="policy-content-item-left">
|
|
|
+ <view class="policy-content-item-left">
|
|
|
<p class="policy-content-item-left-title">{{ item.title }}</p>
|
|
|
- <div class="policy-content-item-left-time">
|
|
|
+ <view class="policy-content-item-left-time">
|
|
|
<p class="moment">{{ item.moment }}</p>
|
|
|
<p class="maxMony">{{ item.maxMony }}</p>
|
|
|
<p class="leftDay">{{ item.leftDay }}</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="policy-content-item-img">
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="policy-content-item-img">
|
|
|
<image :src="item.img" alt="" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -82,7 +83,17 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
onLoad() {},
|
|
|
- methods: {},
|
|
|
+ methods: {
|
|
|
+ enterPolicyDeatil(data) {
|
|
|
+ let id = { data };
|
|
|
+ if (!id) {
|
|
|
+ id = "ILoveYou";
|
|
|
+ }
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/policy/policy_deatil?id=" + id,
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
@@ -131,7 +142,7 @@ export default {
|
|
|
height: 70rpx;
|
|
|
color: #ffffff;
|
|
|
border-radius: 0 40rpx 40rpx 0rpx;
|
|
|
- font-size: 30rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
@@ -145,6 +156,7 @@ export default {
|
|
|
|
|
|
.policy-item-name {
|
|
|
padding-bottom: 10rpx;
|
|
|
+ font-size: 27rpx;
|
|
|
}
|
|
|
.active {
|
|
|
font-weight: 600;
|
|
|
@@ -154,15 +166,16 @@ export default {
|
|
|
.policy-content {
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
-
|
|
|
box-sizing: border-box;
|
|
|
flex-direction: column;
|
|
|
.policy-content-item {
|
|
|
margin: 0 20rpx;
|
|
|
display: flex;
|
|
|
- border-bottom: 1px solid #c1c1c1;
|
|
|
+ box-shadow: 0px 4rpx 32rpx rgba(0, 0, 0, 0.1);
|
|
|
+ border-radius: 32rpx;
|
|
|
padding-bottom: 10rpx;
|
|
|
margin-top: 20rpx;
|
|
|
+ padding: 30rpx;
|
|
|
justify-content: space-between;
|
|
|
.policy-content-item-left {
|
|
|
display: flex;
|
|
|
@@ -176,7 +189,7 @@ export default {
|
|
|
-webkit-line-clamp: 2;
|
|
|
line-clamp: 2;
|
|
|
-webkit-box-orient: vertical;
|
|
|
- font-size: 28rpx;
|
|
|
+ font-size: 25rpx;
|
|
|
margin-bottom: 10rpx;
|
|
|
}
|
|
|
.policy-content-item-left-time {
|
|
|
@@ -194,6 +207,7 @@ export default {
|
|
|
border: 1px solid #00bfbf;
|
|
|
padding: 10rpx;
|
|
|
margin-right: 20rpx;
|
|
|
+ border-radius: 12rpx;
|
|
|
}
|
|
|
.leftDay {
|
|
|
font-size: 20rpx;
|
|
|
@@ -201,6 +215,7 @@ export default {
|
|
|
color: #e32579;
|
|
|
padding: 10rpx;
|
|
|
border: 1px solid #f7bbc3;
|
|
|
+ border-radius: 12rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -208,6 +223,7 @@ export default {
|
|
|
image {
|
|
|
width: 180rpx;
|
|
|
height: 120rpx;
|
|
|
+ border-radius: 12rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|