liudan 1 month ago
parent 527028fbf0
commit ff46de0d22
  1. 2
      components/page/diyComponents/banner/index.vue
  2. 12
      components/page/diyComponents/goods/index.vue
  3. 2
      components/page/diyComponents/search/index.vue
  4. 20
      components/page/diyComponents/video/index.vue
  5. 2
      pages.json
  6. 5
      pages/user/index.vue

@ -102,7 +102,7 @@ export default {
<style lang="scss" scoped>
.diy-banner {
position: relative;
height:360rpx !important;
// swiper
.swiper-box {
height: 100%;

@ -1,6 +1,9 @@
<template>
<!-- 商品组 -->
<view class="diy-goods" :style="{ background: itemStyle.background }">
<view class="title">
热门商品
</view>
<view class="goods-list" :class="[`display__${itemStyle.display}`, `column__${itemStyle.column}`]">
<scroll-view :scroll-x="itemStyle.display === 'slide'">
<view class="goods-item" v-for="(dataItem, index) in dataList" :key="index" @click="onTargetGoods(dataItem.goods_id)">
@ -96,6 +99,7 @@
<style lang="scss" scoped>
.diy-goods {
padding: 0 25rpx !important;
.goods-list {
padding: 4rpx;
box-sizing: border-box;
@ -254,4 +258,12 @@
}
}
}
.title{
font-family: Source Han Sans SC;
font-weight: bold;
font-size: 32rpx;
color: #222222;
padding: 20rpx 0;
}
</style>

@ -52,7 +52,7 @@
height: 60rpx;
background: #fff;
overflow: hidden;
border-radius: 35px;
&.radius {
border-radius: 10rpx;
}

@ -1,6 +1,9 @@
<template>
<!-- 视频组 -->
<view class="diy-video" :style="{ padding: `${itemStyle.paddingTop}px 0` }">
<view class="title">
新品推荐
</view>
<video class="video" :style="{ height: `${itemStyle.height}px` }" :src="params.videoUrl" :poster="params.poster"
:autoplay="params.autoplay == 1" controls></video>
</view>
@ -31,8 +34,21 @@
</script>
<style lang="scss" scoped>
.diy-video .video {
width: 100%;
.diy-video{
display: block;
padding: 0 25rpx !important;
}
.title{
margin-bottom: 20rpx;
margin-top: 25rpx;
font-family: Source Han Sans SC;
font-weight: bold;
font-size: 32rpx;
color: #222222;
}
.video{
border-radius:10px;
width:100%;
}
</style>

@ -13,7 +13,7 @@
"pagePath": "pages/category/index",
"iconPath": "static/tabbar/cate.png",
"selectedIconPath": "static/tabbar/cate-active.png",
"text": "分类"
"text": "商品"
}, {
"pagePath": "pages/cart/index",
"iconPath": "static/tabbar/cart.png",

@ -46,7 +46,7 @@
</view>
<!-- 我的钱包 -->
<view v-if="$checkModules(['market-recharge', 'market-points', 'market-coupon'])" class="my-asset">
<!-- <view v-if="$checkModules(['market-recharge', 'market-points', 'market-coupon'])" class="my-asset">
<view class="asset-left flex-box dis-flex flex-x-around">
<view v-if="$checkModule('market-recharge')" class="asset-left-item" style="max-width: 200rpx;" @click="onTargetWallet">
<view class="item-value dis-flex flex-x-center">
@ -83,7 +83,7 @@
</view>
</view>
</view>
</view>
</view> -->
<!-- 绑定手机号 (第2种样式) -->
<!-- <view class="my-mobile2" @click="handleBindMobile()">
@ -625,6 +625,7 @@
font-size: 30rpx;
border-radius: 5rpx;
background: #fff;
border-radius: 20rpx;
&-item {
position: relative;

Loading…
Cancel
Save