...
|
...
|
@@ -33,7 +33,7 @@ Page({ |
|
|
last_total_price: 0,
|
|
|
deliverTime: false,
|
|
|
deliverList: [],
|
|
|
deliverTimeId: 0,
|
|
|
deliverTimeId: null,
|
|
|
deliverTimeStr: '请选择时间',
|
|
|
order_sn: 0,
|
|
|
|
...
|
...
|
@@ -106,7 +106,7 @@ Page({ |
|
|
let c = ele.labelArray.week
|
|
|
if (e == c) {
|
|
|
ele.children.forEach(function (eles, indexs) {
|
|
|
if (!eles.disabled) {
|
|
|
if (eles.disabled) {
|
|
|
if (b == eles.label) {
|
|
|
deliveryTimeId = eles.value
|
|
|
}
|
...
|
...
|
@@ -114,6 +114,7 @@ Page({ |
|
|
timeflag: false
|
|
|
})
|
|
|
} else {
|
|
|
console.log(909090)
|
|
|
wx.showToast({
|
|
|
title: '亲,该时间段已排满咯~',
|
|
|
icon: 'none'
|
...
|
...
|
@@ -166,6 +167,8 @@ Page({ |
|
|
// weeks[1] = week_right
|
|
|
// weeks[1] = ["13.00-15.00","15.00-17.00"]
|
|
|
var weeks_two = week_right
|
|
|
console.log('000')
|
|
|
console.log(week_arr)
|
|
|
this.setData({
|
|
|
timeDataArray: canlda,
|
|
|
week_arr: week_arr,
|
...
|
...
|
@@ -182,6 +185,8 @@ Page({ |
|
|
this.setData({
|
|
|
multiArray: [week_arr, arr1[0]]
|
|
|
})
|
|
|
console.log(111)
|
|
|
console.log([week_arr, arr1[0]])
|
|
|
},
|
|
|
//返回
|
|
|
get_my() {
|
...
|
...
|
@@ -235,13 +240,18 @@ Page({ |
|
|
let params = {
|
|
|
ids: this.data.ids
|
|
|
}
|
|
|
let addid = null
|
|
|
app.post(url, params).then(r => {
|
|
|
console.log(r)
|
|
|
var list = r.data.list;
|
|
|
var addid = null
|
|
|
r.data.vips.forEach(function(ele, index) {
|
|
|
ele.t = false
|
|
|
});
|
|
|
r.data.timeDataArray.forEach(function(ele, index) {
|
|
|
if(index==0){
|
|
|
addid = ele.children[0].value
|
|
|
}
|
|
|
var new_arr = []
|
|
|
for (let i = 0; i < ele.children.length; i++) {
|
|
|
new_arr.push(ele.children[i].label)
|
...
|
...
|
@@ -258,8 +268,10 @@ Page({ |
|
|
timeDataArray: r.data.timeDataArray,
|
|
|
deliverList: r.data.timeDataArray,
|
|
|
addressList: r.data.address,
|
|
|
amount: that.data.amount
|
|
|
amount: that.data.amount,
|
|
|
addressId:addid
|
|
|
});
|
|
|
console.log(addid+'刚进来')
|
|
|
if (that.data.num == 0) {
|
|
|
that.goodsTotalPrice();
|
|
|
}
|
...
|
...
|
@@ -275,10 +287,14 @@ Page({ |
|
|
ids: this.data.ids,
|
|
|
num: this.data.num
|
|
|
}
|
|
|
let addid = null
|
|
|
app.post(url, params).then(r => {
|
|
|
if (r.code == 1) {
|
|
|
var list = r.data.list;
|
|
|
r.data.timeDataArray.forEach(function(ele, index) {
|
|
|
r.data.timeDataArray.forEach(function (ele, index) {
|
|
|
if (index == 0) {
|
|
|
addid = ele.children[0].value
|
|
|
}
|
|
|
var new_arr = []
|
|
|
for (let i = 0; i < ele.children.length; i++) {
|
|
|
new_arr.push(ele.children[i].label)
|
...
|
...
|
@@ -292,7 +308,8 @@ Page({ |
|
|
vipList: r.data.vips,
|
|
|
timeDataArray: r.data.timeDataArray,
|
|
|
deliverList: r.data.timeDataArray,
|
|
|
ship_ment_price: r.data.priceData.shipment_price
|
|
|
ship_ment_price: r.data.priceData.shipment_price,
|
|
|
addressId:addid
|
|
|
});
|
|
|
// that.fetchAmount();
|
|
|
that.amount()
|
...
|
...
|
@@ -345,10 +362,14 @@ Page({ |
|
|
ids: that.data.ids,
|
|
|
id: that.data.proId
|
|
|
}
|
|
|
let addid = null
|
|
|
var totalPrice = that.data.totalPrice
|
|
|
app.post(url, params).then(r => {
|
|
|
if (r.code == 1) {
|
|
|
r.data.timeDataArray.forEach(function(ele, index) {
|
|
|
r.data.timeDataArray.forEach(function (ele, index) {
|
|
|
if (index == 0) {
|
|
|
addid = ele.children[0].value
|
|
|
}
|
|
|
var new_arr = []
|
|
|
for (let i = 0; i < ele.children.length; i++) {
|
|
|
new_arr.push(ele.children[i].label)
|
...
|
...
|
@@ -362,7 +383,8 @@ Page({ |
|
|
vipList: r.data.vips,
|
|
|
timeDataArray: r.data.timeDataArray,
|
|
|
deliverList: r.data.timeDataArray,
|
|
|
ship_ment_price: r.data.priceData.shipment_price
|
|
|
ship_ment_price: r.data.priceData.shipment_price,
|
|
|
addressId:addid
|
|
|
})
|
|
|
this.getWeek();
|
|
|
}
|
...
|
...
|
@@ -408,10 +430,14 @@ Page({ |
|
|
id: that.data.packId,
|
|
|
ids: that.data.packIds
|
|
|
}
|
|
|
let addid = null
|
|
|
app.post(url, params).then(r => {
|
|
|
if (r.code == 1) {
|
|
|
console.log(r)
|
|
|
r.data.timeDataArray.forEach(function(ele, index) {
|
|
|
r.data.timeDataArray.forEach(function (ele, index) {
|
|
|
if (index == 0) {
|
|
|
addid = ele.children[0].value
|
|
|
}
|
|
|
var new_arr = []
|
|
|
for (let i = 0; i < ele.children.length; i++) {
|
|
|
new_arr.push(ele.children[i].label)
|
...
|
...
|
@@ -434,7 +460,8 @@ Page({ |
|
|
ship_ment_price: r.data.priceData.shipment_price,
|
|
|
amount: price,
|
|
|
goodsTotalPrice: price,
|
|
|
last_total_price: price
|
|
|
last_total_price: price,
|
|
|
addressId: addid
|
|
|
});
|
|
|
this.getWeek();
|
|
|
}
|
...
|
...
|
|