|
|
|
@ -11,7 +11,7 @@ |
|
|
|
<swiper style="height: 100%;" :indicator-dots="false" :autoplay="true" :interval="3000" :duration="1000" :circular="true"> |
|
|
|
<swiper-item v-for="(item, i) in swiperList" :key="i"> |
|
|
|
<navigator style="height: 100%;" class="swiper-item"> |
|
|
|
<img :src="item"></img> |
|
|
|
<img :src="item.uploadPath"></img> |
|
|
|
</navigator> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
@ -28,50 +28,7 @@ |
|
|
|
<tabbar :page="page"></tabbar> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- <view class="my-userinfo-container"> |
|
|
|
<view class="top-box"> |
|
|
|
<image :src="avatarUrl" class="avatar"></image> |
|
|
|
<view class="nickname">{{name}}</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="panel-list"> |
|
|
|
<view class="panel"> |
|
|
|
<view class="panel-body"> |
|
|
|
<view class="panel-item" @click="showMedal()"> |
|
|
|
<text>{{medalNum}}</text> |
|
|
|
<text>勋章</text> |
|
|
|
</view> |
|
|
|
<view class="panel-item"> |
|
|
|
<text>0</text> |
|
|
|
<text>挑战历史</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="panel"> |
|
|
|
<swiper :indicator-dots="false" :autoplay="true" :interval="3000" :duration="1000" :circular="true"> |
|
|
|
<swiper-item v-for="(item, i) in swiperList" :key="i"> |
|
|
|
<navigator class="swiper-item"> |
|
|
|
<image :src="item"></image> |
|
|
|
</navigator> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="panel"> |
|
|
|
<view class="function-list"> |
|
|
|
<view class="panel-list-item" v-for="(item,i) in functionList" :key="i" @click="navClickHandler(item)"> |
|
|
|
<image class="function-img" :src="item.uploadPath"></image> |
|
|
|
<text style="margin-right: 220px;">{{item.name}}</text> |
|
|
|
<uni-icons type="arrowright" size="15"></uni-icons> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<tabbar :page="page"></tabbar> |
|
|
|
</view> --> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
@ -103,6 +60,18 @@ |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.page = "my" |
|
|
|
this.getSwiperList() |
|
|
|
this.getFunctionList() |
|
|
|
this.getMyMedalList() |
|
|
|
this.getChallengeTotal() |
|
|
|
this.getStatus() |
|
|
|
}, |
|
|
|
onPullDownRefresh() { |
|
|
|
this.getSwiperList() |
|
|
|
this.getFunctionList() |
|
|
|
this.getMyMedalList() |
|
|
|
this.getChallengeTotal() |
|
|
|
this.getStatus() |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState('m_user', ['userinfo','userId']) |
|
|
|
@ -163,8 +132,8 @@ |
|
|
|
|
|
|
|
res.data.forEach(item => { |
|
|
|
item.uploadPath = uni.$http.baseUrl + item.uploadPath |
|
|
|
this.swiperList.push(item.uploadPath) |
|
|
|
}) |
|
|
|
this.swiperList = res.data |
|
|
|
// uni.$showMsg('数据请求成功!') |
|
|
|
}, |
|
|
|
async getFunctionList() { |
|
|
|
|