This commit is contained in:
parent
802ab09de8
commit
b481f1e1d2
|
@ -7,7 +7,7 @@
|
||||||
:fontSize="36"></tn-tabs> -->
|
:fontSize="36"></tn-tabs> -->
|
||||||
<view style="text-align: center;font-size: 36rpx;" @click="selectShow = true">
|
<view style="text-align: center;font-size: 36rpx;" @click="selectShow = true">
|
||||||
<text>{{HomeTitle}}</text>
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view style="padding:10px 30rpx;padding-bottom: 100rpx;">
|
<view style="padding:10px 30rpx;padding-bottom: 100rpx;">
|
||||||
<view v-for="(item,index) in news_list" class="tn-flex tn-flex-row-between"
|
<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;">
|
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;">
|
||||||
<view style="position:relative;">
|
<view style="position:relative;">
|
||||||
<view class="tn-text-ellipsis-2" style="font-size: 28rpx;">{{ item.news_title }}</view>
|
<view class="tn-text-ellipsis-2" style="font-size: 28rpx;">{{ item.news_title }}</view>
|
||||||
|
|
|
@ -40,13 +40,40 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
newsInfo,
|
||||||
|
} from '@/util/api.js';
|
||||||
|
import store from '@/store/index.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
topCurrent: 0
|
topCurrent: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted(d) {
|
||||||
|
console.log(d);
|
||||||
|
},
|
||||||
methods: {
|
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() {
|
goBack() {
|
||||||
if (getCurrentPages().length > 1) {
|
if (getCurrentPages().length > 1) {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
|
|
@ -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 activityList = data => request.post('/move/activity/list', data, false);
|
||||||
export const activityIndex = data => request.post('/move/activity/index', 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 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