|
@@ -2,10 +2,10 @@
|
|
|
<view>
|
|
|
<view class="guess-section-wrap1">
|
|
|
<view class='guess-section-wrap-content'>
|
|
|
- <view style='margin:15px;background:#fff;padding:15px;border-radius:5px;' class='flex justify-between' v-for='(item, index) in newsInfo' :key="index" @click="navToDetailPage(item.id)">
|
|
|
+ <view style='margin:19rpx;background:#fff;padding:15px;border-radius:5px;' class='flex justify-between' v-for='(item, index) in newsInfo' :key="index" @click="navToDetailPage(item.id)">
|
|
|
<view style='margin-right:10px;'>
|
|
|
- <view style='font-size:16px;height:54px;'>{{item.title}}</view>
|
|
|
- <view style='color:#B2B3BB;font-size:12px;'><text style='margin-right:5px;'>{{item.from}}</text>{{item.gmtUpdate}}</view>
|
|
|
+ <view style='font-size:16px;height:54px;' class="Regular">{{item.title}}</view>
|
|
|
+ <view class="Regular" style='color:#B2B3BB;font-size:12px;'><text style='margin-right:5px;'>{{item.from}}</text>{{item.gmtUpdate}}</view>
|
|
|
</view>
|
|
|
<view><image style='width:100px;height:72px;border-radius:5px;' :src='item.titleImg'></image></view>
|
|
|
</view>
|
|
@@ -55,7 +55,8 @@
|
|
|
TabCur: 0,
|
|
|
category:0,
|
|
|
current: 0,
|
|
|
- infoList1:[]
|
|
|
+ infoList1:[],
|
|
|
+ time:""
|
|
|
};
|
|
|
},
|
|
|
onReady() {
|
|
@@ -176,9 +177,11 @@
|
|
|
}).then(res => {
|
|
|
let data = res.data
|
|
|
for(var i=0;i<data.length;i++){
|
|
|
- if(data[i].title.length > 20){
|
|
|
- data[i].title = data[i].title.substring(0,20) + "..."
|
|
|
+ if(data[i].title.length > 25){
|
|
|
+ data[i].title = data[i].title.substring(0,25) + "..."
|
|
|
}
|
|
|
+ let _date = new Date(data[i].gmtUpdate)
|
|
|
+ data[i].gmtUpdate = this.$u.timeFormat(this.timestamp, 'mm-dd hh:MM');
|
|
|
}
|
|
|
that.newsInfo = data
|
|
|
uni.hideLoading()
|