|
@@ -15,13 +15,13 @@
|
|
|
<view class="swiper-box">
|
|
|
<u-swiper :list="swiperList" indicator indicatorMode="line" height="280rpx" circular></u-swiper>
|
|
|
</view>
|
|
|
- <!-- <view class="flex noteBox">
|
|
|
+ <view class="flex noteBox" @click="openurl('/pages/index/notice')">
|
|
|
<view class="flex_item noteTpl">
|
|
|
<image src="/static/image/img04.png" style="width: 42rpx;height: 34rpx;" mode="widthFix"></image>
|
|
|
- <view class="clamp textTpl">上线活动的公告等等公告内容上线活动的公告等等公告内容等上线活动的公告等等公告内容等</view>
|
|
|
+ <view class="clamp textTpl">{{noticeList.title}}</view>
|
|
|
</view>
|
|
|
- <view class="tip"></view>
|
|
|
- </view> -->
|
|
|
+ <!-- <view class="tip"></view> -->
|
|
|
+ </view>
|
|
|
<view class="flex navList">
|
|
|
<view class="navTpl" @click="openurl('/pages/index/recharge')">
|
|
|
<image src="/static/image/img06.png" style="width: 123rpx;height: 73rpx;" mode="widthFix"></image>
|
|
@@ -143,6 +143,7 @@
|
|
|
saveUrl,
|
|
|
interceptor
|
|
|
} from '@/utils/loginUtils.js';
|
|
|
+ import { getArtList} from '@/api/notice.js';
|
|
|
import {
|
|
|
mapState,
|
|
|
mapActions,
|
|
@@ -158,7 +159,8 @@
|
|
|
baseData:{
|
|
|
ok_price:0,
|
|
|
us_price:0
|
|
|
- }
|
|
|
+ },
|
|
|
+ noticeList:''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -194,11 +196,19 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.loadData();
|
|
|
+ this.getNotice()
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions({
|
|
|
setLang: "setLang",
|
|
|
}),
|
|
|
+ getNotice(){
|
|
|
+ let obj = this;
|
|
|
+ getArtList('1').then(function(e) {
|
|
|
+ obj.noticeList = e.data[0]
|
|
|
+ console.log(obj.noticeList,'obj.noticeList');
|
|
|
+ })
|
|
|
+ },
|
|
|
openurl(url){
|
|
|
if(!this.hasLogin){
|
|
|
saveUrl();
|