diff --git a/pages/card/card_booking.vue b/pages/card/card_booking.vue
index 40566c7..cec80fa 100644
--- a/pages/card/card_booking.vue
+++ b/pages/card/card_booking.vue
@@ -24,11 +24,21 @@
-
- {{data.pname}}
+ style="background: #FFFFFF;border-radius: 20rpx;z-index: 1;min-height: 14vw;margin-left: 15px;margin-right: 15px;margin-top: 4vw;">
+
+ 提货地点
+
+
+
+ 提货时间
+
+
+
-
- {{item.goods}}
+
+ {{item.goods}}
- 剩余数量:{{item.lnum}}
+
- x{{item.num}}
@@ -53,10 +64,8 @@
-
- 预约记录
- 预约提货
-
+
+ 提交预约
@@ -68,7 +77,8 @@
data() {
return {
page: {
- sid: ''
+ sid: '',
+ showTextView: false
},
data: {
time: "",
@@ -77,7 +87,9 @@
state: "",
showBtn: false,
showRecord: false,
- goodsVos: []
+ goodsVos: [],
+ value: "",
+ select: []
}
}
},
@@ -86,9 +98,13 @@
this.request()
},
methods: {
+ showing(e) {
+ this.page.showTextView = e
+ },
request() {
let _this = this
- _this.$api.cardDetail(this.page.sid).then((resp) => {
+ _this.$api.cardBooking(this.page.sid).then((resp) => {
+ console.log(resp);
_this.data = resp
_this.$nextTick(() => {
_this.$refs.pageView.setLoadState(2)
@@ -98,6 +114,34 @@
_this.$refs.pageView.setLoadState(1)
})
})
+ },
+ save() {
+ if (this.stringIsEmpty(this.data.value)) {
+ this.shortToast('请选择提货地点')
+ return
+ }
+ if (this.stringIsEmpty(this.data.reserveDate)) {
+ this.shortToast('请选择提货时间')
+ return
+ }
+ let num = 0;
+ for (var i = 0; i < this.data.goodsVos.length; i++) {
+ num += Number(this.data.goodsVos[i].select);
+ }
+ if (num == 0) {
+ this.shortToast('您未选择任何商品')
+ return
+ }
+
+ let _this = this
+ _this.$api.cardBookingSave(this.data).then((resp) => {
+ uni.navigateBack()
+ uni.$emit('order', {})
+ uni.$emit('order2', {})
+ }).catch(e => {
+ _this.shortToast('发生异常')
+ })
+
}
}
}
@@ -124,10 +168,11 @@
border: 1px solid;
padding-left: 30rpx;
padding-right: 30rpx;
- padding-top: 10rpx;
- padding-bottom: 10rpx;
+ padding-top: 12rpx;
+ padding-bottom: 12rpx;
border-radius: 50rpx;
height: 15px;
margin-left: 25rpx;
+ font-size: 26rpx;
}
\ No newline at end of file