This commit is contained in:
dong_bo0602 2020-08-13 14:45:16 +08:00
parent 9b5f913489
commit ba005bc892
4 changed files with 16 additions and 10 deletions

View File

@ -134,7 +134,7 @@
</view>
</view>
</view>
<!-- <view class="set-phone" wx:if="{{randomName && showPhone}}">
<view class="set-phone" wx:if="{{randomName && showPhone}}">
<view class="set-phone-box">
<view class="tips">您还没有绑定手机号,请先绑定手机号</view>
<view class="phone-input">
@ -149,4 +149,4 @@
<view class="set-phone-btn" bindtap="submitPhone" wx:if="{{!isConfirm}}">确认</view>
</view>
</view>
</view> -->
</view>

View File

@ -57,7 +57,6 @@ Page({
lv = 'area' + lv
info[lv] = self.data.areaId
}
console.log(info)
app.restAjax.get(app.restAjax.path('{newsUrl}/app/newscontent/listpagenewscontentrelease', [self.data.news.newsUrl]), info, null, function(code, data) {
var newsArray;
if(page <= 1) {

View File

@ -11,6 +11,7 @@
<image src="../../images/selected-r.png" class="selected-r"></image>
</view>
</view>
</view>
<view class="area">
<view class="area-box {{'' == areaId?'active': ''}}" bindtap="loadAll">
<image src="../../images/selected-l.png" class="selected-l"></image>
@ -23,7 +24,6 @@
<image src="../../images/selected-r.png" class="selected-r"></image>
</view>
</view>
</view>
<view class="news">
<view wx:for="{{news.newsList}}" wx:for-index="idx" wx:for-item="item" wx:key="newsList">
<view class="news-box" bindtap="goNewsDetail" data-template-record-url="{{item.templateRecordUrl}}" wx:if="{{item.typesettingCode == 'key_1'}}">

View File

@ -3,8 +3,6 @@
top: 0;
left: 0;
right: 0;
box-shadow:0 0 17rpx 0 rgba(0,0,0,0.1);
border-radius:0 0 31rpx 31rpx;
background: #fff;
overflow-x: auto;
}
@ -45,19 +43,28 @@
.area{
overflow-x: auto;
white-space: nowrap;
position: fixed;
top: 90rpx;
left: 0;
right: 0;
border-bottom: 1px solid #DDD;
background: #fff;
}
.area-box{
display: inline-block;
display: inline-flex;
width: 30%;
height: 90rpx;
line-height: 90rpx;
text-align: center;
/* line-height: 90rpx;
text-align: center; */
align-items: center;
justify-content: center;
padding: 0 20px;
box-sizing: border-box;
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 30rpx;
}
.area-box.active{
color: #9F1512;