jufubao-movie 1.0.29-beta6 → 1.0.30-beta1

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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbMovieAfterOrder/JfbMovieAfterOrder.vue +4 -3
  3. package/src/components/JfbMovieAfterOrder/JfbMovieAfterOrderLess.less +18 -19
  4. package/src/components/JfbMovieAfterOrderDetail/JfbMovieAfterOrderDetail.vue +4 -3
  5. package/src/components/JfbMovieAfterOrderDetail/JfbMovieAfterOrderDetailLess.less +18 -19
  6. package/src/components/JfbMovieCenter/JfbMovieCenter.vue +4 -3
  7. package/src/components/JfbMovieCenter/JfbMovieCenterLess.less +18 -19
  8. package/src/components/JfbMovieCode/JfbMovieCode.vue +7 -6
  9. package/src/components/JfbMovieCode/JfbMovieCodeLess.less +18 -19
  10. package/src/components/JfbMovieCodeChoose/Attr.js +84 -67
  11. package/src/components/JfbMovieCodeChoose/JfbMovieCodeChoose.vue +52 -118
  12. package/src/components/JfbMovieCodeChoose/JfbMovieCodeChooseLess.less +18 -19
  13. package/src/components/JfbMovieConfirm/Attr.js +11 -10
  14. package/src/components/JfbMovieConfirm/JfbMovieConfirm.vue +5 -4
  15. package/src/components/JfbMovieConfirm/JfbMovieConfirmLess.less +18 -19
  16. package/src/components/JfbMovieLineCinema/Attr.js +17 -14
  17. package/src/components/JfbMovieLineCinema/JfbMovieLineCinema.vue +3 -2
  18. package/src/components/JfbMovieLineCinema/JfbMovieLineCinemaLess.less +18 -19
  19. package/src/components/JfbMovieLineCinemaChoose/Attr.js +7 -7
  20. package/src/components/JfbMovieLineCinemaChoose/JfbMovieLineCinemaChoose.vue +3 -2
  21. package/src/components/JfbMovieLineCinemaChoose/JfbMovieLineCinemaChooseLess.less +18 -19
  22. package/src/components/JfbMovieLineFilm/Attr.js +15 -25
  23. package/src/components/JfbMovieLineFilm/JfbMovieLineFilm.vue +3 -2
  24. package/src/components/JfbMovieLineFilm/JfbMovieLineFilmLess.less +18 -19
  25. package/src/components/JfbMovieLineFilmInfo/Attr.js +5 -3
  26. package/src/components/JfbMovieLineFilmInfo/JfbMovieLineFilmInfo.vue +3 -3
  27. package/src/components/JfbMovieLineFilmInfo/JfbMovieLineFilmInfoLess.less +18 -19
  28. package/src/components/JfbMovieLineLineSeat/Attr.js +11 -10
  29. package/src/components/JfbMovieLineLineSeat/JfbMovieLineLineSeat.vue +6 -5
  30. package/src/components/JfbMovieLineLineSeat/JfbMovieLineLineSeatLess.less +18 -19
  31. package/src/components/JfbMovieLineLineSeat/Mock.js +2 -2
  32. package/src/components/JfbMovieLineSchedule/Attr.js +13 -8
  33. package/src/components/JfbMovieLineSchedule/JfbMovieLineSchedule.vue +9 -8
  34. package/src/components/JfbMovieLineSchedule/JfbMovieLineScheduleLess.less +18 -19
  35. package/src/components/JfbMovieOrder/JfbMovieOrder.vue +4 -3
  36. package/src/components/JfbMovieOrder/JfbMovieOrderLess.less +18 -19
  37. package/src/components/JfbMovieOrderDetail/JfbMovieOrderDetail.vue +4 -3
  38. package/src/components/JfbMovieOrderDetail/JfbMovieOrderDetailLess.less +18 -19
  39. package/src/components/JfbMoviePay/JfbMoviePay.vue +4 -3
  40. package/src/components/JfbMoviePay/JfbMoviePayLess.less +18 -19
  41. package/src/components/JfbMovieTestApi/Api.js +0 -57
  42. package/src/components/JfbMovieTestApi/Attr.js +0 -45
  43. package/src/components/JfbMovieTestApi/JfbMovieTestApi.vue +0 -77
  44. package/src/components/JfbMovieTestApi/JfbMovieTestApiLess.less +0 -80
  45. package/src/components/JfbMovieTestApi/JfbMovieTestApiMixin.js +0 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-movie",
3
- "version": "1.0.29-beta6",
3
+ "version": "1.0.30-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -82,9 +82,10 @@
82
82
  }
83
83
  },
84
84
  watch: {
85
- container(value) {
86
- this.init(value)
87
- }
85
+ container(value,oldValue) {
86
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
87
+ if (this.$configProject['isPreview']) this.init(value)
88
+ },
88
89
  },
89
90
  created() {
90
91
  this.init(this.container);
@@ -13,9 +13,7 @@
13
13
 
14
14
  //start
15
15
  .jfb-movie-after-order {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
19
17
 
20
18
  &__body{
21
19
  position: relative;
@@ -23,21 +21,22 @@
23
21
  z-index: 2
24
22
  }
25
23
 
26
- &.editx {
24
+ &.editx,&.editx:hover {
27
25
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-movie-after-order {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -131,9 +131,10 @@
131
131
  }
132
132
  },
133
133
  watch: {
134
- container(value) {
135
- this.init(value)
136
- }
134
+ container(value,oldValue) {
135
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
136
+ if (this.$configProject['isPreview']) this.init(value)
137
+ },
137
138
  },
138
139
  created() {
139
140
  this.init(this.container);
@@ -13,9 +13,7 @@
13
13
 
14
14
  //start
15
15
  .jfb-movie-after-order-detail {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
19
17
 
20
18
  &__body{
21
19
  position: relative;
@@ -23,21 +21,22 @@
23
21
  z-index: 2
24
22
  }
25
23
 
26
- &.editx {
24
+ &.editx,&.editx:hover {
27
25
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-movie-after-order-detail {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -162,9 +162,10 @@
162
162
  }
163
163
  },
164
164
  watch: {
165
- container(value) {
166
- this.init(value)
167
- }
165
+ container(value,oldValue) {
166
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
167
+ if (this.$configProject['isPreview']) this.init(value)
168
+ },
168
169
  },
169
170
  created() {
170
171
  if (getApp().globalData.$xd && getApp().globalData.$xd['userInfo']) {
@@ -13,9 +13,7 @@
13
13
 
14
14
  //start
15
15
  .jfb-movie-center {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
19
17
 
20
18
  &__body{
21
19
  position: relative;
@@ -23,21 +21,22 @@
23
21
  z-index: 2
24
22
  }
25
23
 
26
- &.editx {
24
+ &.editx,&.editx:hover {
27
25
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-movie-center {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -71,16 +71,17 @@
71
71
  }
72
72
  },
73
73
  watch: {
74
- container(value) {
75
- this.init(value)
76
- }
74
+ container(value,oldValue) {
75
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
76
+ if (this.$configProject['isPreview']) this.init(value)
77
+ },
77
78
  },
78
79
  created() {
79
80
  this.init(this.container);
80
81
  },
81
82
  methods: {
82
83
  onJfbLoad(options) {
83
-
84
+
84
85
  },
85
86
  handleSubmit() {
86
87
  if (this.isEmpty(this.phone)) {
@@ -120,9 +121,9 @@
120
121
  * @param container {object} 业务组件对象自己
121
122
  */
122
123
  init(container) {
123
-
124
+
124
125
  },
125
-
126
+
126
127
  onJfbBack(options) {
127
128
  this.$xdUniHelper.navigateBack()
128
129
  },
@@ -13,9 +13,7 @@
13
13
 
14
14
  //start
15
15
  .jfb-movie-code {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(100, rpx);
19
17
 
20
18
  &__body{
21
19
  position: relative;
@@ -23,21 +21,22 @@
23
21
  z-index: 2
24
22
  }
25
23
 
26
- &.editx {
24
+ &.editx,&.editx:hover {
27
25
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-movie-code {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -10,12 +10,13 @@ export default {
10
10
  valueKey: 'margin',
11
11
  value: data['margin'] || null,
12
12
  disabled: false,
13
+ groupKey:'style',
13
14
  setting: {
14
15
  type: 'margin',
15
16
  },
16
17
  placeholder: '请设置外边距',
17
18
  inline: false,
18
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:0像素',
19
+ notice: '设置外边距,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span>像素',
19
20
  },
20
21
  {
21
22
  label: '间距:',
@@ -25,11 +26,16 @@ export default {
25
26
  value: data.padding || '',
26
27
  placeholder: '请输入间距',
27
28
  className: 'input80',
29
+ groupKey:'style',
30
+ inline: false,
31
+ notice: '设置列表之间间距,单位:<span style="color: red">像素</span>。默认值:<span style="color: red">20</span>像素',
28
32
  },
33
+
29
34
  {
30
35
  ele: 'title',
31
36
  label: '门店详情配置',
32
- size: 'small', //default/mini/small
37
+ size: 'small',
38
+ groupKey:'style',
33
39
  },
34
40
  {
35
41
  label: '背景颜色:',
@@ -38,11 +44,35 @@ export default {
38
44
  value: data['backgroundColor'] || null,
39
45
  placeholder: '请选择背景颜色',
40
46
  classNmae: 'input80',
47
+ groupKey:'style',
41
48
  },
42
49
  {
43
- ele: 'title',
44
- label: '投影设置',
45
- size: 'small', //default/mini/small
50
+ label: '文字颜色:',
51
+ ele: 'xd-color',
52
+ valueKey: 'textColor',
53
+ value: data['textColor'] || null,
54
+ placeholder: '请选择背景颜色',
55
+ classNmae: 'input80',
56
+ groupKey:'style',
57
+ },
58
+ {
59
+ label: '内容圆角设置:',
60
+ ele: 'xd-site-select-list',
61
+ valueKey: 'radius',
62
+ value: data['radius'] || '',
63
+ placeholder: '请选择内容圆角设置',
64
+ multiple: false,
65
+ className: 'input80',
66
+ groupKey:'style',
67
+ handleCustom({action, data}) {
68
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
69
+ .then(res => {
70
+ data.cb(res.list)
71
+ })
72
+ .catch(error => {
73
+ console.error(error);
74
+ });
75
+ },
46
76
  },
47
77
  {
48
78
  label: '是否有投影:',
@@ -52,6 +82,7 @@ export default {
52
82
  placeholder: '请选择是否投影',
53
83
  multiple: false,
54
84
  className: 'input80',
85
+ groupKey:'style',
55
86
  list: [
56
87
  {label: '是', value: 'Y'},
57
88
  {label: '否', value: 'N'},
@@ -64,6 +95,7 @@ export default {
64
95
  value: data['is_shadow_bg'] || '',
65
96
  placeholder: '请选择投影颜色',
66
97
  classNmae: 'input80',
98
+ groupKey:'style',
67
99
  },
68
100
  data['is_shadow'] === 'Y' && {
69
101
  label: '投影范围:',
@@ -71,6 +103,7 @@ export default {
71
103
  valueKey: 'is_shadow_w',
72
104
  value: data['is_shadow_w'] || '10',
73
105
  placeholder: '请选择投影范围',
106
+ groupKey:'style',
74
107
  multiple: false,
75
108
  className: 'input80',
76
109
  handleCustom({action, data}) {
@@ -86,11 +119,6 @@ export default {
86
119
  });
87
120
  },
88
121
  },
89
- {
90
- ele: 'title',
91
- label: '边框设置',
92
- size: 'small', //default/mini/small
93
- },
94
122
  {
95
123
  label: '是否有边框:',
96
124
  ele: 'xd-radio',
@@ -98,6 +126,7 @@ export default {
98
126
  value: data['is_border'] || 'N',
99
127
  placeholder: '请选择是否有边框',
100
128
  multiple: false,
129
+ groupKey:'style',
101
130
  className: 'input80',
102
131
  list: [
103
132
  {label: '是', value: 'Y'},
@@ -111,24 +140,52 @@ export default {
111
140
  value: data['is_border_c'] || '',
112
141
  placeholder: '请选择边框颜色',
113
142
  classNmae: 'input80',
143
+ groupKey:'style',
114
144
  },
115
145
  data['is_border'] === 'Y' && {
116
146
  label: '边框大小:',
117
147
  ele: 'el-input',
118
148
  type: 'number',
149
+ groupKey:'style',
119
150
  valueKey: 'is_border_w',
120
151
  value: data['is_border_w'] || '',
121
152
  placeholder: '请输入边框颜色',
122
153
  className: 'input80',
123
154
  },
155
+
156
+ {
157
+ ele: 'title',
158
+ label: '商品列表配置',
159
+ size: 'small',
160
+ groupKey:'style',
161
+ },
162
+ {
163
+ label: '背景颜色:',
164
+ ele: 'xd-color',
165
+ valueKey: 'listBackgroundColor',
166
+ value: data['listBackgroundColor'] || null,
167
+ placeholder: '请选择背景颜色',
168
+ classNmae: 'input80',
169
+ groupKey:'style',
170
+ },
171
+ {
172
+ label: '文字颜色:',
173
+ ele: 'xd-color',
174
+ valueKey: 'listTextColor',
175
+ value: data['listTextColor'] || null,
176
+ placeholder: '请选择背景颜色',
177
+ classNmae: 'input80',
178
+ groupKey:'style',
179
+ },
124
180
  {
125
181
  label: '内容圆角设置:',
126
182
  ele: 'xd-site-select-list',
127
- valueKey: 'radius',
128
- value: data['radius'] || '',
183
+ valueKey: 'listRadius',
184
+ value: data['listRadius'] || '',
129
185
  placeholder: '请选择内容圆角设置',
130
186
  multiple: false,
131
187
  className: 'input80',
188
+ groupKey:'style',
132
189
  handleCustom({action, data}) {
133
190
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
134
191
  .then(res => {
@@ -139,24 +196,6 @@ export default {
139
196
  });
140
197
  },
141
198
  },
142
- {
143
- ele: 'title',
144
- label: '商品列表配置',
145
- size: 'small', //default/mini/small
146
- },
147
- {
148
- label: '背景颜色:',
149
- ele: 'xd-color',
150
- valueKey: 'listBackgroundColor',
151
- value: data['listBackgroundColor'] || null,
152
- placeholder: '请选择背景颜色',
153
- classNmae: 'input80',
154
- },
155
- {
156
- ele: 'title',
157
- label: '投影设置',
158
- size: 'small', //default/mini/small
159
- },
160
199
  {
161
200
  label: '是否有投影:',
162
201
  ele: 'xd-radio',
@@ -164,26 +203,29 @@ export default {
164
203
  value: data['list_is_shadow'] || 'N',
165
204
  placeholder: '请选择是否投影',
166
205
  multiple: false,
206
+ groupKey:'style',
167
207
  className: 'input80',
168
208
  list: [
169
209
  {label: '是', value: 'Y'},
170
210
  {label: '否', value: 'N'},
171
211
  ]
172
212
  },
173
- data['is_shadow'] === 'Y' && {
213
+ data['list_is_shadow'] === 'Y' && {
174
214
  label: '投影颜色:',
175
215
  ele: 'xd-color',
176
216
  valueKey: 'list_is_shadow_bg',
177
217
  value: data['list_is_shadow_bg'] || '',
178
218
  placeholder: '请选择投影颜色',
179
219
  classNmae: 'input80',
220
+ groupKey:'style',
180
221
  },
181
- data['is_shadow'] === 'Y' && {
222
+ data['list_is_shadow'] === 'Y' && {
182
223
  label: '投影范围:',
183
224
  ele: 'xd-site-select-list',
184
225
  valueKey: 'list_is_shadow_w',
185
226
  value: data['list_is_shadow_w'] || '10',
186
227
  placeholder: '请选择投影范围',
228
+ groupKey:'style',
187
229
  multiple: false,
188
230
  className: 'input80',
189
231
  handleCustom({action, data}) {
@@ -199,11 +241,6 @@ export default {
199
241
  });
200
242
  },
201
243
  },
202
- {
203
- ele: 'title',
204
- label: '边框设置',
205
- size: 'small', //default/mini/small
206
- },
207
244
  {
208
245
  label: '是否有边框:',
209
246
  ele: 'xd-radio',
@@ -211,63 +248,43 @@ export default {
211
248
  value: data['list_is_border'] || 'N',
212
249
  placeholder: '请选择是否有边框',
213
250
  multiple: false,
251
+ groupKey:'style',
214
252
  className: 'input80',
215
253
  list: [
216
254
  {label: '是', value: 'Y'},
217
255
  {label: '否', value: 'N'},
218
256
  ]
219
257
  },
220
- data['is_border'] === 'Y' && {
258
+ data['list_is_border'] === 'Y' && {
221
259
  label: '边框颜色:',
222
260
  ele: 'xd-color',
223
261
  valueKey: 'list_is_border_c',
224
262
  value: data['list_is_border_c'] || '',
225
263
  placeholder: '请选择边框颜色',
264
+ groupKey:'style',
226
265
  classNmae: 'input80',
227
266
  },
228
- data['is_border'] === 'Y' && {
267
+ data['list_is_border'] === 'Y' && {
229
268
  label: '边框大小:',
230
269
  ele: 'el-input',
270
+ groupKey:'style',
231
271
  type: 'number',
232
272
  valueKey: 'list_is_border_w',
233
273
  value: data['list_is_border_w'] || '',
234
274
  placeholder: '请输入边框颜色',
235
275
  className: 'input80',
236
276
  },
277
+
237
278
  {
238
- label: '内容圆角设置:',
239
- ele: 'xd-site-select-list',
240
- valueKey: 'listRadius',
241
- value: data['listRadius'] || '',
242
- placeholder: '请选择内容圆角设置',
243
- multiple: false,
244
- className: 'input80',
245
- handleCustom({action, data}) {
246
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
247
- .then(res => {
248
- data.cb(res.list)
249
- })
250
- .catch(error => {
251
- console.error(error);
252
- });
253
- },
254
- },
255
- {
256
- ele: 'title',
257
- label: '其他',
258
- size: 'small', //default/mini/small
259
- },
260
- {
261
- label: '商品详情路径:', //label
262
- ele: 'xd-select-pages-path', //package 名称
263
- valueKey: 'detailPath', //form[valueKey]
279
+ label: '商品详情路径:',
280
+ ele: 'xd-select-pages-path',
281
+ valueKey: 'detailPath',
264
282
  placeholder: '请选择商品详情路径',
265
283
  value: data['detailPath'] || null,
284
+ groupKey:'advanced',
266
285
  setting: {
267
286
  router: XdBus.getParentApi('getPagesTree'),
268
-
269
287
  },
270
- inline: false,
271
288
  },
272
289
  ].filter(i=>i)
273
290
  },