diff --git a/application/service/BuyService.php b/application/service/BuyService.php index fe19e5381..310d14fdd 100755 --- a/application/service/BuyService.php +++ b/application/service/BuyService.php @@ -1002,7 +1002,7 @@ class BuyService $user_note = empty($params['user_note']) ? '' : str_replace(['"', "'"], '', strip_tags($params['user_note'])); // 订单默认状态 - $status = (intval(MyC('common_order_is_booking', 0)) == 1) ? 0 : 1; + $order_status = (intval(MyC('common_order_is_booking', 0)) == 1) ? 0 : 1; // 订单来源 $client_type = (APPLICATION_CLIENT_TYPE == 'pc' && IsMobile()) ? 'h5' : APPLICATION_CLIENT_TYPE; @@ -1047,7 +1047,7 @@ class BuyService 'user_id' => $params['user']['id'], 'warehouse_id' => $v['id'], 'user_note' => $user_note, - 'status' => $status, + 'status' => $order_status, 'preferential_price' => ($v['order_base']['preferential_price'] <= 0.00) ? 0.00 : $v['order_base']['preferential_price'], 'increase_price' => ($v['order_base']['increase_price'] <= 0.00) ? 0.00 : $v['order_base']['increase_price'], 'price' => ($v['order_base']['total_price'] <= 0.00) ? 0.00 : $v['order_base']['total_price'], @@ -1192,13 +1192,14 @@ class BuyService // 返回信息 $result = [ - 'order_ids' => $order_ids, - 'jump_url' => MyUrl('index/order/index'), + 'order_status' => $order_status, + 'order_ids' => $order_ids, + 'jump_url' => MyUrl('index/order/index'), ]; // 获取订单信息 - switch($status) + switch($order_status) { // 预约成功 case 0 : diff --git a/extend/payment/QQ.php b/extend/payment/QQ.php index 47902c78a..c92a11af7 100644 --- a/extend/payment/QQ.php +++ b/extend/payment/QQ.php @@ -288,10 +288,10 @@ class QQ $data = [ 'appid' => $this->config['appid'], 'mch_id' => $this->config['mch_id'], - 'nonce_str' => md5(time().rand().$params['order_no']), + 'nonce_str' => md5(time().$params['order_no']), 'body' => $params['site_name'].'-'.$params['name'], 'notify_url' => $notify_url, - 'out_trade_no' => $params['order_no'].GetNumberCode(6), + 'out_trade_no' => $params['order_no'], 'fee_type' => 'CNY', 'total_fee' => (int) (($params['total_price']*1000)/10), 'spbill_create_ip' => GetClientIP(), @@ -355,13 +355,10 @@ class QQ */ private function ReturnData($data) { - // 参数处理 - $out_trade_no = substr($data['out_trade_no'], 0, strlen($data['out_trade_no'])-6); - // 返回数据固定基础参数 $data['trade_no'] = $data['transaction_id']; // 支付平台 - 订单号 $data['buyer_user'] = isset($data['openid']) ? $data['openid'] : ''; // 支付平台 - 用户 - $data['out_trade_no'] = $out_trade_no; // 本系统发起支付的 - 订单号 + $data['out_trade_no'] = $data['out_trade_no']; // 本系统发起支付的 - 订单号 $data['subject'] = isset($data['attach']) ? $data['attach'] : ''; // 本系统发起支付的 - 商品名称 $data['pay_price'] = $data['total_fee']/100; // 本系统发起支付的 - 总价 return $data; diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index 7949f5734..5c2a74bd1 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -359,10 +359,10 @@ class Weixin 'appid' => $appid, 'mch_id' => $this->config['mch_id'], 'body' => $params['site_name'].'-'.$params['name'], - 'nonce_str' => md5(time().rand().$params['order_no']), + 'nonce_str' => md5(time().$params['order_no']), 'notify_url' => $notify_url, 'openid' => ($trade_type == 'JSAPI') ? $openid : '', - 'out_trade_no' => $params['order_no'].GetNumberCode(6), + 'out_trade_no' => $params['order_no'], 'spbill_create_ip' => GetClientIP(), 'total_fee' => (int) (($params['total_price']*1000)/10), 'trade_type' => $trade_type, @@ -441,13 +441,10 @@ class Weixin */ private function ReturnData($data) { - // 参数处理 - $out_trade_no = substr($data['out_trade_no'], 0, strlen($data['out_trade_no'])-6); - // 返回数据固定基础参数 $data['trade_no'] = $data['transaction_id']; // 支付平台 - 订单号 $data['buyer_user'] = $data['openid']; // 支付平台 - 用户 - $data['out_trade_no'] = $out_trade_no; // 本系统发起支付的 - 订单号 + $data['out_trade_no'] = $data['out_trade_no']; // 本系统发起支付的 - 订单号 $data['subject'] = $data['attach']; // 本系统发起支付的 - 商品名称 $data['pay_price'] = $data['total_fee']/100; // 本系统发起支付的 - 总价 return $data; diff --git a/sourcecode/alipay/pages/buy/buy.axml b/sourcecode/alipay/pages/buy/buy.axml index 6f7f4b624..6f041268b 100644 --- a/sourcecode/alipay/pages/buy/buy.axml +++ b/sourcecode/alipay/pages/buy/buy.axml @@ -89,7 +89,7 @@ - + 合计: {{price_symbol}}{{total_price}} diff --git a/sourcecode/alipay/pages/cart/cart.axml b/sourcecode/alipay/pages/cart/cart.axml index 43a276a56..cf66db42a 100644 --- a/sourcecode/alipay/pages/cart/cart.axml +++ b/sourcecode/alipay/pages/cart/cart.axml @@ -1,7 +1,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -52,8 +52,8 @@ - - + + 全选 diff --git a/sourcecode/alipay/pages/cart/cart.js b/sourcecode/alipay/pages/cart/cart.js index ced18d863..87b909e35 100644 --- a/sourcecode/alipay/pages/cart/cart.js +++ b/sourcecode/alipay/pages/cart/cart.js @@ -340,7 +340,7 @@ Page({ }, // 选中处理 - selectedt_event(e) { + selected_event(e) { var type = e.target.dataset.type || null; if (type != null) { diff --git a/sourcecode/baidu/pages/buy/buy.swan b/sourcecode/baidu/pages/buy/buy.swan index b0eb9506b..db659ab18 100755 --- a/sourcecode/baidu/pages/buy/buy.swan +++ b/sourcecode/baidu/pages/buy/buy.swan @@ -88,7 +88,7 @@ - + 合计: {{price_symbol}}{{total_price}} diff --git a/sourcecode/baidu/pages/cart/cart.js b/sourcecode/baidu/pages/cart/cart.js index 6b681dee8..0e75198d3 100755 --- a/sourcecode/baidu/pages/cart/cart.js +++ b/sourcecode/baidu/pages/cart/cart.js @@ -293,7 +293,7 @@ Page({ }, // 选中处理 - selectedt_event(e) { + selected_event(e) { var type = e.currentTarget.dataset.type || null; if (type != null) { var temp_data_list = this.data.data_list; diff --git a/sourcecode/baidu/pages/cart/cart.swan b/sourcecode/baidu/pages/cart/cart.swan index 6c27a9df5..54ba6f5a4 100755 --- a/sourcecode/baidu/pages/cart/cart.swan +++ b/sourcecode/baidu/pages/cart/cart.swan @@ -1,7 +1,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -54,8 +54,8 @@ - - + + 全选 diff --git a/sourcecode/qq/pages/buy/buy.qml b/sourcecode/qq/pages/buy/buy.qml index 542e73fe6..738d664ef 100755 --- a/sourcecode/qq/pages/buy/buy.qml +++ b/sourcecode/qq/pages/buy/buy.qml @@ -88,7 +88,7 @@ - + 合计: {{price_symbol}}{{total_price}} diff --git a/sourcecode/qq/pages/cart/cart.js b/sourcecode/qq/pages/cart/cart.js index 42974de65..4a251751b 100755 --- a/sourcecode/qq/pages/cart/cart.js +++ b/sourcecode/qq/pages/cart/cart.js @@ -294,7 +294,7 @@ Page({ }, // 选中处理 - selectedt_event(e) { + selected_event(e) { var type = e.currentTarget.dataset.type || null; if (type != null) { diff --git a/sourcecode/qq/pages/cart/cart.qml b/sourcecode/qq/pages/cart/cart.qml index 399b07a24..34852fbe4 100755 --- a/sourcecode/qq/pages/cart/cart.qml +++ b/sourcecode/qq/pages/cart/cart.qml @@ -1,7 +1,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -52,8 +52,8 @@ - - + + 全选 diff --git a/sourcecode/toutiao/pages/buy/buy.ttml b/sourcecode/toutiao/pages/buy/buy.ttml index b621a848d..b2bca7d4f 100755 --- a/sourcecode/toutiao/pages/buy/buy.ttml +++ b/sourcecode/toutiao/pages/buy/buy.ttml @@ -88,7 +88,7 @@ - + 合计: {{price_symbol}}{{total_price}} diff --git a/sourcecode/toutiao/pages/cart/cart.js b/sourcecode/toutiao/pages/cart/cart.js index 46568ad1c..13c9f59ad 100755 --- a/sourcecode/toutiao/pages/cart/cart.js +++ b/sourcecode/toutiao/pages/cart/cart.js @@ -294,7 +294,7 @@ Page({ }, // 选中处理 - selectedt_event(e) { + selected_event(e) { var type = e.currentTarget.dataset.type || null; if (type != null) { diff --git a/sourcecode/toutiao/pages/cart/cart.ttml b/sourcecode/toutiao/pages/cart/cart.ttml index ff236ddae..79ec143a6 100755 --- a/sourcecode/toutiao/pages/cart/cart.ttml +++ b/sourcecode/toutiao/pages/cart/cart.ttml @@ -1,7 +1,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -52,8 +52,8 @@ - - + + 全选 diff --git a/sourcecode/weixin/pages/buy/buy.js b/sourcecode/weixin/pages/buy/buy.js index dfc157667..aa0cc498c 100755 --- a/sourcecode/weixin/pages/buy/buy.js +++ b/sourcecode/weixin/pages/buy/buy.js @@ -26,9 +26,10 @@ Page({ // 优惠劵 plugins_coupon_data: null, - plugins_use_coupon_id: 0, - plugins_choice_coupon_value: '选择优惠劵', + plugins_use_coupon_ids: [], + plugins_choice_coupon_value: [], popup_plugins_coupon_status: false, + popup_plugins_coupon_index: null, }, onLoad(params) { //params['data'] = '{"buy_type":"goods","goods_id":"1","stock":"1","spec":"[]"}'; @@ -80,12 +81,11 @@ Page({ var data = this.data.params; data['address_id'] = this.data.address_id; data['payment_id'] = this.data.payment_id; - data['coupon_id'] = this.data.plugins_use_coupon_id; data['site_model'] = this.data.site_model; wx.request({ url: app.get_request_url("index", "buy"), method: "POST", - data: data, + data: this.request_data_coupon_merge(data), dataType: "json", success: res => { wx.stopPullDownRefresh(); @@ -110,13 +110,19 @@ Page({ // 优惠劵选择处理 if ((data.plugins_coupon_data || null) != null) { - if ((data.plugins_coupon_data.coupon_choice || null) != null) + var plugins_choice_coupon_value = []; + for(var i in data.plugins_coupon_data) { - this.setData({ plugins_choice_coupon_value: data.plugins_coupon_data.coupon_choice.coupon.desc }); - } else { - var coupon_count = ((data.plugins_coupon_data.coupon_list || null) != null) ? data.plugins_coupon_data.coupon_list.length : 0; - this.setData({ plugins_choice_coupon_value: (coupon_count > 0) ? '可选优惠劵' + coupon_count + '张' : '暂无可用优惠劵' }); + var cupk = data.plugins_coupon_data[i]['warehouse_id']; + if((data.plugins_coupon_data[i]['coupon_data']['coupon_choice'] || null) != null) + { + plugins_choice_coupon_value[cupk] = data.plugins_coupon_data[i]['coupon_data']['coupon_choice']['desc']; + } else { + var coupon_count = (data.plugins_coupon_data[i]['coupon_data']['coupon_list'] || null) != null ? data.plugins_coupon_data[i]['coupon_data'].coupon_list.length : 0; + plugins_choice_coupon_value[cupk] = (coupon_count > 0) ? '可选优惠劵' + coupon_count + '张' : '暂无可用优惠劵'; + } } + this.setData({ plugins_choice_coupon_value: plugins_choice_coupon_value }); } // 地址 @@ -155,6 +161,19 @@ Page({ }); }, + // 请求参数合并优惠券参数 + request_data_coupon_merge(data) { + var coupon_ids = this.data.plugins_use_coupon_ids; + if((coupon_ids || null) != null && coupon_ids.length > 0) + { + for(var i in coupon_ids) + { + data['coupon_id_'+i] = coupon_ids[i]; + } + } + return data; + }, + // 下拉刷新 onPullDownRefresh() { this.init(); @@ -172,7 +191,6 @@ Page({ data['address_id'] = this.data.address_id; data['payment_id'] = this.data.payment_id; data['user_note'] = this.data.user_note_value; - data['coupon_id'] = this.data.plugins_use_coupon_id; data['site_model'] = this.data.site_model; // 数据验证 @@ -193,14 +211,14 @@ Page({ wx.request({ url: app.get_request_url("add", "buy"), method: "POST", - data: data, + data: this.request_data_coupon_merge(data), dataType: "json", success: res => { wx.hideLoading(); if (res.data.code == 0) { - if (res.data.data.order.status == 1) { + if (res.data.data.order_status == 1) { wx.redirectTo({ - url: '/pages/user-order/user-order?is_pay=1&order_id=' + res.data.data.order.id + url: '/pages/user-order/user-order?is_pay=1&order_ids=' + res.data.data.order_ids.join(',') }); } else { wx.redirectTo({url: '/pages/user-order/user-order'}); @@ -243,7 +261,11 @@ Page({ // 优惠劵弹层开启 plugins_coupon_open_event(e) { - this.setData({ popup_plugins_coupon_status: true}); + var index = e.currentTarget.dataset.index; + this.setData({ + popup_plugins_coupon_status: true, + popup_plugins_coupon_index: index, + }); }, // 优惠劵弹层关闭 @@ -253,19 +275,28 @@ Page({ // 优惠劵选择 plugins_coupon_use_event(e) { - var index = e.currentTarget.dataset.index; + var wid = e.currentTarget.dataset.wid; var value = e.currentTarget.dataset.value; - this.setData({ - plugins_use_coupon_id: value, - popup_plugins_coupon_status: false, - }); - this.init(); + var temp = this.data.plugins_use_coupon_ids; + // 是否已选择优惠券id + if(temp.indexOf(value) == -1) + { + temp[wid] = value; + this.setData({ + plugins_use_coupon_ids: temp, + popup_plugins_coupon_status: false, + }); + this.init(); + } }, // 不使用优惠劵 plugins_coupon_not_use_event(e) { + var wid = e.currentTarget.dataset.wid; + var temp = this.data.plugins_use_coupon_ids; + temp[wid] = 0; this.setData({ - plugins_use_coupon_id: 0, + plugins_use_coupon_ids: temp, popup_plugins_coupon_status: false, }); this.init(); diff --git a/sourcecode/weixin/pages/buy/buy.wxml b/sourcecode/weixin/pages/buy/buy.wxml index 3d60f97ee..1f6cd6977 100755 --- a/sourcecode/weixin/pages/buy/buy.wxml +++ b/sourcecode/weixin/pages/buy/buy.wxml @@ -63,6 +63,11 @@ + + + 优惠劵 + {{((plugins_choice_coupon_value || null) != null && (plugins_choice_coupon_value[group.id] || null) != null) ? plugins_choice_coupon_value[group.id] : '请选择优惠券'}} + @@ -85,22 +90,6 @@ {{user_note_value || '留言'}} - - - 优惠劵 - {{plugins_choice_coupon_value}} - - - - - - {{item.name}} - - {{item.tips}} - - - - @@ -113,7 +102,7 @@ - + 合计: {{price_symbol}}{{total_price}} @@ -130,18 +119,19 @@ + - + - 不使用优惠劵 + 不使用优惠劵 - - + + {{price_symbol}} @@ -152,9 +142,9 @@ {{item.coupon.use_limit_type_name}} {{item.time_start_text}} 至 {{item.time_end_text}} - + - {{plugins_use_coupon_id == item.id ? '已选' : '选择'}} + {{tools.indexOf(plugins_use_coupon_ids, item.id) ? '已选' : '选择'}} diff --git a/sourcecode/weixin/pages/cart/cart.js b/sourcecode/weixin/pages/cart/cart.js index f6135ac97..505b2d08d 100755 --- a/sourcecode/weixin/pages/cart/cart.js +++ b/sourcecode/weixin/pages/cart/cart.js @@ -294,7 +294,7 @@ Page({ }, // 选中处理 - selectedt_event(e) { + selected_event(e) { var type = e.currentTarget.dataset.type || null; if (type != null) { diff --git a/sourcecode/weixin/pages/cart/cart.wxml b/sourcecode/weixin/pages/cart/cart.wxml index 3a8887e6b..c3a262123 100755 --- a/sourcecode/weixin/pages/cart/cart.wxml +++ b/sourcecode/weixin/pages/cart/cart.wxml @@ -1,7 +1,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -52,8 +52,8 @@ - - + + 全选 diff --git a/sourcecode/weixin/pages/paytips/paytips.js b/sourcecode/weixin/pages/paytips/paytips.js index eaf990277..b1a4f1c0c 100755 --- a/sourcecode/weixin/pages/paytips/paytips.js +++ b/sourcecode/weixin/pages/paytips/paytips.js @@ -1,7 +1,6 @@ const app = getApp(); Page({ data: { - price_symbol: app.data.price_symbol, params: {}, default_round_success_icon: app.data.default_round_success_icon, default_round_error_icon: app.data.default_round_error_icon, diff --git a/sourcecode/weixin/pages/paytips/paytips.wxml b/sourcecode/weixin/pages/paytips/paytips.wxml index a044297fb..0ad1d44c5 100755 --- a/sourcecode/weixin/pages/paytips/paytips.wxml +++ b/sourcecode/weixin/pages/paytips/paytips.wxml @@ -2,10 +2,6 @@ {{params.msg}} - - {{price_symbol}}{{params.total_price}} - - diff --git a/sourcecode/weixin/pages/paytips/paytips.wxss b/sourcecode/weixin/pages/paytips/paytips.wxss index 7c993957c..9c421b1a9 100755 --- a/sourcecode/weixin/pages/paytips/paytips.wxss +++ b/sourcecode/weixin/pages/paytips/paytips.wxss @@ -28,6 +28,3 @@ page{ .dis-block { font-size: 48rpx; } -.price-box { - margin-top: 20rpx; -} \ No newline at end of file diff --git a/sourcecode/weixin/pages/user-order/user-order.js b/sourcecode/weixin/pages/user-order/user-order.js index 7718b9aa5..6313a6415 100755 --- a/sourcecode/weixin/pages/user-order/user-order.js +++ b/sourcecode/weixin/pages/user-order/user-order.js @@ -13,8 +13,7 @@ Page({ is_show_payment_popup: false, payment_list: [], payment_id: 0, - temp_pay_value: 0, - temp_pay_index: 0, + temp_pay_value: '', nav_status_list: [ { name: "全部", value: "-1" }, { name: "待付款", value: "1" }, @@ -24,6 +23,7 @@ Page({ { name: "已失效", value: "5,6" }, ], nav_status_index: 0, + order_select_ids: [], }, onLoad(params) { @@ -115,16 +115,9 @@ Page({ // 下订单支付处理 if(this.data.load_status == 0) { - if((this.data.params.is_pay || 0) == 1 && (this.data.params.order_id || 0) != 0) + if((this.data.params.is_pay || 0) == 1 && (this.data.params.order_ids || null) != null) { - for(var i in temp_data_list) - { - if(this.data.params.order_id == temp_data_list[i]['id']) - { - this.pay_handle(this.data.params.order_id, i); - break; - } - } + this.pay_handle(this.data.params.order_ids); } } } else { @@ -200,7 +193,6 @@ Page({ this.setData({ is_show_payment_popup: true, temp_pay_value: e.currentTarget.dataset.value, - temp_pay_index: e.currentTarget.dataset.index, }); }, @@ -214,11 +206,11 @@ Page({ var payment_id = e.currentTarget.dataset.value || 0; this.setData({payment_id: payment_id}); this.payment_popup_event_close(); - this.pay_handle(this.data.temp_pay_value, this.data.temp_pay_index); + this.pay_handle(this.data.temp_pay_value); }, // 支付方法 - pay_handle(order_id, index) { + pay_handle(order_ids) { var self = this; // 加载loding wx.showLoading({title: "请求中..." }); @@ -227,7 +219,7 @@ Page({ url: app.get_request_url("pay", "order"), method: "POST", data: { - id: order_id, + ids: order_ids, payment_id: this.data.payment_id, }, dataType: "json", @@ -246,12 +238,11 @@ Page({ paySign: res.data.data.data.paySign, success: function (res) { // 数据设置 - self.order_item_pay_success_handle(index); + self.order_item_pay_success_handle(order_ids); // 跳转支付页面 wx.navigateTo({ - url: "/pages/paytips/paytips?code=9000&total_price=" + - self.data.data_list[index]['total_price'] + url: "/pages/paytips/paytips?code=9000" }); }, fail: function (res) { @@ -262,15 +253,22 @@ Page({ // 线下支付 case 1 : + var order_ids_arr = order_ids.split(','); var temp_data_list = self.data.data_list; - temp_data_list[index]['is_under_line'] = 1; + for(var i in temp_data_list) + { + if(order_ids_arr.indexOf(temp_data_list[i]['id']) != -1) + { + temp_data_list[i]['is_under_line'] = 1; + } + } self.setData({ data_list: temp_data_list }); app.alert({ msg: res.data.msg, is_show_cancel: 0}); break; // 钱包支付 case 2 : - self.order_item_pay_success_handle(index); + self.order_item_pay_success_handle(order_ids); app.showToast('支付成功', 'success'); break; @@ -290,27 +288,35 @@ Page({ }, // 支付成功数据设置 - order_item_pay_success_handle(index) { - // 数据设置 + order_item_pay_success_handle(order_ids) { + var order_ids_arr = order_ids.split(','); var temp_data_list = this.data.data_list; - switch (parseInt(temp_data_list[index]['order_model'])) { - // 销售模式 - case 0: - temp_data_list[index]['status'] = 2; - temp_data_list[index]['status_name'] = '待发货'; - break; - // 自提模式 - case 2: - temp_data_list[index]['status'] = 2; - temp_data_list[index]['status_name'] = '待取货'; - break; + // 数据设置 + for(var i in temp_data_list) + { + if(order_ids_arr.indexOf(temp_data_list[i]['id']) != -1) + { + switch (parseInt(temp_data_list[i]['order_model'])) { + // 销售模式 + case 0: + temp_data_list[i]['status'] = 2; + temp_data_list[i]['status_name'] = '待发货'; + break; - // 虚拟模式 - case 3: - temp_data_list[index]['status'] = 3; - temp_data_list[index]['status_name'] = '待收货'; - break; + // 自提模式 + case 2: + temp_data_list[i]['status'] = 2; + temp_data_list[i]['status_name'] = '待取货'; + break; + + // 虚拟模式 + case 3: + temp_data_list[i]['status'] = 3; + temp_data_list[i]['status_name'] = '待收货'; + break; + } + } } this.setData({ data_list: temp_data_list }); }, @@ -413,7 +419,10 @@ Page({ this.setData({ nav_status_index: e.currentTarget.dataset.index || 0, data_page: 1, + order_select_ids: [], }); + + // 重新拉取数据 this.get_data_list(1); }, @@ -439,4 +448,31 @@ Page({ url: "/pages/user-order-comments/user-order-comments?id=" + e.currentTarget.dataset.value }); }, + + // 选中处理 + selected_event(e) { + var oid = e.currentTarget.dataset.oid || 0; + var temp_select_ids = this.data.order_select_ids; + if(temp_select_ids.indexOf(oid) == -1) + { + temp_select_ids.push(oid); + } else { + for(var i in temp_select_ids) + { + if(temp_select_ids[i] == oid) + { + temp_select_ids.splice(i, 1); + } + } + } + this.setData({order_select_ids: temp_select_ids}); + }, + + // 合并支付 + pay_merge_event(e) { + this.setData({ + is_show_payment_popup: true, + temp_pay_value: this.data.order_select_ids.join(',') + }); + }, }); diff --git a/sourcecode/weixin/pages/user-order/user-order.wxml b/sourcecode/weixin/pages/user-order/user-order.wxml index e8d0743f7..1d27d92dd 100755 --- a/sourcecode/weixin/pages/user-order/user-order.wxml +++ b/sourcecode/weixin/pages/user-order/user-order.wxml @@ -1,3 +1,4 @@ + @@ -11,10 +12,13 @@ - {{item.add_time}} - - {{item.status_name}}({{item.is_under_line_text}}) - + + + + + + {{item.warehouse_name}} + {{item.status_name}}({{item.is_under_line_text}}) @@ -56,6 +60,11 @@ + + + + + diff --git a/sourcecode/weixin/pages/user-order/user-order.wxss b/sourcecode/weixin/pages/user-order/user-order.wxss index 4ec527203..a1044896c 100755 --- a/sourcecode/weixin/pages/user-order/user-order.wxss +++ b/sourcecode/weixin/pages/user-order/user-order.wxss @@ -85,4 +85,23 @@ height: 50rpx !important; vertical-align: middle; margin-right: 10rpx; +} + +/** + * 多选 + */ + .selected .icon { + width: 35rpx; + height: 35rpx !important; + margin: 0 20rpx 0 10rpx; + vertical-align: middle; +} + +/** + * 合并支付按钮 + */ +.pay-merge-submit { + width: 220rpx; + left: calc(50% - 110rpx); + bottom: 50rpx; } \ No newline at end of file diff --git a/sourcecode/weixin/utils/tools.wxs b/sourcecode/weixin/utils/tools.wxs new file mode 100644 index 000000000..3ba62093a --- /dev/null +++ b/sourcecode/weixin/utils/tools.wxs @@ -0,0 +1,8 @@ +function indexOf(arr, value) { + if (arr.indexOf(value) < 0) { + return false; + } else { + return true; + } +} +module.exports.indexOf = indexOf; \ No newline at end of file