|
|
|
@ -431,7 +431,7 @@ |
|
|
|
|
物流查询 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="serveIcon" @click="goJump('/pages/news3/vipPrice?type=0')" |
|
|
|
|
<!-- <view class="serveIcon" @click="goJump('/pages/news3/vipPrice?type=0')" |
|
|
|
|
v-if="userInfo.user_type == 40"> |
|
|
|
|
<image :src="$picUrl+'/static/user/member.png'" class="icons"></image> |
|
|
|
|
<view class="serveInfo"> |
|
|
|
@ -510,19 +510,29 @@ |
|
|
|
|
会员管理 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="serveIcon" v-if="userInfo.user_type == 40 || userInfo.user_type == 30 || userInfo.user_type == 20" @click="goJump('/pages/news1/jinqun')"> |
|
|
|
|
<view class="serveIcon" |
|
|
|
|
v-if="userInfo.user_type == 40 || userInfo.user_type == 30 || userInfo.user_type == 20" |
|
|
|
|
@click="goJump('/pages/news1/jinqun')"> |
|
|
|
|
<image :src="$picUrl+'/static/user/jq.png'" class="icons"></image> |
|
|
|
|
<view class="serveInfo"> |
|
|
|
|
进群有礼 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- course --> |
|
|
|
|
<view class="serveIcon" v-if="userInfo.user_type == 40" @click="goJump('/pages/merchantTutorial/tutorial')"> |
|
|
|
|
<view class="serveIcon" v-if="userInfo.user_type == 40" |
|
|
|
|
@click="goJump('/pages/merchantTutorial/tutorial')"> |
|
|
|
|
<image :src="$picUrl+'/static/user/course.png'" class="icons"></image> |
|
|
|
|
<view class="serveInfo"> |
|
|
|
|
商家教程 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- v-if="is_show_open_shop_buttun== 10" --> |
|
|
|
|
<view class="serveIcon" @click="goJump('/pages/gamll/index')"> |
|
|
|
|
<image :src="$picUrl+'/static/user/gmall.png?t=1'" class="icons"></image> |
|
|
|
|
<view class="serveInfo"> |
|
|
|
|
开通商城 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 商品推荐 --> |
|
|
|
@ -532,30 +542,29 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="goodsRecommend" v-if="isLogin == false || userInfo.user_type != 40"> |
|
|
|
|
<!-- <u-waterfall v-model="goodsRecommend" ref="uWaterfall1"> --> |
|
|
|
|
<!-- <template v-slot:left="{leftList}"> --> |
|
|
|
|
<view class="goodsItem" v-for="(item,index) in goodsRecommend" @click="goodsDetail(item)" |
|
|
|
|
:key="index"> |
|
|
|
|
<view class="pic"> |
|
|
|
|
<image :src="item.goods_image" mode="aspectFill"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="goodsInfo"> |
|
|
|
|
<view class="title"> |
|
|
|
|
<!-- <text v-if="item.selling_point" class="ziying">{{item.selling_point}}</text> --> |
|
|
|
|
<text class="name">{{item.goods_name}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="price" style="margin-top: 12rpx;"> |
|
|
|
|
<text style="font-size: 26rpx;">¥</text> |
|
|
|
|
<text style="font-weight: bold;font-size: 32rpx;">{{item.goods_price_min}}</text> |
|
|
|
|
<text style="font-size: 20rpx;margin-left:10rpx;"></text> |
|
|
|
|
<text |
|
|
|
|
style="color: #949494;font-size: 22rpx;text-decoration: line-through;">¥{{item.line_price_min}}</text> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="goodsInfo1" v-if="item.cmmdty_model"> |
|
|
|
|
<!-- <template v-slot:left="{leftList}"> --> |
|
|
|
|
<view class="goodsItem" v-for="(item,index) in goodsRecommend" @click="goodsDetail(item)" :key="index"> |
|
|
|
|
<view class="pic"> |
|
|
|
|
<image :src="item.goods_image" mode="aspectFill"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="goodsInfo"> |
|
|
|
|
<view class="title"> |
|
|
|
|
<!-- <text v-if="item.selling_point" class="ziying">{{item.selling_point}}</text> --> |
|
|
|
|
<text class="name">{{item.goods_name}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="price" style="margin-top: 12rpx;"> |
|
|
|
|
<text style="font-size: 26rpx;">¥</text> |
|
|
|
|
<text style="font-weight: bold;font-size: 32rpx;">{{item.goods_price_min}}</text> |
|
|
|
|
<text style="font-size: 20rpx;margin-left:10rpx;"></text> |
|
|
|
|
<text |
|
|
|
|
style="color: #949494;font-size: 22rpx;text-decoration: line-through;">¥{{item.line_price_min}}</text> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="goodsInfo1" v-if="item.cmmdty_model"> |
|
|
|
|
<view class="oneTip"> |
|
|
|
|
{{item.cmmdty_model}} |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<!-- <view class="goodsSend"> |
|
|
|
|
<!-- <view class="goodsSend"> |
|
|
|
|
<view class="sendLeft"> |
|
|
|
|
<view class="left_1"> |
|
|
|
|
{{item.goods_source}} |
|
|
|
@ -574,10 +583,10 @@ |
|
|
|
|
<text v-if="item.delivery_time==6">45天内发货</text> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- </template> --> |
|
|
|
|
<!-- <template v-slot:right="{rightList}"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- </template> --> |
|
|
|
|
<!-- <template v-slot:right="{rightList}"> |
|
|
|
|
<view class="goodsItem" style="margin-right: 0;" v-for="(item,index) in rightList" |
|
|
|
|
@click="goodsDetail(item)" :key="index"> |
|
|
|
|
<view class="pic"> |
|
|
|
@ -658,7 +667,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<canvas id="myCanvas" class="myCanvas" canvas-id="myCanvas" |
|
|
|
|
:style="{'width': 702/devicePixelRatio+'px',' height': 1000/devicePixelRatio+'px',position: 'absolute',left:'-100000px',top:'-100000px'}"></canvas> |
|
|
|
|
<addShuiyin /> |
|
|
|
|
<addShuiyin /> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
@ -728,7 +737,7 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onReachBottom() { |
|
|
|
|
if (!this.recommendFinish) { |
|
|
|
|
if (!this.recommendFinish) { |
|
|
|
|
this.getSuggest() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -878,7 +887,9 @@ |
|
|
|
|
}, |
|
|
|
|
getSuggest() { |
|
|
|
|
// 获取推荐商品 |
|
|
|
|
Api.recommendedNew({ page: this.recommendPage++ }).then(res => { |
|
|
|
|
Api.recommendedNew({ |
|
|
|
|
page: this.recommendPage++ |
|
|
|
|
}).then(res => { |
|
|
|
|
console.log(res); |
|
|
|
|
let arr = res.data.goodsList.data |
|
|
|
|
if (arr && arr.length > 0) { |
|
|
|
@ -888,14 +899,14 @@ |
|
|
|
|
arr[i].line_price_min = Number(arr[i].line_price_min); |
|
|
|
|
arr[i].line_price_max = Number(arr[i].line_price_max) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (arr.length < res.data.goodsList.per_page) { |
|
|
|
|
this.recommendFinish = true; |
|
|
|
|
} |
|
|
|
|
this.recommendLoadTitle = this.recommendFinish ? "已全部加载完" : "上拉加载更多"; |
|
|
|
|
this.recommendLoadTitle = this.recommendFinish ? "已全部加载完" : "上拉加载更多"; |
|
|
|
|
this.goodsRecommend = [...this.goodsRecommend, ...arr] |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
// 刷新页面 |
|
|
|
|
onRefreshPage() { |
|
|
|
@ -1416,8 +1427,8 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.finished { |
|
|
|
|
font-size: 28rpx; |
|
|
|
|
line-height: 100rpx; |
|
|
|
|