jufubao-base 1.0.242-beta1 → 1.0.242
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/JfbBaseCard/JfbBaseCard.vue +1 -1
- package/src/components/JfbBaseFastLink/Attr.js +1 -12
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +0 -66
- package/src/components/JfbBaseHeader/Attr.js +0 -82
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +1 -47
- package/src/components/JfbBaseHeaderColumn/Attr.js +0 -82
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +2 -48
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -11
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +0 -26
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +9 -28
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +18 -176
- package/src/components/JfbBasePay/Attr.js +0 -52
- package/src/components/JfbBasePay/JfbBasePay.vue +6 -30
- package/src/components/JfbBasePay/Mock.js +9 -0
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +1 -11
- package/src/components/JfbBasePoster/Attr.js +1 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +3 -8
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +22 -12
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -12
- package/src/components/JfbBaseTfkSearch/Mock.js +3 -51
- package/src/components/JfbBaseTfkSearch/listMixins.js +1 -2
- package/src/components/JfbBaseUserInfo/Attr.js +11 -175
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +115 -337
- package/src/components/JfbBaseUserOrder/Attr.js +0 -16
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +2 -11
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +0 -10
- package/src/components/JfbBaseBalance/Api.js +0 -46
- package/src/components/JfbBaseBalance/Attr.js +0 -316
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +0 -336
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +0 -79
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +0 -30
- package/src/components/JfbBaseBalance/Mock.js +0 -9
- package/src/components/JfbBaseCodeOpenVip/Api.js +0 -35
- package/src/components/JfbBaseCodeOpenVip/Attr.js +0 -281
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +0 -251
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +0 -79
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +0 -30
- package/src/components/JfbBaseCodeOpenVip/Mock.js +0 -13
- package/src/components/JfbBaseConsumpCode/Api.js +0 -133
- package/src/components/JfbBaseConsumpCode/Attr.js +0 -61
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +0 -1048
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +0 -79
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +0 -30
- package/src/components/JfbBaseConsumpCode/Mock.js +0 -22
- package/src/components/JfbBaseNoticeGroup/Api.js +0 -23
- package/src/components/JfbBaseNoticeGroup/Attr.js +0 -237
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +0 -174
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +0 -79
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +0 -30
- package/src/components/JfbBaseNoticeGroup/Mock.js +0 -13
- package/src/components/JfbBaseOpenVip/Api.js +0 -39
- package/src/components/JfbBaseOpenVip/Attr.js +0 -331
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +0 -457
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +0 -79
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +0 -30
- package/src/components/JfbBaseOpenVip/Mock.js +0 -7
- package/src/components/JfbBaseOpenVip/XdVipList.vue +0 -131
- package/src/components/JfbBaseOpenVipCard/Api.js +0 -58
- package/src/components/JfbBaseOpenVipCard/Attr.js +0 -48
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +0 -111
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +0 -79
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +0 -30
- package/src/components/JfbBaseOpenVipCard/Mock.js +0 -13
- package/src/components/JfbBaseOpenVipDetail/Api.js +0 -35
- package/src/components/JfbBaseOpenVipDetail/Attr.js +0 -37
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +0 -234
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +0 -79
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +0 -30
- package/src/components/JfbBaseOpenVipDetail/Mock.js +0 -15
- package/src/components/JfbBasePersonalData/Api.js +0 -26
- package/src/components/JfbBasePersonalData/Attr.js +0 -13
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +0 -200
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +0 -79
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +0 -30
- package/src/components/JfbBasePersonalData/Mock.js +0 -13
- package/src/components/JfbBasePointsCard/Api.js +0 -18
- package/src/components/JfbBasePointsCard/Attr.js +0 -187
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +0 -212
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +0 -79
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +0 -30
- package/src/components/JfbBasePointsCard/Mock.js +0 -5
- package/src/components/JfbBasePointsDetail/Api.js +0 -48
- package/src/components/JfbBasePointsDetail/Attr.js +0 -305
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +0 -267
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +0 -79
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +0 -30
- package/src/components/JfbBasePointsDetail/Mock.js +0 -6
- package/src/components/JfbBasePosterGroup/Api.js +0 -22
- package/src/components/JfbBasePosterGroup/Attr.js +0 -156
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +0 -268
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +0 -79
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +0 -30
- package/src/components/JfbBasePosterGroup/Mock.js +0 -13
- package/src/components/JfbBaseSavingDetail/Api.js +0 -41
- package/src/components/JfbBaseSavingDetail/Attr.js +0 -70
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +0 -710
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +0 -79
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +0 -30
- package/src/components/JfbBaseSavingDetail/Mock.js +0 -10
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +0 -26
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +0 -254
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +0 -105
- package/src/components/JfbBaseShare/Api.js +0 -20
- package/src/components/JfbBaseShare/Attr.js +0 -59
- package/src/components/JfbBaseShare/JfbBaseShare.vue +0 -276
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +0 -79
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +0 -30
- package/src/components/JfbBaseShare/Mock.js +0 -16
- package/src/components/JfbBaseWithDrawAgain/Api.js +0 -41
- package/src/components/JfbBaseWithDrawAgain/Attr.js +0 -92
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +0 -354
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +0 -79
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +0 -30
- package/src/components/JfbBaseWithDrawAgain/Mock.js +0 -10
- package/src/components/JfbBaseWithDrawRecord/Api.js +0 -19
- package/src/components/JfbBaseWithDrawRecord/Attr.js +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +0 -233
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +0 -79
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +0 -30
- package/src/components/JfbBaseWithDrawRecord/Mock.js +0 -7
- package/src/components/JfbBaseWithdraw/Api.js +0 -48
- package/src/components/JfbBaseWithdraw/Attr.js +0 -328
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +0 -272
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +0 -79
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +0 -30
- package/src/components/JfbBaseWithdraw/Mock.js +0 -7
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @desc 获取绝对路径完整地址
|
|
3
|
-
* @param @path
|
|
4
|
-
**/
|
|
5
|
-
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
-
@basePath: 'business/';
|
|
7
|
-
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
-
|
|
9
|
-
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
-
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
-
background-image: url(@url);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//start
|
|
15
|
-
.jfb-base-consump-code {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
|
|
18
|
-
&__body{
|
|
19
|
-
position: relative;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
z-index: 2
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.editx,&.editx:hover {
|
|
25
|
-
position: relative;
|
|
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
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
&__edit {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
position: absolute;
|
|
46
|
-
right: unit(0, rpx);
|
|
47
|
-
top: unit(-52, rpx);
|
|
48
|
-
height: unit(50, rpx);
|
|
49
|
-
line-height: unit(50, rpx);
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .6);
|
|
54
|
-
border-radius: unit(10, rpx);
|
|
55
|
-
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
-
color: #fff;
|
|
57
|
-
font-size: unit(22, rpx);
|
|
58
|
-
|
|
59
|
-
&-icon{
|
|
60
|
-
padding: 0 unit(20, rpx);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.editx {
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
//end
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/**notPreview**/
|
|
73
|
-
.jfb-base-consump-code {
|
|
74
|
-
//&:before {
|
|
75
|
-
//content: " ";
|
|
76
|
-
//display: table;
|
|
77
|
-
//}
|
|
78
|
-
}
|
|
79
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//@AttrImport
|
|
5
|
-
import Attr from "./Attr";
|
|
6
|
-
//@EndAttrImport
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
//#ifdef H5
|
|
13
|
-
|
|
14
|
-
//@AttrData
|
|
15
|
-
Attr:{}, //对外开发编辑属性
|
|
16
|
-
//@EndAttrData
|
|
17
|
-
|
|
18
|
-
// #endif
|
|
19
|
-
cssRoot: 'jfb-base-consump-code'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
|
|
5
|
-
getConsumpCode: { "payment_code": "h.161.v71913434717194", "expiration_time": 1744971193, "expiration_sec": 60, "temp_order_id": "quickpay-5000358-DBeMnvrvInuINYeTqbCXw", "confirm_notice": false, "notice": "", "cash_order_id": "", "code_url": "\/common\/v1\/image\/qrcode?code_content=h.161.v71913434717194&size=240", "plus_discount": 0, "is_st_flow": "张三", "barcode_url": "\/common\/v1\/image\/barcode?code_content=h.161.v71913434717194", "shop_name": "六九豆浆饺子(石门市场店)", "request_id": "52ebf80c255ebcb5" },
|
|
6
|
-
|
|
7
|
-
getConsumpCodeScanStatus: { "status": "P", "message": "", "order_data": "{\"total_amount\":\"0\",\"pay_expire_time\":\"0\",\"message\":\"\",\"status\":\"P\",\"cash_order_id\":\"\",\"user_id\":\"5000358\",\"channel_order_id\":\"\",\"cart_order_id\":\"\"}", "seconds": 0, "request_id": "a54ac53ad31312d6" },
|
|
8
|
-
|
|
9
|
-
getConsumpListUserPayChannel: { "list": [{ "channel_provider_id": "1rRq74ACKJj5nIx5CgLpb", "channel_provider_name": "微信", "channel_code": "wxpay", "channel_logo": "https:\/\/jfb-public-images.oss-cn-qingdao.aliyuncs.com\/system-paychannel-logo-wxpay.png?x-oss-process=style\/200_200" }], "request_id": "e142d26c3d24c060" },
|
|
10
|
-
|
|
11
|
-
batchConsumpUseCardCreated: { "request_order_id": "quickpay-5000358-DBeMnvrvInuINYeTqbCXw", "request_id": "e17499843ece44b1" },
|
|
12
|
-
|
|
13
|
-
getConsumpAsyncSubmitStatus: { "hand_status": "U", "hand_status_msg": "异步下单中", "order_id": "", "pay_order_id": "", "need_pay_price": "0", "request_id": "fddff0af4216825d" },
|
|
14
|
-
|
|
15
|
-
getConsumpShopList: { "namespaces": [{ "label": "蛋糕(勿改)", "value": "cake" }], "brands": [{ "label": "测试1111", "value": 14, "icon": "\/uploads\/20230324\/3265afeb6a1f2a94f25c968a09275574.png" }, { "label": "品牌jls0519", "value": 100003, "icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg" }], "list": [{ "brand_id": 14, "brand_name": "测试1111", "brand_type": "MA", "business_status": "CLOSED", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "42km", "distance_conversion": "41.9km", "default_consume_type": "CV", "consume_type": ["CV"], "is_support_jhd": true, "address": "顺义区东六环与顺于路交叉口东150米", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "(010)89430806", "resource_shop_id": 8003489, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAzNDg5LCJzaG9wX2lkIjoxMTUzNTIwLCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "六九豆浆饺子(石门市场店)", "shop_icon": "\/uploads\/20230324\/3265afeb6a1f2a94f25c968a09275574.png", "shop_id": 1153520, "shop_tags": [], "stars": 0, "time_slot_name": "-", "business_code": "", "longitude": "116.630756", "latitude": "40.134773" }, { "brand_id": 100003, "brand_name": "品牌jls0519", "brand_type": "MA", "business_status": "OPEN_BUSINESS", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "55km", "distance_conversion": "54.8km", "default_consume_type": "", "consume_type": [""], "is_support_jhd": false, "address": "东城区东直门街道东城区东直门内南大街4号(东直门内第一个十字路口东南角)", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "64034959", "resource_shop_id": 8000077, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwMDc3LCJzaG9wX2lkIjoxMDIzNTMwLCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "东直门[2]", "shop_icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_id": 1023530, "shop_tags": [], "stars": 0, "time_slot_name": "09:00-18:00", "business_code": "", "longitude": "116.44373384708321", "latitude": "39.94636369444035" }, { "brand_id": 100003, "brand_name": "品牌jls0519", "brand_type": "MA", "business_status": "OPEN_BUSINESS", "consume_mode": ["SELL"], "consume_mode_name": "", "distance": "56km", "distance_conversion": "55.5km", "default_consume_type": "JHD", "consume_type": ["JHD"], "is_support_jhd": true, "address": "东城区建国门街道北京inn", "province_name": "", "city_name": "", "area_name": "", "street_name": "", "phone": "18843854566", "resource_shop_id": 8000078, "exts_params": "eyJyZXNvdXJjZV9zaG9wX2lkIjo4MDAwMDc4LCJzaG9wX2lkIjoxMDM3MjY2LCJ2ZXJzaW9uIjoyfQ", "resource_shop_name": "a加盟商-185", "shop_icon": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_id": 1037266, "shop_tags": [], "stars": 0, "time_slot_name": "-", "business_code": "", "longitude": "116.43814998003319", "latitude": "39.9280800962547" }], "total_size": 3, "next_page_token": "", "request_id": "fa91f05cff4b280b" },
|
|
16
|
-
|
|
17
|
-
getConsumpSettleMainInfo: { "shop_id": 1037266, "shop_logo": "\/uploads\/20230710\/44f645b06fe4da358f7b0ee06259afcd.jpg", "shop_name": "a加盟商-185", "shop_brand": 100003, "shop_partner_name": "A加盟商-余额测试", "settle_tag_list": [{ "label": "幸福西饼、goodlike品牌", "value": 262, "price": 0, "price_yuan": "0.00", "is_static_price": false, "icon_url": "https:\/\/sandbox-img.jufubao.cn\/uploads\/20230728\/70f4dd90cdf2681e71ccf41d332d71a0.jpeg" }], "request_id": "a4a6cfe9db905597" },
|
|
18
|
-
|
|
19
|
-
getConsumpBaseUserInfo: { "user_name": "", "user_code": "WuE5Wotf08", "nickname": "张三", "real_name": "", "head_url": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/AOqEDeiaxss8GR4jD1GicIgyqWSOZV8xN23Iw3DOzFjVBzTFbdv21X7u9ZASQJYsTNm07XSq6ebzp4K4qu1JT26qGZ0qYFMe1nHdQjFZib83Fg\/132", "province_code": "", "city_code": "", "province_name": "", "city_name": "", "sex": "1", "sex_name": "男", "birthday_date": "2025-04-16", "phone_number": "177****7945", "show_user_name": "张三", "user_level": "VIP", "vip_expire_time": 1776157293, "request_id": "f1dbb1c0bb8da893" },
|
|
20
|
-
|
|
21
|
-
addConsumpCashierTempOrderData: { "cart_order_id": "c08f38347ec8bc5b", "request_id": "779bf62e988587ce" }
|
|
22
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Notice
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
mapFnName: 'getNoticeNewsContent', //自定义方法名字(必选)
|
|
10
|
-
title: '获取内容',
|
|
11
|
-
path: '/cms/v1/news-content',
|
|
12
|
-
isRule: false,
|
|
13
|
-
params: {
|
|
14
|
-
scene: ['使用场景', 'String', '选填'],
|
|
15
|
-
container_id: ['插件ID', 'String', '必填'],
|
|
16
|
-
page_id: ['页面ID', 'String', '必填'],
|
|
17
|
-
page_size: ['记录条数', 'Number', '必填', 1],
|
|
18
|
-
code: ['业务线id', 'String', '选填'],
|
|
19
|
-
},
|
|
20
|
-
isConsole: true,
|
|
21
|
-
disabled: true,
|
|
22
|
-
},
|
|
23
|
-
];
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
style: [],
|
|
8
|
-
content: (data) => {
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
label: '公告内容:',
|
|
12
|
-
ele: 'xd-site-news',
|
|
13
|
-
valueKey: 'notice',
|
|
14
|
-
groupKey: 'content',
|
|
15
|
-
value: data.notice || null,
|
|
16
|
-
className: 'input70',
|
|
17
|
-
setting: {
|
|
18
|
-
config: {
|
|
19
|
-
sort: true,
|
|
20
|
-
maxlen: 100,
|
|
21
|
-
action: 'aliyun',
|
|
22
|
-
size: 5,
|
|
23
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
24
|
-
uploadType: 'aliyun',
|
|
25
|
-
type: ['jpg', 'png', 'jpeg']
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
handleCustom({ action, data }) {
|
|
29
|
-
if (data && data.params) {
|
|
30
|
-
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
31
|
-
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//获取返回参数(场景类型名称为必填)
|
|
35
|
-
//获取返回参数(场景类型名称为必填)
|
|
36
|
-
let loading = { close() { } }
|
|
37
|
-
|
|
38
|
-
//获取显示内容
|
|
39
|
-
if (action === 'screen') {
|
|
40
|
-
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
|
|
41
|
-
.then(res => {
|
|
42
|
-
loading.close();
|
|
43
|
-
data.cb(res['list'])
|
|
44
|
-
})
|
|
45
|
-
.catch(error => {
|
|
46
|
-
console.error(error);
|
|
47
|
-
loading.close();
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
//获取返回参数(广告位高度必选项)
|
|
53
|
-
if (action === 'getNewsInfo') {
|
|
54
|
-
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
55
|
-
.then(res => {
|
|
56
|
-
loading.close()
|
|
57
|
-
data.cb({ list: res.list, selectId: res.selected })
|
|
58
|
-
})
|
|
59
|
-
.catch(error => {
|
|
60
|
-
loading.close()
|
|
61
|
-
console.error(error);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
//获取产品业务线列表
|
|
66
|
-
if (action === 'namespace') {
|
|
67
|
-
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
68
|
-
.then(res => {
|
|
69
|
-
loading.close()
|
|
70
|
-
data.cb(res['list'])
|
|
71
|
-
})
|
|
72
|
-
.catch(error => {
|
|
73
|
-
loading.close()
|
|
74
|
-
console.error(error);
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
//使用内容分类
|
|
79
|
-
if (action === 'cmsPublishEditxContent') {
|
|
80
|
-
loading = XdBus.getParentApi('loading')({});
|
|
81
|
-
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
82
|
-
.then(res => {
|
|
83
|
-
console.log('cmsPublishEditxContent', res)
|
|
84
|
-
loading.close();
|
|
85
|
-
data.cb(res)
|
|
86
|
-
})
|
|
87
|
-
.catch(error => {
|
|
88
|
-
loading.close();
|
|
89
|
-
console.error(error);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
//位置列表
|
|
94
|
-
if (action === 'getListPostion') {
|
|
95
|
-
loading = XdBus.getParentApi('loading')({});
|
|
96
|
-
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
97
|
-
.then(res => {
|
|
98
|
-
loading.close();
|
|
99
|
-
data.cb(res)
|
|
100
|
-
})
|
|
101
|
-
.catch(error => {
|
|
102
|
-
loading.close();
|
|
103
|
-
console.error(error);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
//位置创建
|
|
108
|
-
if (action === 'addPostion') {
|
|
109
|
-
loading = XdBus.getParentApi('loading')({});
|
|
110
|
-
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
111
|
-
.then(res => {
|
|
112
|
-
loading.close();
|
|
113
|
-
data.cb(true)
|
|
114
|
-
})
|
|
115
|
-
.catch(error => {
|
|
116
|
-
console.error(error);
|
|
117
|
-
loading.close();
|
|
118
|
-
data.cb(false)
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
//位置编辑
|
|
123
|
-
if (action === 'editPostion') {
|
|
124
|
-
loading = XdBus.getParentApi('loading')({});
|
|
125
|
-
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
126
|
-
.then(res => {
|
|
127
|
-
loading.close();
|
|
128
|
-
data.cb(true)
|
|
129
|
-
})
|
|
130
|
-
.catch(error => {
|
|
131
|
-
console.error(error);
|
|
132
|
-
loading.close();
|
|
133
|
-
data.cb(false)
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
//位置删除
|
|
138
|
-
if (action === 'deleltePostion') {
|
|
139
|
-
loading = XdBus.getParentApi('loading')({});
|
|
140
|
-
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
141
|
-
.then(res => {
|
|
142
|
-
loading.close();
|
|
143
|
-
data.cb(true)
|
|
144
|
-
})
|
|
145
|
-
.catch(error => {
|
|
146
|
-
console.error(error);
|
|
147
|
-
loading.close();
|
|
148
|
-
data.cb(false)
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
//获取广告位内容列表
|
|
153
|
-
if (action === 'getListContent') {
|
|
154
|
-
loading = XdBus.getParentApi('loading')({});
|
|
155
|
-
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
156
|
-
.then(res => {
|
|
157
|
-
loading.close();
|
|
158
|
-
data.cb(res)
|
|
159
|
-
})
|
|
160
|
-
.catch(error => {
|
|
161
|
-
loading.close();
|
|
162
|
-
console.error(error);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
//广告内容创建
|
|
167
|
-
if (action === 'addContent') {
|
|
168
|
-
loading = XdBus.getParentApi('loading')({});
|
|
169
|
-
XdBus.getParentApi('addNewsContent')(data.params)
|
|
170
|
-
.then(res => {
|
|
171
|
-
loading.close();
|
|
172
|
-
data.cb(true)
|
|
173
|
-
})
|
|
174
|
-
.catch(error => {
|
|
175
|
-
console.error(error);
|
|
176
|
-
loading.close();
|
|
177
|
-
data.cb(false)
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
//广告内容编辑
|
|
182
|
-
if (action === 'editContent') {
|
|
183
|
-
loading = XdBus.getParentApi('loading')({});
|
|
184
|
-
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
185
|
-
.then(res => {
|
|
186
|
-
loading.close();
|
|
187
|
-
data.cb(true)
|
|
188
|
-
})
|
|
189
|
-
.catch(error => {
|
|
190
|
-
console.error(error);
|
|
191
|
-
loading.close();
|
|
192
|
-
data.cb(false)
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
//广告内容删除
|
|
197
|
-
if (action === 'deleteContent') {
|
|
198
|
-
loading = XdBus.getParentApi('loading')({});
|
|
199
|
-
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
200
|
-
.then(res => {
|
|
201
|
-
loading.close();
|
|
202
|
-
data.cb(true)
|
|
203
|
-
})
|
|
204
|
-
.catch(error => {
|
|
205
|
-
console.error(error);
|
|
206
|
-
loading.close();
|
|
207
|
-
data.cb(false)
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
//内容发布
|
|
212
|
-
if (action === 'publish') {
|
|
213
|
-
loading = XdBus.getParentApi('loading')({});
|
|
214
|
-
console.log('publish', data.params)
|
|
215
|
-
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
216
|
-
.then(res => {
|
|
217
|
-
loading.close();
|
|
218
|
-
data.cb(res)
|
|
219
|
-
})
|
|
220
|
-
.catch(error => {
|
|
221
|
-
loading.close();
|
|
222
|
-
console.error(error);
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
//通知页面进行刷新
|
|
227
|
-
if (action === 'update') {
|
|
228
|
-
loading = XdBus.getParentApi('loading')({});
|
|
229
|
-
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
230
|
-
loading.close()
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
}
|
|
234
|
-
].filter(i => i)
|
|
235
|
-
},
|
|
236
|
-
advanced: [],
|
|
237
|
-
};
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="jfb-base-notice-group" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
|
|
3
|
-
<!--#ifdef H5-->
|
|
4
|
-
<view class="jfb-base-notice-group__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
|
|
5
|
-
<view class="jfb-base-notice-group__edit-icon" @click="delEdit">删除</view>
|
|
6
|
-
</view>
|
|
7
|
-
<!-- #endif -->
|
|
8
|
-
<view class="jfb-base-notice-group__body">
|
|
9
|
-
<view v-if="contentList.length>0">
|
|
10
|
-
<view @click="handleTo(item)" v-for="(item,index) in contentList" :key="index"
|
|
11
|
-
class="jfb-base-notice-group__body-item">
|
|
12
|
-
<view>
|
|
13
|
-
{{item.title}}
|
|
14
|
-
</view>
|
|
15
|
-
<XdFontIcon size="25" color="#2C2C2C" icon="iconxiangyou_xian"></XdFontIcon>
|
|
16
|
-
</view>
|
|
17
|
-
</view>
|
|
18
|
-
<view class="logout-btn">
|
|
19
|
-
<xd-button type="primary" width="600rpx" @click="handleLogout">退出登录</xd-button>
|
|
20
|
-
</view>
|
|
21
|
-
<view class="version">当前版本: {{version}}</view>
|
|
22
|
-
</view>
|
|
23
|
-
</view>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script>
|
|
27
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
28
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
29
|
-
import JfbBaseNoticeGroupMixin from "./JfbBaseNoticeGroupMixin";
|
|
30
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
31
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
32
|
-
import XdButton from "@/components/XdButton/XdButton";
|
|
33
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
34
|
-
import { mapState } from 'vuex';
|
|
35
|
-
import store from "@/store";
|
|
36
|
-
export default {
|
|
37
|
-
name: "JfbBaseNoticeGroup",
|
|
38
|
-
components: {
|
|
39
|
-
XdFontIcon,
|
|
40
|
-
XdButton
|
|
41
|
-
},
|
|
42
|
-
computed: {
|
|
43
|
-
...mapState(['jfbAuthorize']),
|
|
44
|
-
},
|
|
45
|
-
mixins: [
|
|
46
|
-
componentsMixins, extsMixins, JfbBaseNoticeGroupMixin
|
|
47
|
-
],
|
|
48
|
-
data() {
|
|
49
|
-
return {
|
|
50
|
-
contentList: [],
|
|
51
|
-
version: ''
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
watch: {
|
|
55
|
-
container(value, oldValue) {
|
|
56
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
57
|
-
if (this.$configProject['isPreview']) {
|
|
58
|
-
this.init(value);
|
|
59
|
-
this.onJfbLoad()
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
created() {
|
|
64
|
-
this.init(this.container);
|
|
65
|
-
},
|
|
66
|
-
methods: {
|
|
67
|
-
onJfbLoad(options) {
|
|
68
|
-
this.version = this.projectAttr.headers['X-Version']
|
|
69
|
-
if (this.$configProject['isPreview']) {
|
|
70
|
-
this.version = 'v11.21.12'
|
|
71
|
-
}
|
|
72
|
-
this.getContent()
|
|
73
|
-
},
|
|
74
|
-
/**
|
|
75
|
-
* @description 监听事件变化
|
|
76
|
-
* @param container {object} 业务组件对象自己
|
|
77
|
-
*/
|
|
78
|
-
init(container) { },
|
|
79
|
-
getContent() {
|
|
80
|
-
jfbRootExec("getNoticeNewsContent", {
|
|
81
|
-
vm: this,
|
|
82
|
-
data: {
|
|
83
|
-
page_id: this.pageAttr["page_id"], //页面ID
|
|
84
|
-
container_id: this.containerId, //组件ID
|
|
85
|
-
page_size: 200,
|
|
86
|
-
},
|
|
87
|
-
})
|
|
88
|
-
.then((res) => {
|
|
89
|
-
console.log(res, 'aiaiaaiia');
|
|
90
|
-
this.contentList = res.list
|
|
91
|
-
})
|
|
92
|
-
.catch((error) => {
|
|
93
|
-
console.error(error);
|
|
94
|
-
});
|
|
95
|
-
},
|
|
96
|
-
handleTo(item) {
|
|
97
|
-
let params = `page_id=${this.pageAttr["page_id"]}`;
|
|
98
|
-
params = `${params}&container_id=${this.containerId}&content_id=${item.content_id}`;
|
|
99
|
-
this.$xdUniHelper.navigateTo({
|
|
100
|
-
url: `/pages/content/content?${params}`
|
|
101
|
-
})
|
|
102
|
-
},
|
|
103
|
-
async handleLogout() {
|
|
104
|
-
// #ifdef H5
|
|
105
|
-
if (this.$configProject.isPreview) return;
|
|
106
|
-
// #endif
|
|
107
|
-
|
|
108
|
-
if (this.jfbAuthorize !== null) {
|
|
109
|
-
this.$xdShowLoading({});
|
|
110
|
-
store.dispatch('logout').then(res => {
|
|
111
|
-
this.$xdHideLoading();
|
|
112
|
-
this.jfbAuthorize.removeAllToken();
|
|
113
|
-
this.jfbAuthorize.removeAllCardToken();
|
|
114
|
-
this.jfbAuthorize.jumpToUserLogin(this, false);
|
|
115
|
-
}).catch(err => {
|
|
116
|
-
console.error(err);
|
|
117
|
-
})
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
onJfbScroll(options) {
|
|
121
|
-
console.log('event.onJfbScroll', options)
|
|
122
|
-
},
|
|
123
|
-
onJfbReachBottom(options) {
|
|
124
|
-
console.log('event.onJfbReachBottom', options)
|
|
125
|
-
},
|
|
126
|
-
onJfbShow(options) {
|
|
127
|
-
console.log('event.onJfbShow', options)
|
|
128
|
-
},
|
|
129
|
-
onJfbHide(options) {
|
|
130
|
-
console.log('event.onJfbHide', options)
|
|
131
|
-
},
|
|
132
|
-
onJfbBack(options) {
|
|
133
|
-
console.log('event.onJfbBack', options)
|
|
134
|
-
},
|
|
135
|
-
onJfbUpdate(...data) {
|
|
136
|
-
console.log('event.onJfbUpdate', data)
|
|
137
|
-
},
|
|
138
|
-
onJfbCustomEvent(options) {
|
|
139
|
-
console.log('event.onJfbReachBottom', options)
|
|
140
|
-
},
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
</script>
|
|
145
|
-
|
|
146
|
-
<style scoped lang="less">
|
|
147
|
-
@import "./JfbBaseNoticeGroupLess.less";
|
|
148
|
-
|
|
149
|
-
.jfb-base-notice-group {
|
|
150
|
-
&__body {
|
|
151
|
-
&-item {
|
|
152
|
-
display: flex;
|
|
153
|
-
align-items: center;
|
|
154
|
-
justify-content: space-between;
|
|
155
|
-
padding: 32rpx 46rpx;
|
|
156
|
-
background: #fff;
|
|
157
|
-
border-radius: 18rpx;
|
|
158
|
-
font-size: 25rpx;
|
|
159
|
-
color: #333;
|
|
160
|
-
margin: 20rpx;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.logout-btn {
|
|
165
|
-
margin: 60rpx auto;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.version {
|
|
169
|
-
color: #999999;
|
|
170
|
-
font-size: 24rpx;
|
|
171
|
-
text-align: center;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
</style>
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @desc 获取绝对路径完整地址
|
|
3
|
-
* @param @path
|
|
4
|
-
**/
|
|
5
|
-
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
-
@basePath: 'business/';
|
|
7
|
-
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
-
|
|
9
|
-
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
-
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
-
background-image: url(@url);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//start
|
|
15
|
-
.jfb-base-notice-group {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
|
|
18
|
-
&__body{
|
|
19
|
-
position: relative;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
z-index: 2
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.editx,&.editx:hover {
|
|
25
|
-
position: relative;
|
|
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
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
&__edit {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
position: absolute;
|
|
46
|
-
right: unit(0, rpx);
|
|
47
|
-
top: unit(-52, rpx);
|
|
48
|
-
height: unit(50, rpx);
|
|
49
|
-
line-height: unit(50, rpx);
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .6);
|
|
54
|
-
border-radius: unit(10, rpx);
|
|
55
|
-
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
-
color: #fff;
|
|
57
|
-
font-size: unit(22, rpx);
|
|
58
|
-
|
|
59
|
-
&-icon{
|
|
60
|
-
padding: 0 unit(20, rpx);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.editx {
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
//end
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/**notPreview**/
|
|
73
|
-
.jfb-base-notice-group {
|
|
74
|
-
//&:before {
|
|
75
|
-
//content: " ";
|
|
76
|
-
//display: table;
|
|
77
|
-
//}
|
|
78
|
-
}
|
|
79
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//@AttrImport
|
|
5
|
-
import Attr from "./Attr";
|
|
6
|
-
//@EndAttrImport
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
//#ifdef H5
|
|
13
|
-
|
|
14
|
-
//@AttrData
|
|
15
|
-
Attr:{}, //对外开发编辑属性
|
|
16
|
-
//@EndAttrData
|
|
17
|
-
|
|
18
|
-
// #endif
|
|
19
|
-
cssRoot: 'jfb-base-notice-group'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|