|
@ -20,27 +20,29 @@ |
|
|
</view> |
|
|
</view> |
|
|
<!-- 轮播图 --> |
|
|
<!-- 轮播图 --> |
|
|
<!-- #ifdef APP-PLUS --> |
|
|
<!-- #ifdef APP-PLUS --> |
|
|
<u-swiper class="swiper" :list="swiperList" @click="bannerClick" previousMargin="48rpx" nextMargin="80rpx" circular |
|
|
<u-swiper class="swiper" :list="swiperList" @click="bannerClick" previousMargin="48rpx" nextMargin="80rpx" |
|
|
:autoplay="true" radius="32rpx" bgColor="rgba(0,0,0,0)" height="360rpx"> |
|
|
circular :autoplay="true" radius="32rpx" bgColor="rgba(0,0,0,0)" height="360rpx"> |
|
|
<!-- #endif --> |
|
|
<!-- #endif --> |
|
|
<!-- #ifdef H5 --> |
|
|
<!-- #ifdef H5 --> |
|
|
<u-swiper class="swiper" :list="swiperList" @click="bannerClick" previousMargin="48rpx" nextMargin="80rpx" circular |
|
|
<u-swiper class="swiper" :list="swiperList" @click="bannerClick" previousMargin="48rpx" |
|
|
:autoplay="true" radius="32rpx" bgColor="rgba(0,0,0,0)" height="360rpx" style="margin-top: 145rpx;"> |
|
|
nextMargin="80rpx" circular :autoplay="true" radius="32rpx" bgColor="rgba(0,0,0,0)" height="360rpx" |
|
|
|
|
|
style="margin-top: 145rpx;"> |
|
|
<!-- #endif --> |
|
|
<!-- #endif --> |
|
|
</u-swiper> |
|
|
</u-swiper> |
|
|
<!-- 消息 --> |
|
|
<!-- 消息 --> |
|
|
<view class="message" @click="go('/pages/me/notification')"> |
|
|
<view class="message" @click="go('/pages/me/notification')"> |
|
|
<u-icon class="icon" name="../../static/home/ic_proclamation.png" size="60rpx" width="60rpx"></u-icon> |
|
|
<u-icon class="icon" name="../../static/home/ic_proclamation.png" size="60rpx" width="60rpx"> |
|
|
|
|
|
</u-icon> |
|
|
<!-- <view class="text">{{ i18n.homeMessage }}</view> --> |
|
|
<!-- <view class="text">{{ i18n.homeMessage }}</view> --> |
|
|
<u-notice-bar class="notice" :text="messageList" icon="" fontSize="24rpx" bgColor="#211F32" color="#fff" |
|
|
<u-notice-bar class="notice" :text="messageList" icon="" fontSize="24rpx" bgColor="#211F32" |
|
|
direction="column" > |
|
|
color="#fff" direction="column"> |
|
|
</u-notice-bar> |
|
|
</u-notice-bar> |
|
|
</view> |
|
|
</view> |
|
|
<!-- 三个按钮 --> |
|
|
<!-- 三个按钮 --> |
|
|
<view class="btnDiv"> |
|
|
<view class="btnDiv"> |
|
|
<view class="item" @click="goto('recharge')"> |
|
|
<view class="item" @click="goto('recharge')"> |
|
|
<u--image class="img" :showLoading="true" src="../../static/home/img_recharge.png" width="144rpx" |
|
|
<u--image class="img" :showLoading="true" src="../../static/home/img_recharge.png" |
|
|
height="144rpx"></u--image> |
|
|
width="144rpx" height="144rpx"></u--image> |
|
|
<view class="text">{{ i18n.Recharge }}</view> |
|
|
<view class="text">{{ i18n.Recharge }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item" @click="goto('mine')"> |
|
|
<view class="item" @click="goto('mine')"> |
|
@ -49,8 +51,8 @@ |
|
|
<view class="text">{{ i18n.Mine }}</view> |
|
|
<view class="text">{{ i18n.Mine }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item" @click="goto('subcription')"> |
|
|
<view class="item" @click="goto('subcription')"> |
|
|
<u--image class="img" :showLoading="true" src="../../static/home/img_Subcription.png" width="144rpx" |
|
|
<u--image class="img" :showLoading="true" src="../../static/home/img_Subcription.png" |
|
|
height="144rpx"></u--image> |
|
|
width="144rpx" height="144rpx"></u--image> |
|
|
<view class="text">{{ i18n.Subcription }}</view> |
|
|
<view class="text">{{ i18n.Subcription }}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -61,8 +63,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view id="chart" :stepsNum="stepsNum" :stepTarget="stepTarget" :change:stepTarget="echarts.stepTargetReceive" |
|
|
<view id="chart" :stepsNum="stepsNum" :stepTarget="stepTarget" |
|
|
:change:stepsNum="echarts.receive" style="width: 280rpx;height:280rpx; font-size: 40rpx;"> |
|
|
:change:stepTarget="echarts.stepTargetReceive" :change:stepsNum="echarts.receive" |
|
|
|
|
|
style="width: 280rpx;height:280rpx; font-size: 40rpx;"> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -213,9 +216,9 @@ |
|
|
var stepsNum_date = uni.getStorageSync("stepsNum_date"); |
|
|
var stepsNum_date = uni.getStorageSync("stepsNum_date"); |
|
|
|
|
|
|
|
|
var isUpdate = false; |
|
|
var isUpdate = false; |
|
|
console.log(today) |
|
|
// console.log(today) |
|
|
console.log(uni.getStorageSync("stepsNum_date")) |
|
|
// console.log(uni.getStorageSync("stepsNum_date")) |
|
|
console.log(stepsNum_date) |
|
|
// console.log(stepsNum_date) |
|
|
|
|
|
|
|
|
if (stepsNum_date) { |
|
|
if (stepsNum_date) { |
|
|
if (today != stepsNum_date.date) { |
|
|
if (today != stepsNum_date.date) { |
|
@ -278,9 +281,8 @@ |
|
|
closeConfirm() { |
|
|
closeConfirm() { |
|
|
this.$api.receivStepsAward().then(res => { |
|
|
this.$api.receivStepsAward().then(res => { |
|
|
uni.$u.toast(this.$t("markets").Succeeded) |
|
|
uni.$u.toast(this.$t("markets").Succeeded) |
|
|
this.closeModalShow=false |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
this.closeModalShow = false |
|
|
}, |
|
|
}, |
|
|
// 开启计步服务 |
|
|
// 开启计步服务 |
|
|
getSept() { |
|
|
getSept() { |
|
@ -374,10 +376,12 @@ |
|
|
}).then(res => { |
|
|
}).then(res => { |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
this.noticeId = null; |
|
|
|
|
|
this.popupShow = false |
|
|
this.popupShow = false |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.noticeId = null; |
|
|
this.getNoReadNotice() |
|
|
this.getNoReadNotice() |
|
|
console.log(res, '已经读了吗') |
|
|
}, 1500) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
go(url) { |
|
|
go(url) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|