[本时生活H5]
This commit is contained in:
@@ -33,14 +33,14 @@
|
||||
<view class="userItem-label-number">
|
||||
<block v-if="isUser">
|
||||
<image class="userItem-label-img" src="@/static/img/giftPack-img04.png" mode="widthFix"></image>
|
||||
<block v-if="userData.gold"><text>{{userData.gold.overdue ? userData.gold.overdue : '0'}}</text></block>
|
||||
<block v-if="userData.gold"><text>{{blockeds ? blockeds : '0'}}</text></block>
|
||||
</block>
|
||||
<block v-else>
|
||||
<image class="userItem-label-img" src="@/static/img/giftPack-img03.png" mode="widthFix"></image>
|
||||
<text>0</text>
|
||||
</block>
|
||||
</view>
|
||||
<view class="userItem-label-text">已过期</view>
|
||||
<view class="userItem-label-text">待发放 <navigator :url="'/pages/giftPack/logsFrozen?type=gold' + '&blockeds=' + blockeds">查看明细></navigator></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="userList" @click="userNav('/pages/giftPack/logs')">
|
||||
@@ -65,6 +65,13 @@
|
||||
<image class="userCoupon-arrow" src="@/static/icon/rightsArrow.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="userCoupon" @click="userNav('/pages/giftPack/superRed')">
|
||||
<image class="userCoupon-img" src="@/static/img/giftPack-img10.png" mode="widthFix"></image>
|
||||
<view class="userCoupon-cont">
|
||||
<view class="userCoupon-name">领取消费金</view>
|
||||
<image class="userCoupon-arrow" src="@/static/icon/rightsArrow.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="userTool">
|
||||
<view class="userTool-title">
|
||||
@@ -107,11 +114,14 @@
|
||||
|
||||
<script>
|
||||
import { index } from '@/apis/interfaces/user'
|
||||
import { logs } from '@/apis/interfaces/giftPack'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isUser : false, // 用户是否登录
|
||||
userData: '', //用户
|
||||
screenChannel: '', //账变记录筛选数组标识
|
||||
blockeds : ''
|
||||
}
|
||||
},
|
||||
|
||||
@@ -127,8 +137,10 @@
|
||||
this.isUser = true
|
||||
// 获取用户接口
|
||||
this.userInfo();
|
||||
|
||||
// 获取首页数据
|
||||
this.accountInfo();
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 用户接口
|
||||
@@ -154,6 +166,19 @@
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 账变记录
|
||||
accountInfo(page) {
|
||||
logs({
|
||||
type : 'gold',
|
||||
page : page || '',
|
||||
channel : this.screenChannel
|
||||
}).then(res=>{
|
||||
this.blockeds = res.blockeds
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 处理未登录时的转跳
|
||||
userNav(url){
|
||||
let pageUrl = url
|
||||
|
||||
Reference in New Issue
Block a user