jufubao-base 1.0.242 → 1.0.243-beta1001
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/JfbBaseBalance/Api.js +46 -0
- package/src/components/JfbBaseBalance/Attr.js +316 -0
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
- package/src/components/JfbBaseBalance/Mock.js +9 -0
- package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
- package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
- package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
- package/src/components/JfbBaseConsumpCode/Api.js +133 -0
- package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1109 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
- package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
- package/src/components/JfbBaseFastLink/Attr.js +12 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
- package/src/components/JfbBaseFooter/Attr.js +12 -0
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
- package/src/components/JfbBaseHeader/Attr.js +82 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
- package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +24 -3
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
- package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
- package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
- package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
- package/src/components/JfbBaseOpenVip/Api.js +39 -0
- package/src/components/JfbBaseOpenVip/Attr.js +331 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +457 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
- package/src/components/JfbBaseOpenVip/Mock.js +7 -0
- package/src/components/JfbBaseOpenVip/XdVipList.vue +131 -0
- package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
- package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
- package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
- package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
- package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
- package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +177 -18
- package/src/components/JfbBasePay/Attr.js +52 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +23 -6
- package/src/components/JfbBasePay/Mock.js +0 -9
- package/src/components/JfbBasePersonalData/Api.js +26 -0
- package/src/components/JfbBasePersonalData/Attr.js +13 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +200 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
- package/src/components/JfbBasePersonalData/Mock.js +13 -0
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
- package/src/components/JfbBasePointsCard/Api.js +18 -0
- package/src/components/JfbBasePointsCard/Attr.js +187 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
- package/src/components/JfbBasePointsCard/Mock.js +5 -0
- package/src/components/JfbBasePointsDetail/Api.js +48 -0
- package/src/components/JfbBasePointsDetail/Attr.js +305 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
- package/src/components/JfbBasePointsDetail/Mock.js +6 -0
- package/src/components/JfbBasePoster/Attr.js +1 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
- package/src/components/JfbBasePosterGroup/Api.js +22 -0
- package/src/components/JfbBasePosterGroup/Attr.js +156 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
- package/src/components/JfbBasePosterGroup/Mock.js +13 -0
- package/src/components/JfbBaseSavingDetail/Api.js +41 -0
- package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
- package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
- package/src/components/JfbBaseShare/Api.js +20 -0
- package/src/components/JfbBaseShare/Attr.js +59 -0
- package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
- package/src/components/JfbBaseShare/Mock.js +16 -0
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +9 -3
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
- package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
- package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
- package/src/components/JfbBaseUserInfo/Attr.js +175 -11
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +336 -114
- package/src/components/JfbBaseUserOrder/Attr.js +16 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
- package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
- package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
- package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
- package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
- package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
- package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
- package/src/components/JfbBaseWithdraw/Api.js +48 -0
- package/src/components/JfbBaseWithdraw/Attr.js +328 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
- package/src/components/JfbBaseWithdraw/Mock.js +7 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
|
@@ -0,0 +1,174 @@
|
|
|
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>
|
|
@@ -0,0 +1,79 @@
|
|
|
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**/
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Open
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'getOpenBaseUserInfo',
|
|
10
|
+
title: '获取用户信息',
|
|
11
|
+
path: '/passport/v1/user/get',
|
|
12
|
+
params: {},
|
|
13
|
+
isRule: false,
|
|
14
|
+
isConsole: true,
|
|
15
|
+
disabled: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
mapFnName: "getVipList",
|
|
19
|
+
title: "会员中心 - 会员卡列表",
|
|
20
|
+
path: "/member/v1/vip-card",
|
|
21
|
+
isRule: false,
|
|
22
|
+
params: {
|
|
23
|
+
namespace: ['业务线', 'String', true],
|
|
24
|
+
is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
|
|
25
|
+
},
|
|
26
|
+
isConsole: true,
|
|
27
|
+
disabled: true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
mapFnName: "getVipMoneySaving",
|
|
31
|
+
title: "获取会员省钱金额",
|
|
32
|
+
path: '/member/v1/money-saving-record/total-amount',
|
|
33
|
+
isRule: false,
|
|
34
|
+
params: {
|
|
35
|
+
},
|
|
36
|
+
isConsole: true,
|
|
37
|
+
disabled: true
|
|
38
|
+
}
|
|
39
|
+
];
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: "是否展示兑换码",
|
|
12
|
+
ele: "xd-radio",
|
|
13
|
+
valueKey: 'showExchangeCode',
|
|
14
|
+
value: data.showExchangeCode || "Y",
|
|
15
|
+
groupKey: "content",
|
|
16
|
+
list: [
|
|
17
|
+
{label: "展示", value: "Y"},
|
|
18
|
+
{label: "不展示", value: "N"},
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: '共享PLUS会员用户协议:',
|
|
23
|
+
ele: 'xd-site-news',
|
|
24
|
+
valueKey: 'notices',
|
|
25
|
+
groupKey:'content',
|
|
26
|
+
value: data.notices || {type: 'privacy'},
|
|
27
|
+
className: 'input70',
|
|
28
|
+
setting: {
|
|
29
|
+
config: {
|
|
30
|
+
sort: true,
|
|
31
|
+
maxlen: 100,
|
|
32
|
+
action: 'aliyun',
|
|
33
|
+
size: 5,
|
|
34
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
35
|
+
uploadType: 'aliyun',
|
|
36
|
+
type: ['jpg', 'png', 'jpeg']
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
handleCustom({action, data}) {
|
|
40
|
+
if (data && data.params) {
|
|
41
|
+
//当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
|
|
42
|
+
data.params = Object.assign({}, data.params, {code: 'privacy_service'});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//获取返回参数(场景类型名称为必填)
|
|
46
|
+
let loading = { close(){}}
|
|
47
|
+
|
|
48
|
+
//获取显示内容
|
|
49
|
+
if (action === 'screen') {
|
|
50
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
51
|
+
.then(res => {
|
|
52
|
+
loading.close();
|
|
53
|
+
data.cb(res['list'])
|
|
54
|
+
})
|
|
55
|
+
.catch(error => {
|
|
56
|
+
console.error(error);
|
|
57
|
+
loading.close();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//获取返回参数(广告位高度必选项)
|
|
63
|
+
if (action === 'getNewsInfo') {
|
|
64
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
65
|
+
.then(res => {
|
|
66
|
+
loading.close()
|
|
67
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
68
|
+
})
|
|
69
|
+
.catch(error => {
|
|
70
|
+
loading.close()
|
|
71
|
+
console.error(error);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
//获取产品业务线列表
|
|
76
|
+
if (action === 'namespace') {
|
|
77
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
78
|
+
.then(res => {
|
|
79
|
+
loading.close()
|
|
80
|
+
data.cb(res['list'])
|
|
81
|
+
})
|
|
82
|
+
.catch(error => {
|
|
83
|
+
loading.close()
|
|
84
|
+
console.error(error);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
//使用内容分类
|
|
89
|
+
if (action === 'cmsPublishEditxContent') {
|
|
90
|
+
loading = XdBus.getParentApi('loading')({});
|
|
91
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
92
|
+
.then(res => {
|
|
93
|
+
console.log('cmsPublishEditxContent', res)
|
|
94
|
+
loading.close();
|
|
95
|
+
data.cb(res)
|
|
96
|
+
})
|
|
97
|
+
.catch(error => {
|
|
98
|
+
loading.close();
|
|
99
|
+
console.error(error);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
//位置列表
|
|
104
|
+
if (action === 'getListPostion') {
|
|
105
|
+
loading = XdBus.getParentApi('loading')({});
|
|
106
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
107
|
+
.then(res => {
|
|
108
|
+
loading.close();
|
|
109
|
+
data.cb(res)
|
|
110
|
+
})
|
|
111
|
+
.catch(error => {
|
|
112
|
+
loading.close();
|
|
113
|
+
console.error(error);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
//位置创建
|
|
118
|
+
if (action === 'addPostion') {
|
|
119
|
+
loading = XdBus.getParentApi('loading')({});
|
|
120
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
121
|
+
.then(res => {
|
|
122
|
+
loading.close();
|
|
123
|
+
data.cb(true)
|
|
124
|
+
})
|
|
125
|
+
.catch(error => {
|
|
126
|
+
console.error(error);
|
|
127
|
+
loading.close();
|
|
128
|
+
data.cb(false)
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
//位置编辑
|
|
133
|
+
if (action === 'editPostion') {
|
|
134
|
+
loading = XdBus.getParentApi('loading')({});
|
|
135
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
136
|
+
.then(res => {
|
|
137
|
+
loading.close();
|
|
138
|
+
data.cb(true)
|
|
139
|
+
})
|
|
140
|
+
.catch(error => {
|
|
141
|
+
console.error(error);
|
|
142
|
+
loading.close();
|
|
143
|
+
data.cb(false)
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
//位置删除
|
|
148
|
+
if (action === 'deleltePostion') {
|
|
149
|
+
loading = XdBus.getParentApi('loading')({});
|
|
150
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
151
|
+
.then(res => {
|
|
152
|
+
loading.close();
|
|
153
|
+
data.cb(true)
|
|
154
|
+
})
|
|
155
|
+
.catch(error => {
|
|
156
|
+
console.error(error);
|
|
157
|
+
loading.close();
|
|
158
|
+
data.cb(false)
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
//获取广告位内容列表
|
|
163
|
+
if (action === 'getListContent') {
|
|
164
|
+
loading = XdBus.getParentApi('loading')({});
|
|
165
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
166
|
+
.then(res => {
|
|
167
|
+
loading.close();
|
|
168
|
+
data.cb(res)
|
|
169
|
+
})
|
|
170
|
+
.catch(error => {
|
|
171
|
+
loading.close();
|
|
172
|
+
console.error(error);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
//广告内容创建
|
|
177
|
+
if (action === 'addContent') {
|
|
178
|
+
loading = XdBus.getParentApi('loading')({});
|
|
179
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
180
|
+
.then(res => {
|
|
181
|
+
loading.close();
|
|
182
|
+
data.cb(true)
|
|
183
|
+
})
|
|
184
|
+
.catch(error => {
|
|
185
|
+
console.error(error);
|
|
186
|
+
loading.close();
|
|
187
|
+
data.cb(false)
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
//广告内容编辑
|
|
192
|
+
if (action === 'editContent') {
|
|
193
|
+
loading = XdBus.getParentApi('loading')({});
|
|
194
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
195
|
+
.then(res => {
|
|
196
|
+
loading.close();
|
|
197
|
+
data.cb(true)
|
|
198
|
+
})
|
|
199
|
+
.catch(error => {
|
|
200
|
+
console.error(error);
|
|
201
|
+
loading.close();
|
|
202
|
+
data.cb(false)
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
//广告内容删除
|
|
207
|
+
if (action === 'deleteContent') {
|
|
208
|
+
loading = XdBus.getParentApi('loading')({});
|
|
209
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
210
|
+
.then(res => {
|
|
211
|
+
loading.close();
|
|
212
|
+
data.cb(true)
|
|
213
|
+
})
|
|
214
|
+
.catch(error => {
|
|
215
|
+
console.error(error);
|
|
216
|
+
loading.close();
|
|
217
|
+
data.cb(false)
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
//内容发布
|
|
222
|
+
if (action === 'publish') {
|
|
223
|
+
loading = XdBus.getParentApi('loading')({});
|
|
224
|
+
console.log('publish', data.params)
|
|
225
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
226
|
+
.then(res => {
|
|
227
|
+
loading.close();
|
|
228
|
+
data.cb(res)
|
|
229
|
+
})
|
|
230
|
+
.catch(error => {
|
|
231
|
+
loading.close();
|
|
232
|
+
console.error(error);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
//通知页面进行刷新
|
|
237
|
+
if (action === 'update') {
|
|
238
|
+
loading = XdBus.getParentApi('loading')({});
|
|
239
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
240
|
+
loading.close()
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
inline: false,
|
|
244
|
+
notice: '',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
label: "PLUS会员banner背景图",
|
|
248
|
+
ele: 'xd-upload',
|
|
249
|
+
valueKey: "bannerBgImg",
|
|
250
|
+
groupKey: "content",
|
|
251
|
+
value: data.bannerBgImg || {},
|
|
252
|
+
defaultValue: data.bannerBgImg || null,
|
|
253
|
+
slot: true,
|
|
254
|
+
oneWidth: 355,
|
|
255
|
+
oneHeight: 92,
|
|
256
|
+
elinputClassName: 'input40',
|
|
257
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议宽度为<span style="color:red">710px</span>,高度<span style="color:red">184px</span>',
|
|
258
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
259
|
+
styleType: 'one',
|
|
260
|
+
uploadType: 'aliyun',
|
|
261
|
+
size: 5,
|
|
262
|
+
action: 'action',
|
|
263
|
+
sort: true,
|
|
264
|
+
maxlen: 100,
|
|
265
|
+
rules: [
|
|
266
|
+
{required: true, message: '请添加背景图', trigger: 'change'},
|
|
267
|
+
],
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
label: '4大特权图片:',
|
|
271
|
+
ele: 'xd-upload',
|
|
272
|
+
valueKey: 'specialImage',
|
|
273
|
+
groupKey:'content',
|
|
274
|
+
value: data.specialImage || {},
|
|
275
|
+
defaultValue: data.specialImage || null,
|
|
276
|
+
slot: true,
|
|
277
|
+
oneWidth: 375,
|
|
278
|
+
oneHeight: 500,
|
|
279
|
+
elinputClassName: 'input40',
|
|
280
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议宽度为<span style="color:red">750px</span>,高度自适应',
|
|
281
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
282
|
+
styleType: 'one',
|
|
283
|
+
uploadType: 'aliyun',
|
|
284
|
+
size: 5,
|
|
285
|
+
action: 'action',
|
|
286
|
+
sort: true,
|
|
287
|
+
maxlen: 100,
|
|
288
|
+
rules: [
|
|
289
|
+
{required: true, message: '请添加特权图片', trigger: 'change'},
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
label: '会员详情路径:',
|
|
294
|
+
ele: 'xd-select-pages-path',
|
|
295
|
+
valueKey: 'vipDetailPath',
|
|
296
|
+
groupKey:'advanced',
|
|
297
|
+
placeholder: '请选择会员详情路径',
|
|
298
|
+
value: data['vipDetailPath'] || null,
|
|
299
|
+
setting: {
|
|
300
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
301
|
+
},
|
|
302
|
+
inline: false,
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
label: '兑换码详情路径:',
|
|
306
|
+
ele: 'xd-select-pages-path',
|
|
307
|
+
valueKey: 'exchangeCodePath',
|
|
308
|
+
groupKey:'advanced',
|
|
309
|
+
placeholder: '请选择兑换码详情路径',
|
|
310
|
+
value: data['exchangeCodePath'] || null,
|
|
311
|
+
setting: {
|
|
312
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
313
|
+
},
|
|
314
|
+
inline: false,
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
label: '省钱明细页面路径:',
|
|
318
|
+
ele: 'xd-select-pages-path',
|
|
319
|
+
valueKey: 'moneyDetailPath',
|
|
320
|
+
groupKey:'advanced',
|
|
321
|
+
placeholder: '请选择省钱明细页面路径',
|
|
322
|
+
value: data['moneyDetailPath'] || null,
|
|
323
|
+
setting: {
|
|
324
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
325
|
+
},
|
|
326
|
+
inline: false,
|
|
327
|
+
},
|
|
328
|
+
].filter(i=>i)
|
|
329
|
+
},
|
|
330
|
+
advanced: [],
|
|
331
|
+
};
|