浏览代码

Signed-off-by: liuboyan <632697560@qq.com>
bug

liuboyan 4 年之前
父节点
当前提交
0a0c628a1d
共有 4 个文件被更改,包括 17 次插入8 次删除
  1. 5 6
      pagesGood/shopDetails.vue
  2. 5 0
      pagesMain/entrustList.vue
  3. 7 2
      pagesMain/plantList.vue
  4. 二进制
      static/images/integralBg.jpg

+ 5 - 6
pagesGood/shopDetails.vue

@@ -8,15 +8,15 @@
 			<view class="shop-name">{{shopData.name}}</view>
 			<view class="shop-sell">已售商品{{shopData.soldCount}}</view>
 		</view>
-		<view class="shop-image">
-			<swiper class="swiper" :style="{height: (swiperHeight/2)+'px'}" :indicator-dots="false" :autoplay="true" :interval="3000" :duration="500">
+		<view class="shop-image" :style="{height: (swiperHeight / 2 + 30)+'px'}">
+			<swiper class="swiper" :style="{height: (swiperHeight / 2)+'px'}" :indicator-dots="false" :autoplay="true" :interval="3000" :duration="500">
 				<swiper-item v-for="(item,index) in shopData.storeImgUrl" :key="index">
-					<image :src="item" mode="aspectFill" style="width: 100%;height: 100%;"></image>
+					<image :src="item" mode="aspectFill" style="width: 100%;height: 100%;border-radius: 10px;" :style="{height: (swiperHeight / 2)+'px'}"></image>
 				</swiper-item>
 			</swiper>
 		</view>
 		<view class="shop-tab">
-			<u-tabs :list="tabList" :is-scroll="false" :current="tabIndex" @change="changeTabs" font-size="30" active-color="#52A63A"
+			<u-tabs :list="tabList" :is-scroll="false" :current="tabIndex" @change="changeTabs" font-size="30" active-color="#56a83a"
 			 inactive-color="#666666" :bold="false" height="90" bar-width="80"></u-tabs>
 		</view>
 		<view class="shop-sort" :class="dropShow ? 'visibility-drop' : 'hidden-drop'" v-show="!tabIndex">
@@ -125,7 +125,7 @@
 		onLoad(options) {
 			uni.getSystemInfo({
 				success: (res) => {
-					this.swiperHeight = res.windowWidth
+					this.swiperHeight = res.windowWidth - 30
 				}
 			})
 			this.goodId = options.goodId
@@ -317,7 +317,6 @@
 
 		.shop-image {
 			width: 100%;
-			height: 170px;
 			float: left;
 			box-sizing: border-box;
 			padding: 10px 15px 20px 15px;

+ 5 - 0
pagesMain/entrustList.vue

@@ -104,6 +104,11 @@
 	}
 </script>
 
+<style>
+	page {
+		background-color: #f7f7f7;
+	}
+</style>
 <style lang="less" scoped>
 	page {
 		width: 100%;

+ 7 - 2
pagesMain/plantList.vue

@@ -1,7 +1,7 @@
 <template>
 	<scroll-view class="container" scroll-y="true" @scrolltolower="handleLoadMore()">
-		<view style="padding-top: 20px;background-color: #FFFFFF;" v-if="plantList.length<=0">
-			<u-divider color="#909399" border-color="#909399">没有更多了</u-divider>
+		<view style="padding-top: 20px;background-color: transparent;" v-if="plantList.length<=0">
+			<u-divider color="#909399" border-color="#909399" bg-color="transparent">没有更多了</u-divider>
 		</view>
 		<view class="goods-row" v-for="(item, index) in plantList" :key="index" @click="goToGoodDetail(item)">
 			<image class="goods-img" :src="item.imgPath"></image>
@@ -91,6 +91,11 @@
 	}
 </script>
 
+<style>
+	page {
+		background-color: #f7f7f7;
+	}
+</style>
 <style lang="less" scoped>
 	page {
 		width: 100%;

二进制
static/images/integralBg.jpg