jufubao-admin-library 1.1.199 → 1.1.201
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/library/pageComponents/modules/JfbRuleCreate.vue +12 -0
- package/library/pageComponents/modules/lib/JfbRuleCreate.js +12 -5
- package/library/viewModules/viewsMaterial/viewsMaterial/dialog/component/detail.vue +7 -3
- package/library/viewModules/viewsMaterial/viewsMaterial/material.vue +6 -2
- package/package.json +1 -1
|
@@ -348,6 +348,18 @@
|
|
|
348
348
|
}else {
|
|
349
349
|
this.is_has_formula = true;
|
|
350
350
|
}
|
|
351
|
+
//类目
|
|
352
|
+
// if(this.channelActiveName === 'jufubao'){
|
|
353
|
+
// console.log(options.category_ids,'options.category_ids')
|
|
354
|
+
// if(options.category_ids.length){
|
|
355
|
+
// options.category_ids.map(item =>{
|
|
356
|
+
// if(item.profit_rate||item.profit_rate==0){
|
|
357
|
+
// item.label = item.label+'('+item.profit_rate/100+'%)'
|
|
358
|
+
// }
|
|
359
|
+
// })
|
|
360
|
+
// }
|
|
361
|
+
|
|
362
|
+
// }
|
|
351
363
|
console.log(this.channelParams.scene,this.is_has_formula,'this.is_has_formula')
|
|
352
364
|
formData = {...other, ...conditions, ...options, city_codes: conditions.city_codes, ...formulaData};
|
|
353
365
|
console.log('conditions', formData)
|
|
@@ -1322,11 +1322,18 @@ export default {
|
|
|
1322
1322
|
handleRemoteCategorySearch ({ node, resolve }) {
|
|
1323
1323
|
let value = 0
|
|
1324
1324
|
if (node.level !== 0) value = node.value
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1325
|
+
this.getChildrenAndProfitRate({
|
|
1326
|
+
value,
|
|
1327
|
+
agg_channel_code: this.channelActiveName
|
|
1328
|
+
}).then(res => {
|
|
1329
|
+
console.log(res,'res')
|
|
1330
|
+
if(this.channelActiveName === 'jufubao') {
|
|
1331
|
+
res.data.list.map(item=>{
|
|
1332
|
+
item.profit_rate_string = '('+item.profit_rate/100+'%)'
|
|
1333
|
+
})
|
|
1334
|
+
}
|
|
1335
|
+
resolve(res.data.list)
|
|
1336
|
+
}) .catch((err) => { console.error(err) })
|
|
1330
1337
|
},
|
|
1331
1338
|
|
|
1332
1339
|
/**
|
|
@@ -499,13 +499,17 @@ export default {
|
|
|
499
499
|
return checkPermission(["PARTNER_MATERIAL_COMPANY_EDIT"]);
|
|
500
500
|
// #endif
|
|
501
501
|
},
|
|
502
|
-
compQrcodeSrc(){
|
|
502
|
+
compQrcodeSrc(){
|
|
503
503
|
let url = this.info.file_url;
|
|
504
504
|
if(this.$xdHelper.checkVarType(url) === 'array') {
|
|
505
|
-
|
|
505
|
+
let cdnUrl = this.$setting.cdnBaseUrl.replace(/@index@(-[a-z])?/, '1');
|
|
506
|
+
let fullUrl = cdnUrl+url[0].url+'?x-oss-process=style/size5&ver='+ Date.now();
|
|
507
|
+
return fullUrl
|
|
506
508
|
}
|
|
507
509
|
if(this.$xdHelper.checkVarType(url) === 'object') url = url.url;
|
|
508
|
-
|
|
510
|
+
let cdnUrl = this.$setting.cdnBaseUrl.replace(/@index@(-[a-z])?/, '1');
|
|
511
|
+
let fullUrl = cdnUrl+url+'?x-oss-process=style/size5&ver='+ Date.now();
|
|
512
|
+
return fullUrl;
|
|
509
513
|
},
|
|
510
514
|
compImgSrc(){
|
|
511
515
|
let cdn = 'https://img-raw.jufubao.cn';
|
|
@@ -281,13 +281,15 @@ export default {
|
|
|
281
281
|
});
|
|
282
282
|
},
|
|
283
283
|
viewQrCode(form) {
|
|
284
|
+
let cdnUrl = this.$setting.cdnBaseUrl.replace(/@index@(-[a-z])?/, '1');
|
|
285
|
+
let url = cdnUrl+form.file_url[0].url+'?x-oss-process=style/size8';
|
|
284
286
|
//调用二维码
|
|
285
287
|
axios({
|
|
286
288
|
url: this.$setting.apiBaseUrl + "/common-public/v1/image/qrcode",
|
|
287
289
|
method: "GET",
|
|
288
290
|
responseType: "blob", // 重要:设置响应类型为blob
|
|
289
291
|
params: {
|
|
290
|
-
code_content:
|
|
292
|
+
code_content: url.replace(
|
|
291
293
|
/^\/\//,
|
|
292
294
|
"https://"
|
|
293
295
|
),
|
|
@@ -313,7 +315,9 @@ export default {
|
|
|
313
315
|
handleCopy() {
|
|
314
316
|
console.log(this.info, "this.form");
|
|
315
317
|
const input = document.createElement("input");
|
|
316
|
-
|
|
318
|
+
let cdnUrl = this.$setting.cdnBaseUrl.replace(/@index@(-[a-z])?/, '1');
|
|
319
|
+
let url = cdnUrl+this.info.file_url+'?x-oss-process=style/size8';
|
|
320
|
+
input.value = url.replace(
|
|
317
321
|
/^\/\//,
|
|
318
322
|
"https://"
|
|
319
323
|
);
|