|
@@ -64,7 +64,6 @@ Page({
|
|
|
var list = this.data.list;
|
|
|
for(var i=0; i<list.length; i++){
|
|
|
if (list[i].product_id == id){
|
|
|
-
|
|
|
if(list[i].num-1 <= 0){
|
|
|
list[i].num = 1;
|
|
|
this.delOrder(null, id);
|
|
@@ -99,6 +98,7 @@ Page({
|
|
|
doSettlement: function(){
|
|
|
var list = this.data.list;
|
|
|
var count=0;
|
|
|
+ this.product_ids = '';
|
|
|
for(var i=0; i<list.length; i++){
|
|
|
var product_id = list[i].product_id;
|
|
|
var pay_price = list[i].product.pay_price;
|
|
@@ -135,12 +135,6 @@ Page({
|
|
|
success:function(data, res){
|
|
|
var pay = data.pay;
|
|
|
console.log('requestPayment-1', pay);
|
|
|
- console.log('requestPayment-2', {
|
|
|
- timeStamp: pay.time,
|
|
|
- nonceStr: pay.nonce_str,
|
|
|
- package: 'prepay_id='+ pay.prepay_id,
|
|
|
- signType: pay.sign_type,
|
|
|
- paySign: pay.sign});
|
|
|
wx.requestPayment({
|
|
|
timeStamp: pay.time,
|
|
|
nonceStr: pay.nonce_str,
|