Commit e31c7a45 authored by xd's avatar xd

优惠券ID写死

parent eafb8c60
...@@ -145,12 +145,12 @@ ...@@ -145,12 +145,12 @@
class="right noborder" class="right noborder"
readonly readonly
clickable clickable
:value="addForm.couponId" :value="addForm.couponIds"
placeholder="请输入优惠券ID" placeholder="请输入优惠券ID"
@touchstart.native.stop="unitShow = true" @touchstart.native.stop="unitShow = true"
/> />
<van-number-keyboard <van-number-keyboard
v-model="addForm.couponId " v-model="addForm.couponIds "
:show="unitShow" :show="unitShow"
@blur="unitShow = false" @blur="unitShow = false"
/> />
...@@ -228,13 +228,14 @@ export default { ...@@ -228,13 +228,14 @@ export default {
unit: '', unit: '',
instruction: '', instruction: '',
limitOfUse: '', limitOfUse: '',
couponId: '', couponIds: '',
remind: '', remind: '',
usageMax: '', usageMax: '',
salesAmount: '', salesAmount: '',
usageAmount: '', usageAmount: '',
deptId: '', deptId: '',
cxcode: '' cxcode: '',
couponId: 126
}, },
typeList: ['现金券'], typeList: ['现金券'],
storeList: [ storeList: [
...@@ -326,7 +327,7 @@ export default { ...@@ -326,7 +327,7 @@ export default {
this.$toast("请输入结束时间") this.$toast("请输入结束时间")
return false return false
} }
if(!this.addForm.couponId){ if(!this.addForm.couponIds){
this.$toast("请输入优惠券ID") this.$toast("请输入优惠券ID")
return false return false
} }
...@@ -351,7 +352,6 @@ export default { ...@@ -351,7 +352,6 @@ export default {
this.$toast("请输入用券金额") this.$toast("请输入用券金额")
return false return false
} }
addCoupon(this.addForm).then(res => { addCoupon(this.addForm).then(res => {
console.log(res,'res') console.log(res,'res')
if(res.errorCode == "fail") { if(res.errorCode == "fail") {
......
...@@ -375,6 +375,7 @@ export default { ...@@ -375,6 +375,7 @@ export default {
}) })
}, },
// 获取店铺新增粉丝
getAllNewFans() { getAllNewFans() {
let params = { let params = {
oyStallCode: this.oyStallCode oyStallCode: this.oyStallCode
...@@ -386,6 +387,7 @@ export default { ...@@ -386,6 +387,7 @@ export default {
console.log(err); console.log(err);
}) })
}, },
// 获取新增粉丝
getAddFans(flag, userId) { getAddFans(flag, userId) {
let JsonStr = {} let JsonStr = {}
if (flag == 1) { if (flag == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment