作者 朱振飞

修改项目细节

@@ -211,7 +211,7 @@ page { @@ -211,7 +211,7 @@ page {
211 width: 16rpx; 211 width: 16rpx;
212 height: 16rpx; 212 height: 16rpx;
213 border-radius: 50%; 213 border-radius: 50%;
214 - margin-right: 26rpx; 214 + margin: 0 14rpx;
215 background-color: #b9c0f7; 215 background-color: #b9c0f7;
216 } 216 }
217 217
1 .content{ 1 .content{
2 - padding: 32rpx; 2 + padding:32rpx 46rpx;
  3 + text-align: justify;
3 color: #333; 4 color: #333;
4 - font-size:20rpx 30rpx  
5 } 5 }
@@ -50,15 +50,12 @@ Page({ @@ -50,15 +50,12 @@ Page({
50 }) 50 })
51 51
52 if(r.length==0){ 52 if(r.length==0){
53 - console.log(73478)  
54 that.setData({ 53 that.setData({
55 - top:'100rpx' 54 + top:'50px'
56 }) 55 })
57 }else{ 56 }else{
58 - console.log(345)  
59 -  
60 that.setData({ 57 that.setData({
61 - top:'390rpx' 58 + top:'195px'
62 }) 59 })
63 } 60 }
64 }) 61 })
1 <!--pages/attract/attract.wxml--> 1 <!--pages/attract/attract.wxml-->
2 <view class='top_view'> 2 <view class='top_view'>
3 - <!-- <view class='top_banner'>  
4 - <image src='{{banner}}' width='100%' mode='widthFix' bindtap='bannerDetail' id='1'></image>  
5 -</view> -->  
6 3
7 <view class="swiper_image" wx:if="{{imgUrls.length!=0}}"> 4 <view class="swiper_image" wx:if="{{imgUrls.length!=0}}">
8 - <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange"> 5 + <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" >
9 <block wx:for="{{imgUrls}}" wx:key="doct"> 6 <block wx:for="{{imgUrls}}" wx:key="doct">
10 <swiper-item style="border-radius:10px;" > 7 <swiper-item style="border-radius:10px;" >
11 <image src="{{item.image}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150" data-src="{{item.url}}" data-id="{{item.id}}" bindtap='bannerDetail' data-title="{{item.title}}" data-content="{{item.content}}"/> 8 <image src="{{item.image}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150" data-src="{{item.url}}" data-id="{{item.id}}" bindtap='bannerDetail' data-title="{{item.title}}" data-content="{{item.content}}"/>
@@ -188,7 +188,7 @@ page{ @@ -188,7 +188,7 @@ page{
188 width: 16rpx; 188 width: 16rpx;
189 height: 16rpx; 189 height: 16rpx;
190 border-radius: 50%; 190 border-radius: 50%;
191 - margin-right: 26rpx; 191 + margin: 0 14rpx;
192 background-color: #b9c0f7; 192 background-color: #b9c0f7;
193 } 193 }
194 194
@@ -51,7 +51,8 @@ Page({ @@ -51,7 +51,8 @@ Page({
51 t.data.followList.splice(indx, 1); 51 t.data.followList.splice(indx, 1);
52 setTimeout(() => { 52 setTimeout(() => {
53 t.setData({ 53 t.setData({
54 - followList: t.data.followList 54 + followList: t.data.followList,
  55 + ifData: t.data.followList.length > 0 ? true : false,
55 }) 56 })
56 }, 1200) 57 }, 1200)
57 }) 58 })