|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="page"> |
|
|
|
|
<view > |
|
|
|
|
<u-navbar is-back="false" title="" :background="background"></u-navbar> |
|
|
|
|
<view> |
|
|
|
|
<u-navbar is-back="false" title="" :background="background"></u-navbar> |
|
|
|
|
</view> |
|
|
|
|
<view class="section_1"> |
|
|
|
|
<view class="box_1"> |
|
|
|
@ -35,7 +35,7 @@ |
|
|
|
|
<text lines="1" class="text_4">分销码</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="plus" v-if="userInfo.user_type!=40&&userInfo.user_type!=10&&userInfo.effective_time" |
|
|
|
|
<view class="plus" v-if="userInfo.user_type!=40&&userInfo.user_type!=10&&userInfo.effective_time" |
|
|
|
|
@click="goMember(userInfo.user_type==20?'hy':'fx')"> |
|
|
|
|
<view class="plusLeft"> |
|
|
|
|
<view class="leftTop"> |
|
|
|
@ -390,13 +390,15 @@ |
|
|
|
|
我要找货 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30"> |
|
|
|
|
<view class="serveIcon" |
|
|
|
|
v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30"> |
|
|
|
|
<image src="/static/user/sj.png" mode="" class="icons"></image> |
|
|
|
|
<view class="serveInfo"> |
|
|
|
|
数据统计 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="serveIcon" v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30"> |
|
|
|
|
<view class="serveIcon" |
|
|
|
|
v-if="userInfo.user_type!=10&&userInfo.user_type!=20&&userInfo.user_type!=30"> |
|
|
|
|
<image src="/static/user/hygl.png" mode="" class="icons"></image> |
|
|
|
|
<view class="serveInfo"> |
|
|
|
|
会员管理 |
|
|
|
@ -418,22 +420,22 @@ |
|
|
|
|
<image src="/static/user/right.png" mode=""></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="goodsList"> |
|
|
|
|
<view class="group_11" v-for="(item,index) in 8" :key="index" @click="goodsDetail(item)"> |
|
|
|
|
<view class="group_11" v-for="(item,index) in suggestGoodsList" :key="index" @click="goodsDetail(item)"> |
|
|
|
|
<view class="block_2"> |
|
|
|
|
<image src="/static/home/phone.jpg" class="image_3"></image> |
|
|
|
|
<image :src="item.goods_image" class="image_3"></image> |
|
|
|
|
<view class="box_6"> |
|
|
|
|
<view class="text-wrapper_4"> |
|
|
|
|
<!-- <view class="text-wrapper_4"> |
|
|
|
|
<text lines="1" class="text_12">自营</text> |
|
|
|
|
</view> |
|
|
|
|
<text lines="1" decode="true" class="text_13">iphone13 绿色 128GB</text> |
|
|
|
|
</view> --> |
|
|
|
|
<text lines="1" decode="true" class="text_13">{{item.goods_name}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="text-wrapper_5"> |
|
|
|
|
<text lines="1" class="text_14">¥</text> |
|
|
|
|
<text lines="1" class="text_15">7599</text> |
|
|
|
|
<text lines="1" class="text_15">{{item.goods_price_min}}</text> |
|
|
|
|
<text lines="1" class="text_16">到手价</text> |
|
|
|
|
<text lines="1" class="text_17">¥7089</text> |
|
|
|
|
<text lines="1" class="text_17">¥{{item.line_price_max}}</text> |
|
|
|
|
</view> |
|
|
|
|
<text lines="1" decode="true" class="text_18">200+条评论 99%好评率</text> |
|
|
|
|
<!-- <text lines="1" decode="true" class="text_18">200+条评论 99%好评率</text> --> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
@ -461,7 +463,8 @@ |
|
|
|
|
import { |
|
|
|
|
checkLogin |
|
|
|
|
} from '@/core/app' |
|
|
|
|
import * as UserApi from '@/api/user' |
|
|
|
|
import * as UserApi from '@/api/user'; |
|
|
|
|
import * as Api from '@/api/goods' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -475,12 +478,23 @@ |
|
|
|
|
userInfo: { |
|
|
|
|
user_type: 40 |
|
|
|
|
}, |
|
|
|
|
suggestGoodsList:[], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShow(options) { |
|
|
|
|
this.onRefreshPage() |
|
|
|
|
this.getSuggest() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getSuggest() { |
|
|
|
|
// 获取推荐商品 |
|
|
|
|
const that = this |
|
|
|
|
Api.recommended() |
|
|
|
|
.then(res => { |
|
|
|
|
that.suggestGoodsList = res.data.goodsList |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// 刷新页面 |
|
|
|
|
onRefreshPage() { |
|
|
|
|
this.isLogin = checkLogin() |
|
|
|
@ -497,7 +511,7 @@ |
|
|
|
|
}) |
|
|
|
|
.then(result => { |
|
|
|
|
that.userInfo = result.data.userInfo |
|
|
|
|
uni.setStorageSync('userInfo',that.userInfo) |
|
|
|
|
uni.setStorageSync('userInfo', that.userInfo) |
|
|
|
|
resolve(that.userInfo) |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
@ -511,14 +525,14 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
toFuwu(type) { |
|
|
|
|
if(!uni.getStorageSync('token')){ |
|
|
|
|
if (!uni.getStorageSync('token')) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/login/index" |
|
|
|
|
}) |
|
|
|
|
return ; |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/news/recycling/orderList?type="+type |
|
|
|
|
url: "/pages/news/recycling/orderList?type=" + type |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
goLogin() { |
|
|
|
@ -582,6 +596,7 @@ |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.section_1 { |
|
|
|
@ -592,6 +607,8 @@ |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
margin: -26rpx 0 0 -60rpx; |
|
|
|
|
background: url('https://www.saas.njrenzhou.com/static/member/head.png') center -44px no-repeat; |
|
|
|
|
background-size: 100% auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1425,6 +1442,9 @@ |
|
|
|
|
text-align: left; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
line-height: 24rpx; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
overflow: hidden; |
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.text-wrapper_5 { |
|
|
|
@ -1450,7 +1470,7 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.text_15 { |
|
|
|
|
width: 86rpx; |
|
|
|
|
// min-width: 86rpx; |
|
|
|
|
height: 50rpx; |
|
|
|
|
overflow-wrap: break-word; |
|
|
|
|
color: rgba(242, 26, 28, 1.000000); |
|
|
|
|