Browse Source

修改分享

liguorui 6 years ago
parent
commit
7bdcbfff8a

+ 1 - 1
common/share.js

@@ -2,7 +2,7 @@ export default {
   onShareAppMessage: function(){
     return {
       title: '买高端车认准第一好车',
-      //imageUrl: "",
+      imageUrl: "../../img/share.jpg",
       success: (res) => {
         wx.showToast({
           title:"转发成功!"

+ 1 - 0
common/stylemap.js

@@ -29,6 +29,7 @@ export default {
 	"windowh": windowstyle.windowh,
 	"windowHeight": windowstyle.windowHeight,
 	"pxscale":windowstyle.pxscale,
+    "scale":windowstyle.scale,
 	"headerheight":headerheight,
 	"topsearchheight":78,
 	"footerheight":app.globalData.isIpx?140:98,

BIN
img/share.jpg


+ 3 - 2
module/logs/logs.wxml

@@ -13,9 +13,10 @@
 	</view>
 	<input 
 		class="logs_phone_num"
-		type="text"
 		confirm-type="done"
 		placeholder="请输入手机号"
+		type="number"
+		maxlength="11"
 		placeholder-class="logplaceh"
 		bindinput="phoneInput"
 	/>
@@ -26,7 +27,7 @@
 			confirm-type="done"
 			placeholder="短信验证码"
 			placeholder-class="logplaceh"
-			maxlength="11"
+			maxlength="6"
 			bindblur="codeInput"
 		/>
 		<view 

+ 1 - 1
module/search/search.wxml

@@ -37,7 +37,7 @@
                 <view 
                   data-index="{{index}}"
                   catchtap="deletekey"
-                  class="key_list_d">X</view>
+                  class="key_list_d"><image src="../../img/close2.png"/></view>
               </view>
           </block> 
         </view>

+ 6 - 0
module/search/search.wxss

@@ -68,6 +68,12 @@
 .key_list_d{
   font-size: 10rpx;
   display: inline-block;
+  padding-left:10rpx;
+}
+.key_list_d image{
+  width:15rpx;
+  height: 15rpx;
+  vertical-align: middle;
 }
 .search_input{
   margin-left:10rpx;

+ 30 - 29
pages/buy/buy.wxml

@@ -11,41 +11,42 @@
   is="search"
   data="{{topsearchheight:topsearchheight,searchshow:searchshow,searchfocus:searchfocus,windowh:windowh,brandrecommend:brandrecommend,keys:searchdata.keys,keylist:keylist,headerheight:headerheight}}"
 />
+
+<view 
+  class="filter_space"
+  ></view>
+<!--筛选模块-->
+<view 
+  class="filter_c"
+  style="position: fixed; top:{{headerheight+topsearchheight-1}}rpx;"
+  >
+  <view class="filter_nav">
+    <block wx:for="{{filters}}" wx:key="name">
+      <view  
+        class="filter_nav_item {{selectbar==item.name?'filter_nav_item_active':''}}"
+        bindtap="showFilter"
+        data-name="{{item.name}}"
+      >
+        <view class="filter_nav_name">
+          {{item.title}}
+        </view>
+        <image src="../../img/sortby.png" class="filter_nav_switch"/>
+      </view>
+    </block>
+  </view>    
+  <!--筛选排序模块-->
+  <include src="./sort.wxml"/>
+
+  <!--筛选价格模块-->
+  <include src="./pricespace.wxml"/>
+</view>
 <page-scroll
   className="content"
-  styleSheet="height:{{windowh-headerheight-topsearchheight}}rpx;"
+  styleSheet="height:{{windowh-headerheight-topsearchheight-88}}rpx;"
   scroll-y="{{selectbar==''?'true':'false'}}"
   bind:topheight="lockFilter"
   bind:scrolltolower="{{hasloadall?'':'loadListMore'}}"
 >
-  <view 
-    class="filter_space"
-    ></view>
-  <!--筛选模块-->
-  <view 
-    class="filter_c"
-    style="{{filterlock?'position: absolute; top:0rpx':'position: fixed; top:'+(headerheight+topsearchheight-1)+'rpx;'}}"
-    >
-    <view class="filter_nav">
-      <block wx:for="{{filters}}" wx:key="name">
-        <view  
-          class="filter_nav_item {{selectbar==item.name?'filter_nav_item_active':''}}"
-          bindtap="showFilter"
-          data-name="{{item.name}}"
-        >
-          <view class="filter_nav_name">
-            {{item.title}}
-          </view>
-          <image src="../../img/sortby.png" class="filter_nav_switch"/>
-        </view>
-      </block>
-    </view>    
-    <!--筛选排序模块-->
-    <include src="./sort.wxml"/>
-
-    <!--筛选价格模块-->
-    <include src="./pricespace.wxml"/>
-  </view>
   <view wx:if="{{!list}}"></view>
   <view wx:if="{{list.length>0}}" class="cart_list">
     <block wx:for="{{list}}" wx:key="id">

+ 6 - 1
pages/buy/buy.wxss

@@ -5,7 +5,7 @@
   background-color:#F9F9F9;
 }
 .filter_space{
-	height: 66rpx;
+	height: 88rpx;
 }
 .filter_c{
   height: 88rpx;
@@ -17,6 +17,8 @@
 }
 .filter_nav{
 	display: flex;
+  height: 88rpx;
+  overflow: hidden;
 }
 .filter_nav_item{
 	flex: 1;
@@ -36,6 +38,9 @@
 	display: inline;
 	font-family: PingFangSC-Medium,NotoSansHans-Medium;
 }
+.cart_list{
+	margin-top: -20rpx;
+}
 .filter_nav_switch{
 	transition: all 0.5s;
 	height: 16rpx;

+ 1 - 1
pages/cardetail/cardetail.js

@@ -154,7 +154,7 @@ Page(Object.assign({
         })
         var imgh = 444*detail.imgslength+1878;
         var scrollitem = [532,1586,imgh].map(function(item){
-          return item/app.globalData.scale;
+          return item/_self.data.scale;
         })
         _self.setData({
           detail:detail,

+ 2 - 0
pages/evaluate/evaluate.wxml

@@ -156,6 +156,8 @@
   				placeholder="请输入"
   				bindinput="getMobile"
   				type="number"
+  				confirm-type="完成"
+  				maxlength="11"
   				placeholder-style="color:#9B9B9B"
   			/>
 	  	</view>

+ 2 - 0
pages/sell/sell.wxml

@@ -34,6 +34,8 @@
   				placeholder="请输入"
   				bindinput="bindMobile"
   				type="number"
+  				confirm-type="完成"
+  				maxlength="11"
   				placeholder-style="color:#9B9B9B"
   			/>
 	  	</view>