2222
This commit is contained in:
@@ -128,6 +128,8 @@ export default {
|
||||
transSubmission: (params = {}) => request.post("/transferrecords/submission", params),
|
||||
// 我的菜窖 领取/绑定转赠菜窖
|
||||
receiveTransferGoods: (params = {}) => request.post("/vegetablecellar/receiveTransferGoods", params),
|
||||
// 我的菜窖 绑定之前发出的礼品卡
|
||||
bindAllCard: (params = {}) => request.post("/lpkgiftcard/bindAllCard", params),
|
||||
// 我的菜窖 预约提菜
|
||||
getStoreBySid: (params = {}) => request.get("/customerstore/getStoreBySid/" + params, params),
|
||||
// 我的菜窖 预约提菜 选择时间范围
|
||||
|
||||
@@ -118,16 +118,16 @@
|
||||
},
|
||||
save() {
|
||||
if (this.stringIsEmpty(this.page.code) || this.page.code.length != 20) {
|
||||
this.shortToast('请输入或扫描20位提货编码')
|
||||
this.shortToast('请输入20位提货编码')
|
||||
return
|
||||
}
|
||||
|
||||
if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
|
||||
this.shortToast('请输入6位提货密码')
|
||||
return
|
||||
}
|
||||
// if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
|
||||
// this.shortToast('请输入6位提货密码')
|
||||
// return
|
||||
// }
|
||||
let _this = this
|
||||
_this.$api.pickUpCardBind(this.page).then((resp) => {
|
||||
_this.$api.bindAllCard(this.page).then((resp) => {
|
||||
bus.$emit('order', "监听回调");
|
||||
// setTimeout(() => {
|
||||
// uni.$emit('order', "监听回调")
|
||||
|
||||
@@ -175,15 +175,15 @@
|
||||
},
|
||||
save() {
|
||||
if (this.stringIsEmpty(this.page.code) || this.page.code.length != 20) {
|
||||
this.shortToast('请输入或扫描20位提货编码')
|
||||
return
|
||||
}
|
||||
if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
|
||||
this.shortToast('请输入6位提货密码')
|
||||
this.shortToast('请输入20位提货编码')
|
||||
return
|
||||
}
|
||||
// if (this.stringIsEmpty(this.page.codeKey) || this.page.codeKey.length != 6) {
|
||||
// this.shortToast('请输入6位提货密码')
|
||||
// return
|
||||
// }
|
||||
let _this = this
|
||||
_this.$api.pickUpCardBind(this.page).then((resp) => {
|
||||
_this.$api.bindAllCard(this.page).then((resp) => {
|
||||
bus.$emit('order', "监听回调");
|
||||
uni.switchTab({
|
||||
url: '/pages/home/myCellar'
|
||||
|
||||
Reference in New Issue
Block a user