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,267 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="jfb-base-points-detail" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
|
|
3
|
-
<!--#ifdef H5-->
|
|
4
|
-
<view class="jfb-base-points-detail__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
|
|
5
|
-
<view class="jfb-base-points-detail__edit-icon" @click="delEdit">删除</view>
|
|
6
|
-
</view>
|
|
7
|
-
<!-- #endif -->
|
|
8
|
-
<view class="jfb-base-points-detail__body">
|
|
9
|
-
<view :style="[bodyStyleComp]" class="jfb-base-points-detail__body-points">
|
|
10
|
-
<view>
|
|
11
|
-
可用积分
|
|
12
|
-
<XdFontIcon @click="showDialog=true" style="margin-left: 10rpx" size="20" icon="iconmingchengtubiao">
|
|
13
|
-
</XdFontIcon>
|
|
14
|
-
</view>
|
|
15
|
-
<view>{{getAmout(amount)}}</view>
|
|
16
|
-
</view>
|
|
17
|
-
<view v-if="recordList&&recordList.ength>0" :style="[bodyStyleComp]" class="jfb-base-points-detail__body-list">
|
|
18
|
-
<view v-for="(item,index) in recordList" :key="index" class="jfb-base-points-detail__body-list-item">
|
|
19
|
-
<view class="jfb-base-points-detail__body-list-item-info">
|
|
20
|
-
<view class="jfb-base-points-detail__body-list-item-info-label">{{item.trade_type_name}}</view>
|
|
21
|
-
<view :class="item.operate_type==='A'?'income':'expenses'"
|
|
22
|
-
class="jfb-base-points-detail__body-list-item-info-value"><text>{{item.operate_type==='A'?'+':'-'}}</text>
|
|
23
|
-
{{getAmout(item.amount)}}
|
|
24
|
-
</view>
|
|
25
|
-
</view>
|
|
26
|
-
<view class="jfb-base-points-detail__body-list-item-date">{{item.created_time}}</view>
|
|
27
|
-
</view>
|
|
28
|
-
</view>
|
|
29
|
-
<XdNoData v-else></XdNoData>
|
|
30
|
-
<XdDailog :cancel="false" @onBtn="showDialog=false" confirmText="我知道了" title="积分说明" :show.sync="showDialog">
|
|
31
|
-
<xd-content-xss v-html="notice"></xd-content-xss>
|
|
32
|
-
</XdDailog>
|
|
33
|
-
</view>
|
|
34
|
-
</view>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
39
|
-
import XdDailog from '@/components/XdDailog/XdDailog.vue';
|
|
40
|
-
import XdNoData from "@/components/XdNoData/XdNoData";
|
|
41
|
-
import XdContentXss from '@/components/XdContentXss/XdContentXss';
|
|
42
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
43
|
-
import JfbBasePointsDetailMixin from "./JfbBasePointsDetailMixin";
|
|
44
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
45
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
46
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
47
|
-
export default {
|
|
48
|
-
name: "JfbBasePointsDetail",
|
|
49
|
-
components: {
|
|
50
|
-
XdFontIcon,
|
|
51
|
-
XdDailog,
|
|
52
|
-
XdContentXss,
|
|
53
|
-
XdNoData
|
|
54
|
-
},
|
|
55
|
-
mixins: [
|
|
56
|
-
componentsMixins, extsMixins, JfbBasePointsDetailMixin
|
|
57
|
-
],
|
|
58
|
-
data() {
|
|
59
|
-
return {
|
|
60
|
-
income: false,
|
|
61
|
-
radius: 0,
|
|
62
|
-
margin: {},
|
|
63
|
-
padding: {},
|
|
64
|
-
bgColor: '',
|
|
65
|
-
bodyBorder: {},
|
|
66
|
-
notice: '',
|
|
67
|
-
showDialog: false,
|
|
68
|
-
method: '',
|
|
69
|
-
amount: 0,
|
|
70
|
-
recordList: []
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
computed: {
|
|
74
|
-
bodyStyleComp() {
|
|
75
|
-
return {
|
|
76
|
-
borderRadius: `${this.radius}rpx`,
|
|
77
|
-
margin: this.getMarginAndPadding(this.margin, 20),
|
|
78
|
-
padding: this.getMarginAndPadding(this.padding, 40),
|
|
79
|
-
background: this.bgColor,
|
|
80
|
-
border: this.bodyBorder,
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
watch: {
|
|
85
|
-
container(value, oldValue) {
|
|
86
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
87
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
created() {
|
|
91
|
-
this.init(this.container);
|
|
92
|
-
|
|
93
|
-
//todo
|
|
94
|
-
},
|
|
95
|
-
methods: {
|
|
96
|
-
onJfbLoad(options) {
|
|
97
|
-
console.log(this.getTokenForKey('csrf_user_id'), 'user_leveluser_level');
|
|
98
|
-
this.method = options.method
|
|
99
|
-
this.getPointsDetail()
|
|
100
|
-
this.getContent()
|
|
101
|
-
},
|
|
102
|
-
getAmout(amount) {
|
|
103
|
-
return this.$xdUniHelper.divisionFloatNumber(amount, 100)
|
|
104
|
-
},
|
|
105
|
-
getContent() {
|
|
106
|
-
jfbRootExec("getListBaseNewsContent", {
|
|
107
|
-
vm: this,
|
|
108
|
-
data: {
|
|
109
|
-
page_id: this.pageAttr["page_id"], //页面ID
|
|
110
|
-
container_id: this.containerId, //组件ID
|
|
111
|
-
limit: 1,
|
|
112
|
-
},
|
|
113
|
-
})
|
|
114
|
-
.then((res) => {
|
|
115
|
-
if (res.list.length > 0) {
|
|
116
|
-
if (res.list && res.list.length > 0) {
|
|
117
|
-
this.notice = this.$xdUniHelper.filterHtml(res.list[0].content);
|
|
118
|
-
}
|
|
119
|
-
this.noticeStatus = true;
|
|
120
|
-
}
|
|
121
|
-
})
|
|
122
|
-
.catch((error) => {
|
|
123
|
-
console.error(error);
|
|
124
|
-
});
|
|
125
|
-
},
|
|
126
|
-
getPointsDetail() {
|
|
127
|
-
jfbRootExec("getPointsWalletDetail", {
|
|
128
|
-
vm: this,
|
|
129
|
-
data: {
|
|
130
|
-
method: this.method
|
|
131
|
-
},
|
|
132
|
-
}).then(res => {
|
|
133
|
-
this.amount = res.wallet_list[0].amount
|
|
134
|
-
this.wallet_type = res.wallet_list[0].wallet_type
|
|
135
|
-
this.getPointsRecord()
|
|
136
|
-
})
|
|
137
|
-
},
|
|
138
|
-
getPointsRecord() {
|
|
139
|
-
jfbRootExec("getPointsWalletTradeList", {
|
|
140
|
-
vm: this,
|
|
141
|
-
data: {
|
|
142
|
-
wallet_type: this.wallet_type,
|
|
143
|
-
page_size: 10,
|
|
144
|
-
},
|
|
145
|
-
}).then(res => {
|
|
146
|
-
let list = res.list.map(item => {
|
|
147
|
-
item["created_time"] = this.$xdUniHelper.getDate(
|
|
148
|
-
item["created_time"] * 1000
|
|
149
|
-
).fullTime;
|
|
150
|
-
return item;
|
|
151
|
-
})
|
|
152
|
-
if (this.page_token === 1) {
|
|
153
|
-
this.recordList = list
|
|
154
|
-
} else {
|
|
155
|
-
this.recordList = this.recordList.concat(list);
|
|
156
|
-
}
|
|
157
|
-
this.next_page_token = res.next_page_token
|
|
158
|
-
this.hasNext = res.next_page_token !== "";
|
|
159
|
-
})
|
|
160
|
-
},
|
|
161
|
-
/**
|
|
162
|
-
* @description 监听事件变化
|
|
163
|
-
* @param container {object} 业务组件对象自己
|
|
164
|
-
*/
|
|
165
|
-
init(container) {
|
|
166
|
-
this.radius = getContainerPropsValue(container, 'content.radius', '20');
|
|
167
|
-
this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
|
|
168
|
-
this.padding = getContainerPropsValue(container, 'content.bodyPadding', {});
|
|
169
|
-
this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
|
|
170
|
-
this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
|
|
171
|
-
console.log(getContainerPropsValue(container, 'content.bodyBorder', {}), 'this.bgColor');
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
onJfbScroll(options) {
|
|
175
|
-
console.log('event.onJfbScroll', options)
|
|
176
|
-
},
|
|
177
|
-
onJfbReachBottom(options) {
|
|
178
|
-
if (this.hasNext) {
|
|
179
|
-
this.page_token = this.next_page_token;
|
|
180
|
-
this.getPointsRecord()
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
onJfbShow(options) {
|
|
184
|
-
console.log('event.onJfbShow', options)
|
|
185
|
-
},
|
|
186
|
-
onJfbHide(options) {
|
|
187
|
-
console.log('event.onJfbHide', options)
|
|
188
|
-
},
|
|
189
|
-
onJfbBack(options) {
|
|
190
|
-
console.log('event.onJfbBack', options)
|
|
191
|
-
},
|
|
192
|
-
onJfbUpdate(...data) {
|
|
193
|
-
console.log('event.onJfbUpdate', data)
|
|
194
|
-
},
|
|
195
|
-
onJfbCustomEvent(options) {
|
|
196
|
-
console.log('event.onJfbReachBottom', options)
|
|
197
|
-
},
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
</script>
|
|
202
|
-
|
|
203
|
-
<style scoped lang="less">
|
|
204
|
-
@import "./JfbBasePointsDetailLess.less";
|
|
205
|
-
|
|
206
|
-
.jfb-base-points-detail {
|
|
207
|
-
&__body {
|
|
208
|
-
&-points {
|
|
209
|
-
background: #fff;
|
|
210
|
-
|
|
211
|
-
&>view:first-child {
|
|
212
|
-
display: flex;
|
|
213
|
-
align-items: center;
|
|
214
|
-
color: #333;
|
|
215
|
-
font-size: 24rpx;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
&>view:nth-child(2) {
|
|
219
|
-
color: #333;
|
|
220
|
-
font-size: 64rpx;
|
|
221
|
-
font-weight: 500;
|
|
222
|
-
margin-top: 20rpx;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&-list {
|
|
227
|
-
&-item {
|
|
228
|
-
margin-bottom: 40rpx;
|
|
229
|
-
|
|
230
|
-
&-info {
|
|
231
|
-
display: flex;
|
|
232
|
-
justify-content: space-between;
|
|
233
|
-
align-items: center;
|
|
234
|
-
|
|
235
|
-
&-label {
|
|
236
|
-
color: #333333;
|
|
237
|
-
font-size: 28rpx;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
&-value {
|
|
241
|
-
font-size: 32rpx;
|
|
242
|
-
font-weight: 700;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.income {
|
|
246
|
-
color: #FF5A39;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.expenses {
|
|
250
|
-
color: #00C800;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
&-date {
|
|
255
|
-
color: #999999;
|
|
256
|
-
font-size: 22rpx;
|
|
257
|
-
margin-top: 26rpx;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
&-item:last-child {
|
|
262
|
-
margin-bottom: 0;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
</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-points-detail {
|
|
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-points-detail {
|
|
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-points-detail'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
getPointsWalletDetail:{"wallet_list":[{"sort":1,"wallet_type":"US","show_name":"可用积分","amount":10000,"is_support_withdraw":"N"}],"request_id":"43fa9f773f0c3014"},
|
|
5
|
-
getPointsWalletTradeList: {"next_page_token":"","total_size":0,"list":[{"trade_nnid":"zd0rYpZgWXE9Yf8e1mtH3","order_id":"111112-2025041517-03-54","amount":10000,"trade_type":"activity_a","trade_type_name":"活动收入","operate_type":"A","operate_type_name":"收入","trade_name":"","comment":"","created_time":1744707836}],"request_id":"eec94260e6f9de53"}
|
|
6
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Poster
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
mapFnName: 'getListPosterGroupContent', //自定义方法名字(必选)
|
|
10
|
-
title: '获取内容',
|
|
11
|
-
path: '/cms/v1/ad-content',
|
|
12
|
-
isRule: false,
|
|
13
|
-
params: {
|
|
14
|
-
scene: ['使用场景', 'String', '选填'],
|
|
15
|
-
container_id: ['插件ID', 'String', '必填'],
|
|
16
|
-
page_id: ['页面ID', 'String', '必填'],
|
|
17
|
-
page_size: ['记录条数', 'Number', '必填'],
|
|
18
|
-
},
|
|
19
|
-
isConsole: true,
|
|
20
|
-
disabled: true,
|
|
21
|
-
},
|
|
22
|
-
];
|
|
@@ -1,156 +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-margin-padding',
|
|
13
|
-
valueKey: 'bodyMargin',
|
|
14
|
-
groupKey: 'style',
|
|
15
|
-
value: data['bodyMargin'] || null,
|
|
16
|
-
setting: {
|
|
17
|
-
type: 'margin',
|
|
18
|
-
},
|
|
19
|
-
placeholder: '请设置外边距',
|
|
20
|
-
inline: false,
|
|
21
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
label: '外填充:',
|
|
25
|
-
ele: 'xd-margin-padding',
|
|
26
|
-
valueKey: 'bodyPadding',
|
|
27
|
-
groupKey: 'style',
|
|
28
|
-
value: data['bodyPadding'] || null,
|
|
29
|
-
setting: {
|
|
30
|
-
type: 'padding',
|
|
31
|
-
},
|
|
32
|
-
placeholder: '请设置外填充',
|
|
33
|
-
inline: false,
|
|
34
|
-
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label: '圆角设置:',
|
|
38
|
-
ele: 'xd-site-select-list',
|
|
39
|
-
valueKey: 'radius',
|
|
40
|
-
value: data['radius'] || '20',
|
|
41
|
-
labelInline: true,
|
|
42
|
-
groupKey: 'style',
|
|
43
|
-
placeholder: '请选择圆角设置',
|
|
44
|
-
multiple: false,
|
|
45
|
-
className: 'input60',
|
|
46
|
-
handleCustom({ action, data }) {
|
|
47
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
48
|
-
setting_id: 'edtix_style_radius',
|
|
49
|
-
key: Date.now()
|
|
50
|
-
})
|
|
51
|
-
.then(res => {
|
|
52
|
-
data.cb(res.list)
|
|
53
|
-
})
|
|
54
|
-
.catch(error => {
|
|
55
|
-
console.error(error);
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "背景颜色:",
|
|
61
|
-
ele: "xd-color",
|
|
62
|
-
valueKey: "bgColor",
|
|
63
|
-
value: data.bgColor || null,
|
|
64
|
-
groupKey: "style",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: '背景图:',
|
|
68
|
-
ele: 'xd-upload',
|
|
69
|
-
valueKey: 'backgroundImage',
|
|
70
|
-
groupKey: 'content',
|
|
71
|
-
value: data.backgroundImage || {},
|
|
72
|
-
defaultValue: data.backgroundImage || null,
|
|
73
|
-
slot: true,
|
|
74
|
-
oneWidth: 375,
|
|
75
|
-
oneHeight: 290,
|
|
76
|
-
elinputClassName: 'input40',
|
|
77
|
-
tipsformet: `上传文件格式:@imageType@,不超过@size@MB,尺寸:375*290像素`,
|
|
78
|
-
type: ['jpg', 'png', 'jpeg'],
|
|
79
|
-
styleType: 'one',
|
|
80
|
-
uploadType: 'aliyun',
|
|
81
|
-
size: 5,
|
|
82
|
-
action: 'action',
|
|
83
|
-
sort: true,
|
|
84
|
-
maxlen: 100,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: "主标题:",
|
|
88
|
-
ele: "xd-tinymce",
|
|
89
|
-
valueKey: "title",
|
|
90
|
-
value: data.title || '',
|
|
91
|
-
groupKey: 'content',
|
|
92
|
-
height:200,
|
|
93
|
-
imageConfig: {
|
|
94
|
-
sort: true,
|
|
95
|
-
maxlen: 100,
|
|
96
|
-
action: "action",
|
|
97
|
-
size: 5,
|
|
98
|
-
tipsformet: "上传文件格式:@imageType@,不超过@size@MB.",
|
|
99
|
-
uploadType: "aliyun",
|
|
100
|
-
type: ["jpg", "png", "jpeg"],
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
label: "副标题:",
|
|
105
|
-
ele: "el-input",
|
|
106
|
-
valueKey: "subtitle",
|
|
107
|
-
groupKey: 'content',
|
|
108
|
-
value: data.subtitle || '',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: '是否展示更多:',
|
|
112
|
-
ele: 'xd-radio',
|
|
113
|
-
valueKey: 'is_show_more',
|
|
114
|
-
value: data['is_show_more'] || 'Y',
|
|
115
|
-
groupKey: 'content',
|
|
116
|
-
placeholder: '请选择是否展示更多',
|
|
117
|
-
multiple: false,
|
|
118
|
-
className: 'input80',
|
|
119
|
-
list: [
|
|
120
|
-
{ label: '展示', value: 'Y' },
|
|
121
|
-
{ label: '隐藏', value: 'N' },
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
data['is_show_more'] === 'Y' && {
|
|
125
|
-
label: '更多跳转路径:',
|
|
126
|
-
ele: 'xd-select-pages-path',
|
|
127
|
-
valueKey: 'morePath',
|
|
128
|
-
groupKey: 'advanced',
|
|
129
|
-
placeholder: '请选择更多跳转路径',
|
|
130
|
-
value: data['morePath'] || null,
|
|
131
|
-
setting: {
|
|
132
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
133
|
-
},
|
|
134
|
-
inline: false,
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: '广告组:',
|
|
138
|
-
ele: 'xd-site-poster-group',
|
|
139
|
-
valueKey: 'posterGroup',
|
|
140
|
-
groupKey: 'content',
|
|
141
|
-
value: data.posterGroup || {},
|
|
142
|
-
isKey: true,
|
|
143
|
-
key: new Date().getTime(),
|
|
144
|
-
setting: {
|
|
145
|
-
scene: { label: '广告', value: 'normal' },
|
|
146
|
-
partDisabled: true,
|
|
147
|
-
disabled: true,
|
|
148
|
-
},
|
|
149
|
-
rules: [
|
|
150
|
-
{ required: true, message: '请选择广告位', trigger: 'change' },
|
|
151
|
-
],
|
|
152
|
-
},
|
|
153
|
-
].filter(i => i)
|
|
154
|
-
},
|
|
155
|
-
advanced: [],
|
|
156
|
-
};
|