This commit is contained in:
parent
802ab09de8
commit
b481f1e1d2
|
@ -7,7 +7,7 @@
|
|||
:fontSize="36"></tn-tabs> -->
|
||||
<view style="text-align: center;font-size: 36rpx;" @click="selectShow = true">
|
||||
<text>{{HomeTitle}}</text>
|
||||
<text class="tn-icon-sequence"></text>
|
||||
<image src="/static/c1455.png" style="width: 25rpx;height: 25rpx;margin-left: 10rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -127,7 +127,7 @@
|
|||
</view>
|
||||
<view style="padding:10px 30rpx;padding-bottom: 100rpx;">
|
||||
<view v-for="(item,index) in news_list" class="tn-flex tn-flex-row-between"
|
||||
@click="openUrl('/pages/index/new_info')"
|
||||
@click="openUrl('/pages/index/new_info?id='+item.id)"
|
||||
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;">
|
||||
<view style="position:relative;">
|
||||
<view class="tn-text-ellipsis-2" style="font-size: 28rpx;">{{ item.news_title }}</view>
|
||||
|
|
|
@ -40,13 +40,40 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
newsInfo,
|
||||
} from '@/util/api.js';
|
||||
import store from '@/store/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0
|
||||
}
|
||||
},
|
||||
mounted(d) {
|
||||
console.log(d);
|
||||
},
|
||||
methods: {
|
||||
getNewsInfo() {
|
||||
activityIndex({
|
||||
association_id: store.state.Gid,
|
||||
news_id: this.content
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.actList.push(...res.data.ret);
|
||||
} else {
|
||||
this.load_status = 'nomore';
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
uni.navigateBack()
|
||||
|
@ -63,4 +90,4 @@
|
|||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -4,3 +4,4 @@ export const newsList = data => request.post('/move/news/index', data, false);
|
|||
export const activityList = data => request.post('/move/activity/list', data, false);
|
||||
export const activityIndex = data => request.post('/move/activity/index', data, false);
|
||||
export const associationIndex = data => request.post('/move/association/index', data, false);
|
||||
export const newsInfo = data => request.post('/api/news/find', data, false);
|
Loading…
Reference in New Issue