leisure-core 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/le-coupon/src/details.vue +10 -0
- package/le-coupon-give/src/main.vue +17 -1
- package/le-user/src/main.vue +1 -0
- package/package.json +1 -1
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
></el-option>
|
|
23
23
|
</el-select>
|
|
24
24
|
</el-form-item>
|
|
25
|
+
<el-form-item label="手机号">
|
|
26
|
+
<el-input v-model="searchData.phone" placeholder="手机号"></el-input>
|
|
27
|
+
</el-form-item>
|
|
25
28
|
<el-form-item
|
|
26
29
|
><el-button type="primary" @click="list">查询</el-button></el-form-item
|
|
27
30
|
>
|
|
@@ -48,6 +51,12 @@
|
|
|
48
51
|
show-overflow-tooltip
|
|
49
52
|
tooltip-effect="dark"
|
|
50
53
|
></el-table-column>
|
|
54
|
+
<el-table-column
|
|
55
|
+
prop="phone"
|
|
56
|
+
label="用户手机号"
|
|
57
|
+
show-overflow-tooltip
|
|
58
|
+
tooltip-effect="dark"
|
|
59
|
+
></el-table-column>
|
|
51
60
|
<el-table-column prop="oid" label="使用的订单id">
|
|
52
61
|
<template slot-scope="scope">
|
|
53
62
|
{{ scope.row.status == 1 ? scope.row.oid : "" }}
|
|
@@ -111,6 +120,7 @@ export default {
|
|
|
111
120
|
total: 1,
|
|
112
121
|
date_end: "",
|
|
113
122
|
date_start: "",
|
|
123
|
+
phone: "",
|
|
114
124
|
},
|
|
115
125
|
timeArr: "",
|
|
116
126
|
status: 0,
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
</el-option>
|
|
19
19
|
</el-select>
|
|
20
20
|
</el-form-item>
|
|
21
|
+
<el-form-item label="赠送原因" prop="source">
|
|
22
|
+
<el-input v-model="ruleForm.source"></el-input>
|
|
23
|
+
</el-form-item>
|
|
21
24
|
<el-form-item v-rfooter>
|
|
22
25
|
<el-button type="info" @click="close()">取消</el-button>
|
|
23
26
|
<el-button type="primary" @click="save">保存</el-button>
|
|
@@ -37,15 +40,27 @@ export default {
|
|
|
37
40
|
type: String,
|
|
38
41
|
default: "",
|
|
39
42
|
},
|
|
43
|
+
phone: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "",
|
|
46
|
+
},
|
|
40
47
|
},
|
|
41
48
|
data() {
|
|
42
49
|
return {
|
|
43
50
|
coupons: [],
|
|
44
51
|
ruleForm: {
|
|
45
52
|
cid: "",
|
|
53
|
+
source: "",
|
|
46
54
|
},
|
|
47
55
|
rules: {
|
|
48
56
|
cid: [{ required: true, message: "必须选择优惠券", trigger: "blur" }],
|
|
57
|
+
source: [
|
|
58
|
+
{
|
|
59
|
+
max: 150,
|
|
60
|
+
message: "长度在 1 到 150个字符",
|
|
61
|
+
trigger: "blur",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
49
64
|
},
|
|
50
65
|
};
|
|
51
66
|
},
|
|
@@ -70,7 +85,8 @@ export default {
|
|
|
70
85
|
couponId: this.ruleForm.cid,
|
|
71
86
|
uid: this.uid,
|
|
72
87
|
unionid: this.unionid,
|
|
73
|
-
|
|
88
|
+
phone: this.phone,
|
|
89
|
+
source: "后台赠送优惠券" + this.ruleForm.source,
|
|
74
90
|
};
|
|
75
91
|
sendCoupons(params)
|
|
76
92
|
.then((res) => {
|
package/le-user/src/main.vue
CHANGED