|
|
@@ -7,7 +7,8 @@
|
|
|
<view class="user_info flex_c flex_jc">
|
|
|
<view class="user_name">{{ userinfo.nickname }}</view>
|
|
|
<view class="level_con flex_r flex_ac">
|
|
|
- <view class="level">{{ userinfo.level_name }}</view>
|
|
|
+ <!-- <image src="@/static/my/huangguan.png" class="live_ico" /> -->
|
|
|
+ <view class="level">{{ typeto(localInfo.level_id) }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -36,6 +37,16 @@
|
|
|
</view>
|
|
|
<!-- 签到信息-end -->
|
|
|
</view>
|
|
|
+ <!-- 天天捡漏-start -->
|
|
|
+ <view class="pick">
|
|
|
+ <image
|
|
|
+ class="pick_img"
|
|
|
+ mode="widthFix"
|
|
|
+ :src="pick.image"
|
|
|
+ @click="goto('/pages/product/productRetail', { type: pick.type })"
|
|
|
+ ></image>
|
|
|
+ </view>
|
|
|
+ <!-- 天天捡漏-end -->
|
|
|
<!-- 精品推荐 -->
|
|
|
<view class="bou_head flex_r flex_ac flex_jc">
|
|
|
<image class="bou_img" src="/static/sgin/left.png" mode=""></image>
|
|
|
@@ -94,12 +105,16 @@ export default {
|
|
|
totalSign: 0, //累计签到数
|
|
|
nextSign: 0, //剩余签到时间 秒
|
|
|
canClick: true,
|
|
|
+ localInfo: {},
|
|
|
+ pick: {}, // 天天捡漏
|
|
|
};
|
|
|
},
|
|
|
- onShow() {
|
|
|
+ async onShow() {
|
|
|
this.userinfo = uni.getStorageSync("userinfo");
|
|
|
this.loadData();
|
|
|
this.goodsDay();
|
|
|
+ this.getPick();
|
|
|
+ this.localInfo = await uni.Luserfun()
|
|
|
},
|
|
|
onLoad(da) {},
|
|
|
onHide() {},
|
|
|
@@ -129,7 +144,27 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ // 天天捡漏
|
|
|
+ getPick() {
|
|
|
+ post("v1/goods/simple").then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.pick = res.data.data
|
|
|
+ } else {
|
|
|
+ this.$toast(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ typeto(va) {
|
|
|
+ switch (va) {
|
|
|
+ case 1: return "消费商";
|
|
|
+ case 2: return "链接大使";
|
|
|
+ case 3: return "合伙人";
|
|
|
+ case 4: return "联合创始人";
|
|
|
+ case 5: return "联合发起人";
|
|
|
+ default:
|
|
|
+ return ""
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取消费金电商
|
|
|
goodsDay() {
|
|
|
let that = this;
|
|
|
@@ -203,12 +238,18 @@ page {
|
|
|
border-radius: 50%;
|
|
|
}
|
|
|
|
|
|
-.level {
|
|
|
+.level_con {
|
|
|
background: rgba(0, 0, 0, 0.18);
|
|
|
padding: 6rpx 24rpx;
|
|
|
font-size: 24rpx;
|
|
|
color: #fff;
|
|
|
border-radius: 100rpx;
|
|
|
+
|
|
|
+ .live_ico {
|
|
|
+ width: 26rpx;
|
|
|
+ height: 26rpx;
|
|
|
+ margin-right: 6rpx;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.user_name {
|
|
|
@@ -356,12 +397,21 @@ page {
|
|
|
}
|
|
|
|
|
|
// 动画效果-end
|
|
|
-
|
|
|
+// 天天捡漏-start
|
|
|
+.pick{
|
|
|
+ padding: 0 30rpx;
|
|
|
+
|
|
|
+ &_img{
|
|
|
+ width: 100%;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ }
|
|
|
+}
|
|
|
+// 天天捡漏-end
|
|
|
// 精彩推荐
|
|
|
.bou_head {
|
|
|
width: 100%;
|
|
|
height: 114rpx;
|
|
|
- margin-top: 50rpx;
|
|
|
+ margin-top: 10rpx;
|
|
|
|
|
|
.bou_img {
|
|
|
width: 92rpx;
|
|
|
@@ -479,4 +529,5 @@ page {
|
|
|
padding: 0 16rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</style>
|