Browse Source

上传

hfll
前端-胡立永 1 month ago
parent
commit
20e2e0578a
3 changed files with 29 additions and 17 deletions
  1. +7
    -4
      pages/index/center.vue
  2. +21
    -12
      pages/index/index.vue
  3. +1
    -1
      pages_order/product/productDetail.vue

+ 7
- 4
pages/index/center.vue View File

@ -45,10 +45,10 @@
</view>
</view>
</view>
<!-- 会员卡片 -->
<view @click="$utils.navigateTo({url : '/pages_order/mine/memberCenter' })"
v-if="userInfo.role"
v-if="userInfo.role != 0"
class="earnings">
<view v-if="index + 1 == userInfo.role" v-for="(item,index) in vipList" :key="item.id" class="member-item">
<image :src="item.headImage" mode="aspectFill" class="member-image"></image>
@ -68,7 +68,8 @@
<!-- 佣金数据 -->
<view @click="$utils.navigateTo('/pages_order/mine/withdraw')" class="brokerage-data"
:class="{'brokerage-data-mt' : !userInfo.role}">
>
<!-- :class="{'brokerage-data-mt' : userInfo.role == 0}" -->
<view class="brokerage">
<image :src="configList.money_image" mode="aspectFill" class="brokerage-img"></image>
@ -201,7 +202,9 @@
vipImage: ['vip_vip', 'vip_user', 'vip_shop'],
vipList: [],
showAdvertising: true,
userRole: ['会员', '用户', '渠道']
userRole: ['会员', '用户', '渠道'],
indicatorDots: true,
duration: 500
}
},
onShow() {


+ 21
- 12
pages/index/index.vue View File

@ -69,13 +69,20 @@
视频
</view>
<view v-if="configList.index_vo" class="video-item">
<video :src="configList.index_vo" object-fit="cover" @error="videoErrorCallback" :danmu-list="danmuList"
controls class="product-video"></video>
<video
:src="configList.index_vo"
object-fit="cover"
@error="videoErrorCallback"
:danmu-list="danmuList"
controls class="product-video"></video>
</view>
<!-- 推荐 -->
<view class="recommend">
<view class="recommend-title">推荐宝贝</view>
<view class="recommend-title">
<view class="line"></view>
推荐宝贝
</view>
<view @click="$utils.navigateTo('/pages/index/category')"
class="recommend-more">更多</view>
</view>
@ -401,14 +408,13 @@
padding: 20rpx;
background: white;
font-size: 34rpx;
.line {
height: 40rpx;
width: 10rpx;
background: $uni-color;
border-radius: 5rpx;
margin-right: 10rpx;
}
}
.line {
height: 40rpx;
width: 10rpx;
background: $uni-color;
border-radius: 5rpx;
margin-right: 10rpx;
}
.video-item {
@ -420,6 +426,7 @@
.product-video {
border-radius: 20rpx;
width: calc(710rpx);
height: 320rpx;
}
}
@ -433,7 +440,9 @@
padding: 20rpx;
.recommend-title {
font-size: 36rpx;
font-size: 34rpx;
display: flex;
align-items: center;
}
.recommend-more {


+ 1
- 1
pages_order/product/productDetail.vue View File

@ -5,7 +5,7 @@
<view class="swipe">
<uv-swiper :list="productDetail.image
&& productDetail.image.split(',')" indicator height="680rpx"></uv-swiper>
&& productDetail.image.split(',')" indicator height="750rpx"></uv-swiper>
</view>
<!-- 商品标题 -->


Loading…
Cancel
Save