瀏覽代碼

修改样式问题

liguorui 7 年之前
父節點
當前提交
fb9ff15e9f

+ 3 - 0
pages/index/goodcar.wxml

@@ -19,6 +19,9 @@
       <block wx:for="{{goodcars}}" wx:key="key">
         <swiper-item>
           <view class="goodcar_item">
+            <block wx:for="{{item.labels}}" wx:for-item="good" wx:key="{{index}}">
+              <view class="goodcar_item_label">{{good}}</view>
+            </block>
             {{item.title}}
           </view>
         </swiper-item>

+ 3 - 0
pages/index/index.js

@@ -56,6 +56,9 @@ Page({
       limit:3
     }, function (json) {
       var list = json.data.list;
+      list.forEach(function(item){
+        item.labels = ["精选"]
+      })
       if(list.length==1){
         list = list.concat(list,list);
       }

+ 13 - 0
pages/index/index.wxss

@@ -98,6 +98,19 @@
   height: 49rpx;
   line-height: 49rpx;
   font-size: 24rpx;
+  vertical-align: middle;
+}
+.goodcar_item_label{
+  display: inline-block;
+  padding: 0rpx 5rpx;
+  line-height: 22rpx;
+  height: 22rpx;
+  border-radius: 2rpx;
+  background-color: #FFE600;
+  color: rgba(56, 55, 53, 1);
+  font-size: 16rpx;
+  text-align: center;
+  font-family: PingFangSC-Light;
 }
 /*******brand*********/
 .brand{

+ 1 - 1
pages/usercenter/usercenter.wxss

@@ -6,9 +6,9 @@
 }
 .usercenter_top_b{
 	width: 750rpx;
-	height: 398rpx;
 	background:linear-gradient(270deg,#FFD800,#FFE600);
 	overflow: hidden;
+	padding-bottom: 20rpx;
 }
 .usercenter_top_w{
 	margin-top: 55px;

+ 0 - 15
recycle/logs/logs.js

@@ -1,15 +0,0 @@
-//logs.js
-const util = require('../../utils/util.js')
-
-Page({
-  data: {
-    logs: []
-  },
-  onLoad: function () {
-    this.setData({
-      logs: (wx.getStorageSync('logs') || []).map(log => {
-        return util.formatTime(new Date(log))
-      })
-    })
-  }
-})

+ 0 - 5
recycle/logs/logs.json

@@ -1,5 +0,0 @@
-{
-  	"usingComponents":{
-		"page-scroll":"../../components/page-scroll/page-scroll"
-	}
-}

+ 0 - 8
recycle/logs/logs.wxml

@@ -1,8 +0,0 @@
-<!--logs.wxml-->
-<view class="container">
-	<view class="logs_back">
-		
-	</view>
-	<view class="logs_c">
-	</view>
-</view>

+ 0 - 8
recycle/logs/logs.wxss

@@ -1,8 +0,0 @@
-.log-list {
-  display: flex;
-  flex-direction: column;
-  padding: 40rpx;
-}
-.log-item {
-  margin: 10rpx;
-}

+ 0 - 80
recycle/search/search.js

@@ -1,80 +0,0 @@
-// pages/search/search.js
-Page({
-
-  /**
-   * 页面的初始数据
-   */
-  data: {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad: function (options) {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload: function () {
-  
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh: function () {
-  
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom: function () {
-  
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage: function () {
-  
-  },
-  inputSearch:function(e){
-    var word = e.detail.value;
-    if(word){
-      this.linkToSearch(word);
-    }
-  },
-  tapHot:function(e){
-    var word = e.target.dataset.val;
-    this.linkToSearch(word);
-  },
-  linkToSearch:function(word){
-    wx.navigateTo({url:`../searchresult/searchresult?value=${word}`});
-  }
-
-})

+ 0 - 5
recycle/search/search.json

@@ -1,5 +0,0 @@
-{
-  	"usingComponents":{
-		"page-scroll":"../../components/page-scroll/page-scroll"
-	}
-}

+ 0 - 56
recycle/search/search.wxml

@@ -1,56 +0,0 @@
-<!--pages/search/search.wxml-->
-<import src="../../module/header.wxml"/>
-<view class="content">
-  <template 
-    is="header" 
-    data="{{title:'第一好车',hasback:true}}"
-  />
-  <view class="search">
-    <view 
-      class="search_input_b"  
-    >
-      <image
-        class="search_input_ic"
-        src="../../img/search.png"
-      />
-      <input 
-        class="search_input"  
-        placeholder-class="search_input_holder"
-        placeholder="搜索"
-        confirm-type="搜索"
-        bindblur="inputSearch"
-      />
-    </view>
-    <navigator
-      class='cancle_search'
-      open-type='navigateBack'
-    >
-      取消
-    </navigator>
-  </view>
-  <view class="hot_search">
-    <view class="hot_search_t">
-      热门搜索
-    </view>
-    <view class="hot_search_w" bindtap="tapHot">
-      <view  class="hot_search_i" data-val = "玛莎拉蒂">
-        玛莎拉蒂
-      </view>
-      <view  class="hot_search_i" data-val = "劳斯莱斯">
-        劳斯莱斯
-      </view>
-      <view  class="hot_search_i" data-val = "宾利">
-        宾利
-      </view>
-      <view  class="hot_search_i" data-val = "法拉利">
-        法拉利
-      </view>
-      <view  class="hot_search_i" data-val = "兰博基尼">
-        兰博基尼
-      </view>
-      <view  class="hot_search_i" data-val = "布加迪">
-        布加迪
-      </view>
-    </view>
-  </view>
-</view>

+ 0 - 75
recycle/search/search.wxss

@@ -1,75 +0,0 @@
-/* pages/search/search.wxss */
-.content{
-
-}
-.search{
-  display: block;
-  height: 78rpx;
-  background: #fede18;
-}
-.search_input_b{
-  display: inline-block;
-  height: 52rpx;
-  width:600rpx;
-  margin-left:38rpx;
-  background: white;
-  border-radius: 10rpx;
-  line-height: 52rpx;
-  font-size: 24rpx;
-  position: relative;
-}
-.search_input_ic{
-  width:22rpx;
-  height:22rpx;
-  position: absolute;
-  top:15rpx;
-  left:30rpx;
-}
-.search_input{
-  margin-left:70rpx;
-}
-.search_input_holder{
-  color: rgba(183, 183, 183, 1);
-}
-.cancle_search{
-  float:right;
-  margin-right: 26rpx;
-  height: 52rpx;
-  line-height: 52rpx;
-  color: rgba(56, 55, 53, 1);
-  font-size: 26rpx;
-  font-family: NotoSansHans-DemiLight;
-}
-
-/*************hotsearch**************/
-.hot_search{
-  margin-top: 30px;
-}
-.hot_search_t{
-  text-indent: 38rpx;
-  height: 33rpx;
-  line-height: 33rpx;
-  color: rgba(56, 55, 53, 1);
-  font-size: 22rpx;
-}
-.hot_search_w{
-  width:702rpx;
-  margin-left:18rpx;
-  display: flex;
-  flex-wrap:wrap;
-}
-.hot_search_i{
-  display: block;
-  width:142rpx;
-  height: 52rpx;
-  margin-top:30rpx;
-  margin-left:28rpx;
-  border-radius: 6rpx;
-  border: 1px solid rgba(235, 235, 235, 1);
-  line-height: 52rpx;
-  color: rgba(56, 55, 53, 1);
-  font-size: 24rpx;
-  text-align: center;
-  font-family: NotoSansHans-Regular;
-
-}

+ 0 - 66
recycle/searchresult/searchresult.js

@@ -1,66 +0,0 @@
-// pages/searchresult/searchresult.js
-Page({
-
-  /**
-   * 页面的初始数据
-   */
-  data: {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面加载
-   */
-  onLoad: function (options) {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面初次渲染完成
-   */
-  onReady: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onShow: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面隐藏
-   */
-  onHide: function () {
-  
-  },
-
-  /**
-   * 生命周期函数--监听页面卸载
-   */
-  onUnload: function () {
-  
-  },
-
-  /**
-   * 页面相关事件处理函数--监听用户下拉动作
-   */
-  onPullDownRefresh: function () {
-  
-  },
-
-  /**
-   * 页面上拉触底事件的处理函数
-   */
-  onReachBottom: function () {
-  
-  },
-
-  /**
-   * 用户点击右上角分享
-   */
-  onShareAppMessage: function () {
-  
-  }
-})

+ 0 - 5
recycle/searchresult/searchresult.json

@@ -1,5 +0,0 @@
-{
-  	"usingComponents":{
-		"page-scroll":"../../components/page-scroll/page-scroll"
-	}
-}

+ 0 - 2
recycle/searchresult/searchresult.wxml

@@ -1,2 +0,0 @@
-<!--pages/searchresult/searchresult.wxml-->
-<text>pages/searchresult/searchresult.wxml</text>

+ 0 - 1
recycle/searchresult/searchresult.wxss

@@ -1 +0,0 @@
-/* pages/searchresult/searchresult.wxss */