leisure-core 0.4.15 → 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-ad/src/sub.vue CHANGED
@@ -19,7 +19,7 @@
19
19
  <el-option
20
20
  v-for="option in sidOptions"
21
21
  :key="option.id"
22
- :label="option.title"
22
+ :label="option.title + option.code"
23
23
  :value="option.id"
24
24
  >
25
25
  </el-option>
@@ -24,6 +24,7 @@
24
24
  </template>
25
25
  </el-table-column>
26
26
  <el-table-column prop="title" label="广告位"> </el-table-column>
27
+ <el-table-column prop="code" label="编码"> </el-table-column>
27
28
  <el-table-column prop="status" label="状态">
28
29
  <template slot-scope="scope">
29
30
  <span v-if="scope.row.status == 0">未启用</span>
@@ -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
- source: "后台赠送优惠券",
88
+ phone: this.phone,
89
+ source: "后台赠送优惠券" + this.ruleForm.source,
74
90
  };
75
91
  sendCoupons(params)
76
92
  .then((res) => {
@@ -138,7 +138,6 @@ export default {
138
138
  this.form.date_end = new Date(this.rowData.date_end * 1000);
139
139
  this.form.is_used_coupon = "1";
140
140
  this.form.is_used_integral = "1";
141
- this.form.category = 1;
142
141
  this.form.released = this.form.released.toString();
143
142
  if (this.form.grang == 2) {
144
143
  let products = this.form.grang_product;
@@ -159,6 +159,7 @@
159
159
  v-if="showYhj"
160
160
  :uid="currentUser.id"
161
161
  :unionid="currentUser.unionid"
162
+ :phone="currentUser.phone"
162
163
  @close="cancelShowYhj"
163
164
  ></le-coupon-give>
164
165
  </le-dialog-container>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "description": "leisure-core是leisure-ui-core的简称,是京心数据基于vue2.0开发的一套后台系统框架与js库,包含登录,首页框架等",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",