jufubao-admin-library 1.1.158 → 1.1.159
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.
|
@@ -50,6 +50,15 @@
|
|
|
50
50
|
placeholder="选择时间范围">
|
|
51
51
|
</el-time-picker>
|
|
52
52
|
</el-form-item>
|
|
53
|
+
<el-form-item label="每日兑换步数上限:" prop="daily_max_exchange_type">
|
|
54
|
+
<el-radio-group v-model="customForm.daily_max_exchange_type">
|
|
55
|
+
<el-radio label="N">不限制</el-radio>
|
|
56
|
+
<el-radio label="S">自定义</el-radio>
|
|
57
|
+
</el-radio-group>
|
|
58
|
+
</el-form-item>
|
|
59
|
+
<el-form-item v-if="customForm.daily_max_exchange_type === 'S'" label="" prop="daily_max_exchange_step">
|
|
60
|
+
<el-input style="width: 40%" type="number" v-model="customForm.daily_max_exchange_step" placeholder="请输入每日兑换步数上限"></el-input>
|
|
61
|
+
</el-form-item>
|
|
53
62
|
</el-form>
|
|
54
63
|
</template>
|
|
55
64
|
</xd-base-dynamic-field>
|
|
@@ -97,6 +106,8 @@ export default {
|
|
|
97
106
|
exchange_ratio_step:'',
|
|
98
107
|
exchange_ratio_mileage:'',
|
|
99
108
|
daily_exchange_deadline:'',
|
|
109
|
+
daily_max_exchange_type:'N',
|
|
110
|
+
daily_max_exchange_step:''
|
|
100
111
|
},
|
|
101
112
|
customRules: {
|
|
102
113
|
exchange_ratio_step: [
|
|
@@ -108,6 +119,12 @@ export default {
|
|
|
108
119
|
daily_exchange_deadline: [
|
|
109
120
|
{ required: true, message: '请选择每日兑换截止时间', trigger: ['blur', 'change'] },
|
|
110
121
|
],
|
|
122
|
+
daily_max_exchange_type: [
|
|
123
|
+
{ required: true, message: '请设置每日兑换步数上限', trigger: ['blur', 'change'] },
|
|
124
|
+
],
|
|
125
|
+
daily_max_exchange_step: [
|
|
126
|
+
{ required: true, message: '请输入每日兑换步数上限', trigger: ['blur', 'change'] },
|
|
127
|
+
],
|
|
111
128
|
},
|
|
112
129
|
valueFormat: 'HH:mm:ss',
|
|
113
130
|
pickerOptions: { format: 'HH:mm:ss' },
|
|
@@ -177,7 +194,7 @@ export default {
|
|
|
177
194
|
server:'saas-app-public',
|
|
178
195
|
fn:'exchange-ratio-step',
|
|
179
196
|
path:'p1',
|
|
180
|
-
},
|
|
197
|
+
},
|
|
181
198
|
// #ifdef sms-walking
|
|
182
199
|
{
|
|
183
200
|
server:'saas-app-public',
|
|
@@ -191,7 +208,7 @@ export default {
|
|
|
191
208
|
server:'saas-company',
|
|
192
209
|
fn:'sub_company',
|
|
193
210
|
path:'p1',
|
|
194
|
-
},
|
|
211
|
+
},
|
|
195
212
|
// #endif
|
|
196
213
|
]).then(result => {
|
|
197
214
|
console.log(result, 'aaaaa')
|
|
@@ -219,7 +236,11 @@ export default {
|
|
|
219
236
|
this.map_id = res.data.x_map_id
|
|
220
237
|
this.customForm.exchange_ratio_step = res.data.exchange_ratio_step
|
|
221
238
|
this.customForm.exchange_ratio_mileage = res.data.exchange_ratio_mileage
|
|
222
|
-
this.customForm.daily_exchange_deadline = res.data.daily_exchange_deadline
|
|
239
|
+
this.customForm.daily_exchange_deadline = res.data.daily_exchange_deadline
|
|
240
|
+
this.customForm.daily_max_exchange_type = res.data.daily_max_exchange_type
|
|
241
|
+
if(res.data.daily_max_exchange_step !== undefined) {
|
|
242
|
+
this.customForm.daily_max_exchange_step = res.data.daily_max_exchange_step
|
|
243
|
+
}
|
|
223
244
|
// #ifdef sms-walking
|
|
224
245
|
if(res.data.activity_url_config){
|
|
225
246
|
res.data.activity_url_config = JSON.parse(res.data.activity_url_config)
|
|
@@ -457,21 +478,21 @@ export default {
|
|
|
457
478
|
]
|
|
458
479
|
},
|
|
459
480
|
{
|
|
460
|
-
label: '活动封面图:',
|
|
461
|
-
ele: 'xd-upload',
|
|
462
|
-
valueKey: 'activity_logo',
|
|
463
|
-
value: {},
|
|
481
|
+
label: '活动封面图:',
|
|
482
|
+
ele: 'xd-upload',
|
|
483
|
+
valueKey: 'activity_logo',
|
|
484
|
+
value: {},
|
|
464
485
|
defaultValue: {url:params.activity_logo}||null,
|
|
465
|
-
slot: true,
|
|
486
|
+
slot: true,
|
|
466
487
|
elinputClassName: 'input40',
|
|
467
488
|
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
468
489
|
type: ['jpg', 'png', 'jpeg'],
|
|
469
|
-
styleType: 'one',
|
|
490
|
+
styleType: 'one',
|
|
470
491
|
uploadType: 'aliyun',
|
|
471
|
-
size: 5,
|
|
492
|
+
size: 5,
|
|
472
493
|
action: 'aliyun',
|
|
473
|
-
sort: true,
|
|
474
|
-
maxlen: 100,
|
|
494
|
+
sort: true,
|
|
495
|
+
maxlen: 100,
|
|
475
496
|
rules: [
|
|
476
497
|
{required: true, message: '请上传图片', trigger: ['blur', 'change']},
|
|
477
498
|
]
|
|
@@ -497,7 +518,7 @@ export default {
|
|
|
497
518
|
{ required: true, message: "请添加活动规则", trigger: "change" },
|
|
498
519
|
],
|
|
499
520
|
},
|
|
500
|
-
|
|
521
|
+
|
|
501
522
|
]
|
|
502
523
|
this.formList = formList.filter(i => i)
|
|
503
524
|
this.renderFormKey = Date.now()
|
|
@@ -515,18 +536,28 @@ export default {
|
|
|
515
536
|
if(this.formParams.activity_end_time){
|
|
516
537
|
formParamsCopy.activity_end_time = this.formParams.activity_end_time/1000
|
|
517
538
|
}
|
|
518
|
-
|
|
539
|
+
|
|
540
|
+
// #ifdef sms-walking
|
|
519
541
|
if(this.formParams.activity_url_config){
|
|
520
542
|
formParamsCopy['activity_url'] = this.formParams.activity_url_config['app']['frontPath']
|
|
521
|
-
formParamsCopy['activity_url_config'] = JSON.stringify(this.formParams.activity_url_config)
|
|
543
|
+
formParamsCopy['activity_url_config'] = JSON.stringify(this.formParams.activity_url_config)
|
|
522
544
|
}
|
|
523
545
|
if(this.formParams.activity_show_terminals){
|
|
524
|
-
formParamsCopy['activity_show_terminals'] = JSON.stringify(this.formParams.activity_show_terminals)
|
|
546
|
+
formParamsCopy['activity_show_terminals'] = JSON.stringify(this.formParams.activity_show_terminals)
|
|
525
547
|
}
|
|
526
548
|
// #endif
|
|
527
|
-
let needFilters = Object.assign({},formParamsCopy,this.customForm)
|
|
528
|
-
|
|
529
|
-
|
|
549
|
+
let needFilters = Object.assign({},formParamsCopy,this.customForm);
|
|
550
|
+
|
|
551
|
+
//每日兑换步数限制
|
|
552
|
+
if(needFilters.daily_max_exchange_type === 'N') {
|
|
553
|
+
delete needFilters.daily_max_exchange_step;
|
|
554
|
+
}
|
|
555
|
+
if(needFilters.daily_max_exchange_type === 'Y'){
|
|
556
|
+
needFilters.daily_max_exchange_step = Number(needFilters.daily_max_exchange_step);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
console.log(needFilters,'need')
|
|
560
|
+
this.$refs.form.submitAll().then(res => {
|
|
530
561
|
let data = {
|
|
531
562
|
item: needFilters,
|
|
532
563
|
}
|
|
@@ -563,7 +594,7 @@ export default {
|
|
|
563
594
|
})
|
|
564
595
|
}
|
|
565
596
|
})
|
|
566
|
-
|
|
597
|
+
|
|
567
598
|
},
|
|
568
599
|
goBack () {
|
|
569
600
|
this.$router.replace('/walking_activity/list')
|