Переглянути джерело

专区错位问题,专区、积分后退问题

junyuanz 4 роки тому
батько
коміт
eace601403
4 змінених файлів з 6 додано та 4 видалено
  1. 1 1
      app.json
  2. 1 0
      pages/areacart/areacart.js
  3. 3 3
      pages/areacart/areacart.wxml
  4. 1 0
      pages/centcart/centcart.js

+ 1 - 1
app.json

@@ -132,7 +132,7 @@
   "sitemapLocation": "sitemap.json",
   "plugins": {
 	    "live-player-plugin": {
-	        "version": "1.2.8",
+	        "version": "1.2.9",
 	        "provider": "wx2b03c6e691cd7370"
 	    }
 	}

+ 1 - 0
pages/areacart/areacart.js

@@ -50,6 +50,7 @@ Page({
   },
   onShow: function () {
 //	this.getCartListAndSelected();
+	this.setData({submitlock: false})
   },
   getCartList:function(){
   	console.log('getCartList')

+ 3 - 3
pages/areacart/areacart.wxml

@@ -45,8 +45,8 @@
 	-->	
 		<view class="cartlist" wx:for="{{cartList}}" wx:key="id">
 			<view class="main_item">
-		      <movable-area style="{{item.package?'height:'+(260+item.package_list.length * 25)+'rpx':''}}">
-		        <movable-view damping="100" out-of-bounds="true" direction="horizontal" x="{{item.movex}}" id="{{index}}" animation="false" bindchange="handleMovableChange" capture-bind:touchstart="handleTouchestart" capture-bind:touchend="handleTouchend" style="{{item.package?'height:'+(260+item.package_list.length * 25)+'rpx':''}}">
+		      <movable-area style="{{item.package?'height:'+(320+item.package_list.length * 25)+'rpx':''}}">
+		        <movable-view damping="100" out-of-bounds="true" direction="horizontal" x="{{item.movex}}" id="{{index}}" animation="false" bindchange="handleMovableChange" capture-bind:touchstart="handleTouchestart" capture-bind:touchend="handleTouchend" style="{{item.package?'height:'+(320+item.package_list.length * 25)+'rpx':''}}">
 		          <view class="main_item_content ">
 		          		  <view class="cartlist_item">
 						   	  <view class="cartlist_select {{item.IsBuy ? 'active' : ''}}" bindtap="itemselected" data-count="{{item.count}}" data-id='{{item.id}}' data-price="{{item.price}}" data-index="{{index}}">
@@ -76,7 +76,7 @@
 		          </view>
 		        </movable-view>
 		      </movable-area>
-		      <view class="delete_btn" data-productIndex="{{index}}" data-id='{{item.id}}' bindtap="delitem"  style="{{item.package?'height:'+(260+item.package_list.length * 20)+'rpx;line-height:'+(260+item.package_list.length * 25)+'rpx':''}}"></view>
+		      <view class="delete_btn" data-productIndex="{{index}}" data-id='{{item.id}}' bindtap="delitem"  style="{{item.package?'height:'+(320+item.package_list.length * 25)+'rpx;line-height:'+(320+item.package_list.length * 25)+'rpx':''}}"></view>
 		    </view>
 	    </view>
 	</view>

+ 1 - 0
pages/centcart/centcart.js

@@ -56,6 +56,7 @@ Page({
   },
   onShow: function () {
 //	this.getCartListAndSelected();
+	this.setData({submitlock: false})
   },
   getCentAct(){
   	var that = this