Просмотр исходного кода

专区选择调整,增加订单备注

junyuanz лет назад: 4
Родитель
Сommit
bfdd8698d8

+ 5 - 0
packageUser/pages/user/order/order.wxml

@@ -107,6 +107,11 @@
 	      	<view class="orderDetail-payPrice__title">微信支付</view>
 	      	<currency style="float: right;height: 44px;color: #eab86a;" symbol="¥" value="{{order.paied_price}}"></currency>
 	      </view>
+		  
+		  <view style="overflow: hidden;width: 100%;">
+		  	<view class="orderDetail-payPrice__title">备注信息</view>
+		  	<text class="orderDetail-payPrice__count">{{order.remark}}</text>
+		  </view>
       </view>
       <view class="clean"></view>
     </view>

+ 4 - 1
pages/areacart/areacart.js

@@ -621,7 +621,10 @@ Page({
 	  var that = this;
 	  console.log(that.data.size_list);
 	  console.log(that.data.color_list);
-	  var url = "v1/product_detail/" + that.data.selectProjectid + "/" + that.data.size_list + "/" + that.data.color_list;
+	  var sizelist = that.data.size_list ? that.data.size_list : 0;
+	  var colorlist = that.data.color_list ? that.data.color_list : 0;
+	  
+	  var url = "v1/product_detail/" + that.data.selectProjectid + "/" + sizelist + "/" + colorlist;
 	  var params = {}
 	  var success = function (val) {
 		console.log('val',val)

+ 9 - 2
pages/pay/pay.js

@@ -29,7 +29,8 @@ Page({
     yunfei:0,
     payFlag:false,
     useBalance:false,
-    afterdec:0//使用提货券扣除后的总额
+    afterdec:0,//使用提货券扣除后的总额
+	remark:''
   },
   onLoad: function (options) {
     this.data.orderId = options.orderId;
@@ -321,7 +322,8 @@ Page({
       pay_way: that.data.curPayway,
       address_id: that.data.address.id,
       s: 'xcx',
-      use_coupon:that.data.useBalance
+      use_coupon:that.data.useBalance,
+	  remark:that.data.remark
     }
     
     console.log('onpay',params)
@@ -400,5 +402,10 @@ Page({
     return _request.share({
       sc: 'xcx_pay'
     })
+  },
+  bindremark (e) {
+    this.setData({
+      remark: e.detail.value
+    })
   }
 })

+ 7 - 0
pages/pay/pay.wxml

@@ -192,9 +192,16 @@
 	  <view wx:if="{{useBalance || payData.coupon_price>0}}" style="padding:15rpx;text-align:right">
 	  	使用提货券抵扣 <text style="color:#F00">-{{payData.coupon_price>0?payData.coupon_price/100:balanceInfo.total - total+yunfei >= 0 ? (total+yunfei) / 100 : balanceInfo.total / 100}}</text> 提货券
 	  </view>
+	  
     </view>
+	
+	<view class="remark">
+		<input type="text" class="nameText" placeholder="选填,请输入给商家的留言" placeholder-class="text-placeholder" bindinput="bindremark" />
+	</view>
+	
   </view>
   
+ 
 
   <view class="pay-footer">
     <view class="pay-footer-bar">

+ 5 - 0
pages/pay/pay.wxss

@@ -423,4 +423,9 @@ color:#4c4c4c;
 	    line-height: 36rpx;
 	    color: #666;
 		    margin: 10rpx 0 40rpx;
+}
+
+.remark{
+	border-top: 15px solid #eee;
+	    padding: 25rpx;
 }