jufubao-base 1.0.424 → 1.0.425-beta2
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/package.json +1 -1
- package/src/components/JfbBaseRecharge/Attr.js +5 -262
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +6 -8
- package/src/components/JfbBaseRecharge/cusAttr/advanced.js +43 -0
- package/src/components/JfbBaseRecharge/cusAttr/content.js +272 -0
- package/src/components/JfbBaseRechargeNew/Attr.js +17 -20
- package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNew.vue +67 -13
- package/src/components/JfbBaseRechargeNew/cusAttr/advanced.js +43 -0
- package/src/components/JfbBaseRechargeNew/cusAttr/style.js +264 -0
- package/src/components/JfbBaseRechargeOrder/Attr.js +7 -169
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +65 -92
- package/src/components/JfbBaseRechargeOrder/cusAttr/advanced.js +58 -0
- package/src/components/JfbBaseRechargeOrder/cusAttr/content.js +38 -0
- package/src/components/JfbBaseRechargeOrder/cusAttr/style.js +293 -0
- package/src/components/JfbBaseRechargeOrderDetail/Attr.js +5 -3
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +80 -55
- package/src/components/JfbBaseRechargeOrderDetail/cusAttr/content.js +38 -0
- package/src/components/JfbBaseRechargeOrderDetail/cusAttr/style.js +232 -0
- package/src/components/JfbBaseRechargeSuccess/Attr.js +5 -28
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +99 -29
- package/src/components/JfbBaseRechargeSuccess/cusAttr/advanced.js +59 -0
- package/src/components/JfbBaseRechargeSuccess/cusAttr/style.js +205 -0
package/package.json
CHANGED
|
@@ -1,270 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
import advanced from "./cusAttr/advanced";
|
|
3
|
+
import content from "./cusAttr/content";
|
|
2
4
|
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
5
|
export default {
|
|
7
6
|
style: [],
|
|
8
|
-
content: (data) => {
|
|
7
|
+
content: (data, gValue, gColor, oldData) => {
|
|
9
8
|
return [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ele: 'el-input',
|
|
13
|
-
type: 'text',
|
|
14
|
-
valueKey: 'card_num_placeholder',
|
|
15
|
-
groupKey:'content',
|
|
16
|
-
value: data.card_num_placeholder||'',
|
|
17
|
-
placeholder: '请输入票券框自定义文案',
|
|
18
|
-
className: 'input80'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: '票券充值点数自定义文案:',
|
|
22
|
-
ele: 'el-input',
|
|
23
|
-
type: 'text',
|
|
24
|
-
valueKey: 'point_placeholder',
|
|
25
|
-
groupKey:'content',
|
|
26
|
-
value: data.point_placeholder || '',
|
|
27
|
-
placeholder: '请输入票券充值点数自定义文案',
|
|
28
|
-
className: 'input80'
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: '注意事项:',
|
|
32
|
-
ele: 'xd-site-news',
|
|
33
|
-
valueKey: 'notice',
|
|
34
|
-
groupKey:'content',
|
|
35
|
-
value: data.notice || null,
|
|
36
|
-
className: 'input70',
|
|
37
|
-
setting: {
|
|
38
|
-
config: {
|
|
39
|
-
sort: true,
|
|
40
|
-
maxlen: 100,
|
|
41
|
-
action: 'aliyun',
|
|
42
|
-
size: 5,
|
|
43
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
44
|
-
uploadType: 'aliyun',
|
|
45
|
-
type: ['jpg', 'png', 'jpeg']
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
handleCustom({action, data}) {
|
|
49
|
-
if (data && data.params) {
|
|
50
|
-
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
51
|
-
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
//获取返回参数(场景类型名称为必填)
|
|
55
|
-
//let loading = XdBus.getParentApi('loading')({});
|
|
56
|
-
|
|
57
|
-
//获取返回参数(场景类型名称为必填)
|
|
58
|
-
let loading = { close(){}}
|
|
59
|
-
|
|
60
|
-
//获取显示内容
|
|
61
|
-
if (action === 'screen') {
|
|
62
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
63
|
-
.then(res => {
|
|
64
|
-
loading.close();
|
|
65
|
-
data.cb(res['list'])
|
|
66
|
-
})
|
|
67
|
-
.catch(error => {
|
|
68
|
-
console.error(error);
|
|
69
|
-
loading.close();
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
//获取返回参数(广告位高度必选项)
|
|
75
|
-
if (action === 'getNewsInfo') {
|
|
76
|
-
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
77
|
-
.then(res => {
|
|
78
|
-
loading.close()
|
|
79
|
-
data.cb({list: res.list, selectId: res.selected})
|
|
80
|
-
})
|
|
81
|
-
.catch(error => {
|
|
82
|
-
loading.close()
|
|
83
|
-
console.error(error);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
//获取产品业务线列表
|
|
88
|
-
if (action === 'namespace') {
|
|
89
|
-
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
90
|
-
.then(res => {
|
|
91
|
-
loading.close()
|
|
92
|
-
data.cb(res['list'])
|
|
93
|
-
})
|
|
94
|
-
.catch(error => {
|
|
95
|
-
loading.close()
|
|
96
|
-
console.error(error);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
//使用内容分类
|
|
101
|
-
if (action === 'cmsPublishEditxContent') {
|
|
102
|
-
loading = XdBus.getParentApi('loading')({});
|
|
103
|
-
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
104
|
-
.then(res => {
|
|
105
|
-
console.log('cmsPublishEditxContent', res)
|
|
106
|
-
loading.close();
|
|
107
|
-
data.cb(res)
|
|
108
|
-
})
|
|
109
|
-
.catch(error => {
|
|
110
|
-
loading.close();
|
|
111
|
-
console.error(error);
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
//位置列表
|
|
116
|
-
if (action === 'getListPostion') {
|
|
117
|
-
loading = XdBus.getParentApi('loading')({});
|
|
118
|
-
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
119
|
-
.then(res => {
|
|
120
|
-
loading.close();
|
|
121
|
-
data.cb(res)
|
|
122
|
-
})
|
|
123
|
-
.catch(error => {
|
|
124
|
-
loading.close();
|
|
125
|
-
console.error(error);
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
//位置创建
|
|
130
|
-
if (action === 'addPostion') {
|
|
131
|
-
loading = XdBus.getParentApi('loading')({});
|
|
132
|
-
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
133
|
-
.then(res => {
|
|
134
|
-
loading.close();
|
|
135
|
-
data.cb(true)
|
|
136
|
-
})
|
|
137
|
-
.catch(error => {
|
|
138
|
-
console.error(error);
|
|
139
|
-
loading.close();
|
|
140
|
-
data.cb(false)
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//位置编辑
|
|
145
|
-
if (action === 'editPostion') {
|
|
146
|
-
loading = XdBus.getParentApi('loading')({});
|
|
147
|
-
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
148
|
-
.then(res => {
|
|
149
|
-
loading.close();
|
|
150
|
-
data.cb(true)
|
|
151
|
-
})
|
|
152
|
-
.catch(error => {
|
|
153
|
-
console.error(error);
|
|
154
|
-
loading.close();
|
|
155
|
-
data.cb(false)
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
//位置删除
|
|
160
|
-
if (action === 'deleltePostion') {
|
|
161
|
-
loading = XdBus.getParentApi('loading')({});
|
|
162
|
-
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
163
|
-
.then(res => {
|
|
164
|
-
loading.close();
|
|
165
|
-
data.cb(true)
|
|
166
|
-
})
|
|
167
|
-
.catch(error => {
|
|
168
|
-
console.error(error);
|
|
169
|
-
loading.close();
|
|
170
|
-
data.cb(false)
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
//获取广告位内容列表
|
|
175
|
-
if (action === 'getListContent') {
|
|
176
|
-
loading = XdBus.getParentApi('loading')({});
|
|
177
|
-
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
178
|
-
.then(res => {
|
|
179
|
-
loading.close();
|
|
180
|
-
data.cb(res)
|
|
181
|
-
})
|
|
182
|
-
.catch(error => {
|
|
183
|
-
loading.close();
|
|
184
|
-
console.error(error);
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
//广告内容创建
|
|
189
|
-
if (action === 'addContent') {
|
|
190
|
-
loading = XdBus.getParentApi('loading')({});
|
|
191
|
-
XdBus.getParentApi('addNewsContent')(data.params)
|
|
192
|
-
.then(res => {
|
|
193
|
-
loading.close();
|
|
194
|
-
data.cb(true)
|
|
195
|
-
})
|
|
196
|
-
.catch(error => {
|
|
197
|
-
console.error(error);
|
|
198
|
-
loading.close();
|
|
199
|
-
data.cb(false)
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
//广告内容编辑
|
|
204
|
-
if (action === 'editContent') {
|
|
205
|
-
loading = XdBus.getParentApi('loading')({});
|
|
206
|
-
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
207
|
-
.then(res => {
|
|
208
|
-
loading.close();
|
|
209
|
-
data.cb(true)
|
|
210
|
-
})
|
|
211
|
-
.catch(error => {
|
|
212
|
-
console.error(error);
|
|
213
|
-
loading.close();
|
|
214
|
-
data.cb(false)
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
//广告内容删除
|
|
219
|
-
if (action === 'deleteContent') {
|
|
220
|
-
loading = XdBus.getParentApi('loading')({});
|
|
221
|
-
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
222
|
-
.then(res => {
|
|
223
|
-
loading.close();
|
|
224
|
-
data.cb(true)
|
|
225
|
-
})
|
|
226
|
-
.catch(error => {
|
|
227
|
-
console.error(error);
|
|
228
|
-
loading.close();
|
|
229
|
-
data.cb(false)
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
//内容发布
|
|
234
|
-
if (action === 'publish') {
|
|
235
|
-
loading = XdBus.getParentApi('loading')({});
|
|
236
|
-
console.log('publish', data.params)
|
|
237
|
-
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
238
|
-
.then(res => {
|
|
239
|
-
loading.close();
|
|
240
|
-
data.cb(res)
|
|
241
|
-
})
|
|
242
|
-
.catch(error => {
|
|
243
|
-
loading.close();
|
|
244
|
-
console.error(error);
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
//通知页面进行刷新
|
|
249
|
-
if (action === 'update') {
|
|
250
|
-
loading = XdBus.getParentApi('loading')({});
|
|
251
|
-
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
252
|
-
loading.close()
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
label: '票券支付路径:',
|
|
258
|
-
ele: 'xd-select-pages-path',
|
|
259
|
-
valueKey: 'payPath',
|
|
260
|
-
groupKey:'advanced',
|
|
261
|
-
placeholder: '请选择票券支付路径',
|
|
262
|
-
value: data['payPath'] || {},
|
|
263
|
-
setting: {
|
|
264
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
265
|
-
},
|
|
266
|
-
inline: false,
|
|
267
|
-
},
|
|
9
|
+
...content(data, gValue, gColor, oldData),
|
|
10
|
+
...advanced(data, gValue, gColor, oldData),
|
|
268
11
|
].filter(i=>i)
|
|
269
12
|
},
|
|
270
13
|
advanced: [ ],
|
|
@@ -65,7 +65,7 @@ import XdButton from "@/components/XdButton/XdButton";
|
|
|
65
65
|
import XdUnit from "@/components/XdUnit/XdUnit.vue";
|
|
66
66
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
67
67
|
import JfbBaseRechargeMixin from "./JfbBaseRechargeMixin";
|
|
68
|
-
import {
|
|
68
|
+
import { gCPVal } from "@/utils/xd.base";
|
|
69
69
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
70
70
|
import extsMixins from "@/mixins/extsMixins";
|
|
71
71
|
import Color from "color";
|
|
@@ -104,7 +104,7 @@ export default {
|
|
|
104
104
|
card_point(value) {
|
|
105
105
|
if(this.timer) clearTimeout(this.timer);
|
|
106
106
|
this.timer = setTimeout(()=>{
|
|
107
|
-
if (value && value
|
|
107
|
+
if (value && value !== 0) {
|
|
108
108
|
this.handleGetPrice();
|
|
109
109
|
}
|
|
110
110
|
}, 1000)
|
|
@@ -124,9 +124,9 @@ export default {
|
|
|
124
124
|
* @param container {object} 业务组件对象自己
|
|
125
125
|
*/
|
|
126
126
|
init(container) {
|
|
127
|
-
this.card_num_placeholder =
|
|
128
|
-
this.point_placeholder =
|
|
129
|
-
this.payPath =
|
|
127
|
+
this.card_num_placeholder = gCPVal(container, "card_num_placeholder", "输入券号");
|
|
128
|
+
this.point_placeholder = gCPVal(container, "point_placeholder", "充值点数");
|
|
129
|
+
this.payPath = gCPVal(container, "payPath", {value: "",}).value;
|
|
130
130
|
},
|
|
131
131
|
|
|
132
132
|
|
|
@@ -150,6 +150,7 @@ export default {
|
|
|
150
150
|
},
|
|
151
151
|
|
|
152
152
|
toLink(pay_order_id, order_id){
|
|
153
|
+
if (this.$configProject["isPreview"]) return;
|
|
153
154
|
this.$xdUniHelper.navigateTo({
|
|
154
155
|
url: `${this.payPath}?order_id=${pay_order_id}&main_order_id=${order_id}&type=recharge`,
|
|
155
156
|
});
|
|
@@ -223,9 +224,6 @@ export default {
|
|
|
223
224
|
onJfbShow(options) {
|
|
224
225
|
this.onJfbLoad(options);
|
|
225
226
|
},
|
|
226
|
-
onJfbCustomEvent(options) {
|
|
227
|
-
console.log("event.onJfbReachBottom", options);
|
|
228
|
-
},
|
|
229
227
|
},
|
|
230
228
|
};
|
|
231
229
|
</script>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import {getAttrPathMsg} from "@/utils/AttrTools";
|
|
4
|
+
|
|
5
|
+
export default (data, gValue, gColor, oldData={})=>{
|
|
6
|
+
const payPath = getAttrPathMsg(data , 'payPath', '票券支持');
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
label: payPath.label,
|
|
10
|
+
ele: 'xd-select-pages-path',
|
|
11
|
+
valueKey: 'payPath',
|
|
12
|
+
groupKey:'advanced',
|
|
13
|
+
placeholder: payPath.hold,
|
|
14
|
+
value: payPath.path,
|
|
15
|
+
labelInline:true,
|
|
16
|
+
className: 'input100',
|
|
17
|
+
setting: {
|
|
18
|
+
mode:'new',
|
|
19
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
20
|
+
},
|
|
21
|
+
inline: false,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: '版本号:',
|
|
25
|
+
ele: 'el-input',
|
|
26
|
+
type: 'text',
|
|
27
|
+
groupKey: 'advanced',
|
|
28
|
+
valueKey: 'version',
|
|
29
|
+
value: 'v2.0',
|
|
30
|
+
hidden: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: '过滤引用模版字段:',
|
|
34
|
+
ele: 'el-input',
|
|
35
|
+
type: 'text',
|
|
36
|
+
groupKey: 'advanced',
|
|
37
|
+
valueKey: 'refFilterKey',
|
|
38
|
+
value: '["category","productStyle"]',
|
|
39
|
+
hidden: true,
|
|
40
|
+
},
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import {dataVal} from "@/utils/AttrTools";
|
|
3
|
+
|
|
4
|
+
export default (data, gValue, gColor, oldData={})=>{
|
|
5
|
+
let defNotice = {
|
|
6
|
+
type: 'notice',
|
|
7
|
+
position:{},
|
|
8
|
+
}
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
ele: 'title',
|
|
12
|
+
label: '基础',
|
|
13
|
+
size: 'small',
|
|
14
|
+
groupKey:'content',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: '票券号文案',
|
|
18
|
+
ele: 'el-input',
|
|
19
|
+
type: 'text',
|
|
20
|
+
valueKey: 'card_num_placeholder',
|
|
21
|
+
groupKey:'content',
|
|
22
|
+
value: data.card_num_placeholder || '',
|
|
23
|
+
placeholder: '输入券号',
|
|
24
|
+
className: 'input100',
|
|
25
|
+
labelInline: true,
|
|
26
|
+
nitice:'票券号输入框自定义文案',
|
|
27
|
+
inline: false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: '充值点数',
|
|
31
|
+
ele: 'el-input',
|
|
32
|
+
type: 'text',
|
|
33
|
+
valueKey: 'point_placeholder',
|
|
34
|
+
groupKey:'content',
|
|
35
|
+
value: data.point_placeholder || '',
|
|
36
|
+
placeholder: '充值点数',
|
|
37
|
+
className: 'input100',
|
|
38
|
+
labelInline: true,
|
|
39
|
+
nitice: '充值点数输入框自定义文案',
|
|
40
|
+
inline: false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: '注意事项',
|
|
44
|
+
ele: 'xd-site-news',
|
|
45
|
+
valueKey: 'notice',
|
|
46
|
+
groupKey:'content',
|
|
47
|
+
value: dataVal({data, key:'notice', dValue:defNotice, gValue}),
|
|
48
|
+
className: 'input100',
|
|
49
|
+
labelInline: true,
|
|
50
|
+
setting: {
|
|
51
|
+
config: {
|
|
52
|
+
sort: true,
|
|
53
|
+
maxlen: 100,
|
|
54
|
+
action: 'aliyun',
|
|
55
|
+
size: 5,
|
|
56
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
57
|
+
uploadType: 'aliyun',
|
|
58
|
+
type: ['jpg', 'png', 'jpeg']
|
|
59
|
+
},
|
|
60
|
+
isNew: false,
|
|
61
|
+
},
|
|
62
|
+
handleCustom({action, data}) {
|
|
63
|
+
if (data && data.params) {
|
|
64
|
+
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
65
|
+
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//获取返回参数(场景类型名称为必填)
|
|
69
|
+
//let loading = XdBus.getParentApi('loading')({});
|
|
70
|
+
|
|
71
|
+
//获取返回参数(场景类型名称为必填)
|
|
72
|
+
let loading = { close(){}}
|
|
73
|
+
|
|
74
|
+
//获取显示内容
|
|
75
|
+
if (action === 'screen') {
|
|
76
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
77
|
+
.then(res => {
|
|
78
|
+
loading.close();
|
|
79
|
+
data.cb(res['list'])
|
|
80
|
+
})
|
|
81
|
+
.catch(error => {
|
|
82
|
+
console.error(error);
|
|
83
|
+
loading.close();
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
//获取返回参数(广告位高度必选项)
|
|
89
|
+
if (action === 'getNewsInfo') {
|
|
90
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
91
|
+
.then(res => {
|
|
92
|
+
loading.close()
|
|
93
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
94
|
+
})
|
|
95
|
+
.catch(error => {
|
|
96
|
+
loading.close()
|
|
97
|
+
console.error(error);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
//获取产品业务线列表
|
|
102
|
+
if (action === 'namespace') {
|
|
103
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
104
|
+
.then(res => {
|
|
105
|
+
loading.close()
|
|
106
|
+
data.cb(res['list'])
|
|
107
|
+
})
|
|
108
|
+
.catch(error => {
|
|
109
|
+
loading.close()
|
|
110
|
+
console.error(error);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
//使用内容分类
|
|
115
|
+
if (action === 'cmsPublishEditxContent') {
|
|
116
|
+
loading = XdBus.getParentApi('loading')({});
|
|
117
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
118
|
+
.then(res => {
|
|
119
|
+
console.log('cmsPublishEditxContent', res)
|
|
120
|
+
loading.close();
|
|
121
|
+
data.cb(res)
|
|
122
|
+
})
|
|
123
|
+
.catch(error => {
|
|
124
|
+
loading.close();
|
|
125
|
+
console.error(error);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
//位置列表
|
|
130
|
+
if (action === 'getListPostion') {
|
|
131
|
+
loading = XdBus.getParentApi('loading')({});
|
|
132
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
133
|
+
.then(res => {
|
|
134
|
+
loading.close();
|
|
135
|
+
data.cb(res)
|
|
136
|
+
})
|
|
137
|
+
.catch(error => {
|
|
138
|
+
loading.close();
|
|
139
|
+
console.error(error);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
//位置创建
|
|
144
|
+
if (action === 'addPostion') {
|
|
145
|
+
loading = XdBus.getParentApi('loading')({});
|
|
146
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
147
|
+
.then(res => {
|
|
148
|
+
loading.close();
|
|
149
|
+
data.cb(true)
|
|
150
|
+
})
|
|
151
|
+
.catch(error => {
|
|
152
|
+
console.error(error);
|
|
153
|
+
loading.close();
|
|
154
|
+
data.cb(false)
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
//位置编辑
|
|
159
|
+
if (action === 'editPostion') {
|
|
160
|
+
loading = XdBus.getParentApi('loading')({});
|
|
161
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
162
|
+
.then(res => {
|
|
163
|
+
loading.close();
|
|
164
|
+
data.cb(true)
|
|
165
|
+
})
|
|
166
|
+
.catch(error => {
|
|
167
|
+
console.error(error);
|
|
168
|
+
loading.close();
|
|
169
|
+
data.cb(false)
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
//位置删除
|
|
174
|
+
if (action === 'deleltePostion') {
|
|
175
|
+
loading = XdBus.getParentApi('loading')({});
|
|
176
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
177
|
+
.then(res => {
|
|
178
|
+
loading.close();
|
|
179
|
+
data.cb(true)
|
|
180
|
+
})
|
|
181
|
+
.catch(error => {
|
|
182
|
+
console.error(error);
|
|
183
|
+
loading.close();
|
|
184
|
+
data.cb(false)
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
//获取广告位内容列表
|
|
189
|
+
if (action === 'getListContent') {
|
|
190
|
+
loading = XdBus.getParentApi('loading')({});
|
|
191
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
192
|
+
.then(res => {
|
|
193
|
+
loading.close();
|
|
194
|
+
data.cb(res)
|
|
195
|
+
})
|
|
196
|
+
.catch(error => {
|
|
197
|
+
loading.close();
|
|
198
|
+
console.error(error);
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
//广告内容创建
|
|
203
|
+
if (action === 'addContent') {
|
|
204
|
+
loading = XdBus.getParentApi('loading')({});
|
|
205
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
206
|
+
.then(res => {
|
|
207
|
+
loading.close();
|
|
208
|
+
data.cb(true)
|
|
209
|
+
})
|
|
210
|
+
.catch(error => {
|
|
211
|
+
console.error(error);
|
|
212
|
+
loading.close();
|
|
213
|
+
data.cb(false)
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
//广告内容编辑
|
|
218
|
+
if (action === 'editContent') {
|
|
219
|
+
loading = XdBus.getParentApi('loading')({});
|
|
220
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
221
|
+
.then(res => {
|
|
222
|
+
loading.close();
|
|
223
|
+
data.cb(true)
|
|
224
|
+
})
|
|
225
|
+
.catch(error => {
|
|
226
|
+
console.error(error);
|
|
227
|
+
loading.close();
|
|
228
|
+
data.cb(false)
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
//广告内容删除
|
|
233
|
+
if (action === 'deleteContent') {
|
|
234
|
+
loading = XdBus.getParentApi('loading')({});
|
|
235
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
236
|
+
.then(res => {
|
|
237
|
+
loading.close();
|
|
238
|
+
data.cb(true)
|
|
239
|
+
})
|
|
240
|
+
.catch(error => {
|
|
241
|
+
console.error(error);
|
|
242
|
+
loading.close();
|
|
243
|
+
data.cb(false)
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
//内容发布
|
|
248
|
+
if (action === 'publish') {
|
|
249
|
+
loading = XdBus.getParentApi('loading')({});
|
|
250
|
+
console.log('publish', data.params)
|
|
251
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
252
|
+
.then(res => {
|
|
253
|
+
loading.close();
|
|
254
|
+
data.cb(res)
|
|
255
|
+
})
|
|
256
|
+
.catch(error => {
|
|
257
|
+
loading.close();
|
|
258
|
+
console.error(error);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
//通知页面进行刷新
|
|
263
|
+
if (action === 'update') {
|
|
264
|
+
loading = XdBus.getParentApi('loading')({});
|
|
265
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
266
|
+
loading.close()
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
import advanced from "./cusAttr/advanced";
|
|
3
|
+
import style from "./cusAttr/style";
|
|
4
|
+
import {dataVal} from "@/utils/AttrTools";
|
|
2
5
|
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
|
-
content: (data) => {
|
|
8
|
+
content: (data, gValue, gColor, oldData) => {
|
|
9
9
|
return [
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
{
|
|
11
|
+
ele: 'title',
|
|
12
|
+
label: '基础',
|
|
13
|
+
size: 'small',
|
|
14
|
+
groupKey:'content',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: '立即购买',
|
|
12
18
|
ele: 'el-input',
|
|
13
19
|
type: 'text',
|
|
14
20
|
valueKey: 'buyBtnName',
|
|
15
21
|
groupKey:'content',
|
|
16
|
-
value: data
|
|
22
|
+
value: dataVal({data, key:'buyBtnName', dValue:'', gValue}),
|
|
17
23
|
placeholder: '请输入立即购买自定义文案',
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
label: '票券支付路径:',
|
|
22
|
-
ele: 'xd-select-pages-path',
|
|
23
|
-
valueKey: 'payPath',
|
|
24
|
-
groupKey:'advanced',
|
|
25
|
-
placeholder: '请选择票券支付路径',
|
|
26
|
-
value: data['payPath'] || {},
|
|
27
|
-
setting: {
|
|
28
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
29
|
-
},
|
|
30
|
-
inline: false,
|
|
24
|
+
labelInline:true,
|
|
25
|
+
className: 'input100',
|
|
31
26
|
},
|
|
27
|
+
...style(data, gValue, gColor, oldData),
|
|
28
|
+
...advanced(data, gValue, gColor, oldData)
|
|
32
29
|
].filter(i=>i)
|
|
33
30
|
},
|
|
34
31
|
advanced: [ ],
|