作者 lihongjuan

1

@@ -47,12 +47,12 @@ Page({ @@ -47,12 +47,12 @@ Page({
47 item.forEach(function(value,index,array){ 47 item.forEach(function(value,index,array){
48 goodid.push(value.id) 48 goodid.push(value.id)
49 }) 49 })
  50 + let id=e.currentTarget.dataset.id;
50 51
51 let that = this 52 let that = this
52 - let url = a.interface.addshop 53 + let url = '/shop/recur_order'
53 let params = { 54 let params = {
54 - num: num,  
55 - product_id: goodid.join(",") 55 + order_id:id
56 } 56 }
57 a.post(url, params).then((res) => { 57 a.post(url, params).then((res) => {
58 // that.setData({ 58 // that.setData({