Browse Source

2222

master
guoxing 1 year ago
parent
commit
0a8d7e200a
  1. 2
      common/request.api.js
  2. 12
      pages/bind/bind_pickUpCard.vue
  3. 12
      pages/bind/bind_pickUpCard2.vue

2
common/request.api.js

@ -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),
// 我的菜窖 预约提菜 选择时间范围

12
pages/bind/bind_pickUpCard.vue

@ -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', "")

12
pages/bind/bind_pickUpCard2.vue

@ -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'

Loading…
Cancel
Save