jufubao-base 1.0.232-beta5 → 1.0.232-beta6

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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/Api.js +18 -30
  3. package/src/components/JfbBaseBalance/Attr.js +292 -24
  4. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +250 -32
  5. package/src/components/JfbBaseCodeOpenVip/Api.js +17 -39
  6. package/src/components/JfbBaseCodeOpenVip/Attr.js +19 -0
  7. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +52 -23
  8. package/src/components/JfbBaseOpenVip/Api.js +11 -40
  9. package/src/components/JfbBaseOpenVip/Attr.js +4 -4
  10. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +68 -25
  11. package/src/components/JfbBaseOpenVip/Mock.js +16 -9
  12. package/src/components/JfbBaseOpenVip/XdVipList.vue +44 -6
  13. package/src/components/JfbBaseOpenVipDetail/Api.js +17 -39
  14. package/src/components/JfbBaseOpenVipDetail/Attr.js +16 -27
  15. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +108 -23
  16. package/src/components/JfbBasePersonalData/Api.js +9 -41
  17. package/src/components/JfbBasePersonalData/Attr.js +1 -37
  18. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +43 -21
  19. package/src/components/JfbBasePointsCard/Api.js +4 -44
  20. package/src/components/JfbBasePointsCard/Attr.js +0 -48
  21. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +24 -107
  22. package/src/components/JfbBasePointsCard/Mock.js +1 -9
  23. package/src/components/JfbBasePointsDetail/Api.js +25 -0
  24. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +65 -20
  25. package/src/components/JfbBasePointsDetail/Mock.js +2 -8
  26. package/src/components/JfbBaseSavingDetail/Api.js +12 -29
  27. package/src/components/JfbBaseSavingDetail/Attr.js +44 -22
  28. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +593 -29
  29. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  30. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  31. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  32. package/src/components/JfbBaseShare/Api.js +5 -43
  33. package/src/components/JfbBaseShare/JfbBaseShare.vue +13 -12
  34. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +1 -20
  35. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +5 -0
  36. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +5 -1
  37. package/src/components/JfbBaseWithDrawAgain/Api.js +13 -30
  38. package/src/components/JfbBaseWithDrawAgain/Attr.js +70 -26
  39. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +255 -32
  40. package/src/components/JfbBaseWithDrawRecord/Api.js +4 -43
  41. package/src/components/JfbBaseWithDrawRecord/Attr.js +56 -25
  42. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +151 -34
  43. package/src/components/JfbBaseWithdraw/Api.js +20 -30
  44. package/src/components/JfbBaseWithdraw/Attr.js +304 -24
  45. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +166 -32
@@ -1,26 +1,40 @@
1
1
  <template>
2
- <view
3
- class="jfb-base-with-draw-record"
4
- @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
6
- >
2
+ <view class="jfb-base-with-draw-record" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
7
3
  <!--#ifdef H5-->
8
- <view
9
- class="jfb-base-with-draw-record__edit"
10
- :class="{ editx : isEditx && active }"
11
- v-if="isEditx && active"
12
- >
4
+ <view class="jfb-base-with-draw-record__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
13
5
  <view class="jfb-base-with-draw-record__edit-icon" @click="delEdit">删除</view>
14
6
  </view>
15
7
  <!-- #endif -->
16
- <view class="jfb-base-with-draw-record__body">
17
- <view>测试插件( {{containerId}} )</view>
8
+ <view v-if="orderList&&orderList.length>0" class="jfb-base-with-draw-record__body" :style="[bodyStyleComp]">
9
+ <view class="jfb-base-with-draw-record__body-title">
10
+ <view>提现记录</view>
11
+ <view>状态</view>
12
+ </view>
13
+ <view>
14
+ <view v-for="(item,index) in orderList" :key="index" class="jfb-base-with-draw-record__body-item">
15
+ <view class="jfb-base-with-draw-record__body-item-top">
16
+ <view>{{item.order_id}}</view>
17
+ <view v-if="item.status==='Y'" class="success">{{item.status_name}}</view>
18
+ <view v-if="item.status==='F'" class="fail">{{item.status_name}}</view>
19
+ <view v-if="item.status==='N'" class="processing">{{item.status_name}}</view>
20
+ </view>
21
+ <view class="jfb-base-with-draw-record__body-item-bottom">
22
+ <view>¥{{getAmout(item.total_amount)}}</view>
23
+ <view @click="handleToDetail(item)" v-if="item.status==='N'">
24
+ 详细
25
+ <XdFontIcon style="margin-left:8rpx" icon="iconxiangyou_xian" size="20" color="#CCCCCC"></XdFontIcon>
26
+ </view>
27
+ </view>
28
+ </view>
29
+ </view>
18
30
  </view>
31
+ <XdNoData v-else></XdNoData>
19
32
  </view>
20
33
  </template>
21
34
 
22
35
  <script>
23
36
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
37
+ import XdNoData from "@/components/XdNoData/XdNoData";
24
38
  import { jfbRootExec } from "@/utils/xd.event";
25
39
  import JfbBaseWithDrawRecordMixin from "./JfbBaseWithDrawRecordMixin";
26
40
  import { getContainerPropsValue } from "@/utils/xd.base";
@@ -29,17 +43,33 @@
29
43
  export default {
30
44
  name: "JfbBaseWithDrawRecord",
31
45
  components: {
32
- XdFontIcon
46
+ XdFontIcon,
47
+ XdNoData
33
48
  },
34
49
  mixins: [
35
50
  componentsMixins, extsMixins, JfbBaseWithDrawRecordMixin
36
51
  ],
37
52
  data() {
38
53
  return {
39
-
40
- //todo
54
+ radius: 0,
55
+ margin: {},
56
+ bgColor: '',
57
+ bodyBorder: {},
58
+ againWithDrawPath: '',
59
+ page_token: 1,
60
+ orderList: []
41
61
  }
42
62
  },
63
+ computed: {
64
+ bodyStyleComp() {
65
+ return {
66
+ borderRadius: `${this.radius}rpx`,
67
+ margin: this.getMarginAndPadding(this.margin, 20),
68
+ background: this.bgColor,
69
+ border: this.bodyBorder,
70
+ }
71
+ },
72
+ },
43
73
  watch: {
44
74
  container(value, oldValue) {
45
75
  if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
@@ -48,31 +78,49 @@
48
78
  },
49
79
  created() {
50
80
  this.init(this.container);
51
-
52
- //todo
53
81
  },
54
82
  methods: {
55
83
  onJfbLoad(options) {
56
-
57
- // jfbRootExec('baiduUserLogin', {
58
-
59
- // vm: this,// data: {
60
-
61
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
62
-
63
- // }
64
-
65
- // }).then().catch()
84
+ this.getOrderRecord()
85
+ },
86
+ getAmout(amount) {
87
+ return this.$xdUniHelper.divisionFloatNumber(amount, 100)
66
88
  },
67
89
  /**
68
90
  * @description 监听事件变化
69
91
  * @param container {object} 业务组件对象自己
70
92
  */
71
93
  init(container) {
72
-
73
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
74
-
75
- //this.height = getContainerPropsValue(container, 'content.height', 10);
94
+ this.radius = getContainerPropsValue(container, 'content.radius', 20);
95
+ this.margin = getContainerPropsValue(container, 'content.bodyMargin', {});
96
+ this.bgColor = getContainerPropsValue(container, 'content.bgColor', '#fff');
97
+ this.bodyBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.bodyBorder', {}))
98
+ this.againWithDrawPath = getContainerPropsValue(container, 'content.againWithDrawPath', { value: '' }).value;
99
+ },
100
+ getOrderRecord() {
101
+ jfbRootExec("getRecordWithdrawOrderList", {
102
+ vm: this,
103
+ data: {
104
+ page_size: 10,
105
+ page_token: this.page_token,
106
+ },
107
+ }).then(res => {
108
+ let list = res.list.map(item => {
109
+ item["created_time"] = this.$xdUniHelper.getDate(
110
+ item["created_time"] * 1000
111
+ ).fullTime;
112
+ return item;
113
+ })
114
+ this.hasNext = res.next_page_token !== "";
115
+ if (this.page_token === 1) {
116
+ this.orderList = list
117
+ } else {
118
+ this.orderList = this.orderList.concat(list);
119
+ }
120
+ })
121
+ },
122
+ handleToDetail(item) {
123
+ this.$xdUniHelper.navigateTo({ url: `${this.againWithDrawPath}?order_id=${item.order_id}` })
76
124
  },
77
125
  onJfbScroll(options) {
78
126
  console.log('event.onJfbScroll', options)
@@ -81,7 +129,7 @@
81
129
  console.log('event.onJfbReachBottom', options)
82
130
  },
83
131
  onJfbShow(options) {
84
- console.log('event.onJfbShow', options)
132
+ this.getOrderRecord()
85
133
  },
86
134
  onJfbHide(options) {
87
135
  console.log('event.onJfbHide', options)
@@ -104,8 +152,77 @@
104
152
  @import "./JfbBaseWithDrawRecordLess.less";
105
153
 
106
154
  .jfb-base-with-draw-record {
107
- &__body{
155
+ &__body {
156
+ border-radius: 20rpx;
157
+ margin: 20rpx;
158
+
159
+ &-title {
160
+ background: #F3F3F3;
161
+ padding: 36rpx 48rpx;
162
+ display: flex;
163
+ justify-content: space-between;
164
+ align-items: center;
165
+ font-size: 28rpx;
166
+
167
+ &>view:first-child {
168
+ font-weight: 500;
169
+ color: #333;
170
+ }
108
171
 
172
+ &> :last-child {
173
+ color: #CCCCCC;
174
+ }
175
+ }
176
+
177
+ &-item {
178
+ margin-top: 24rpx;
179
+ padding: 20rpx 48rpx;
180
+ font-size: 28rpx;
181
+
182
+ &-top {
183
+ display: flex;
184
+ justify-content: space-between;
185
+ align-items: center;
186
+ margin-bottom: 32rpx;
187
+
188
+ &>view:first-child {
189
+ color: #333333;
190
+ }
191
+ }
192
+
193
+ &-bottom {
194
+ display: flex;
195
+ justify-content: space-between;
196
+ align-items: center;
197
+
198
+ &>view:first-child {
199
+ color: #999999;
200
+ }
201
+
202
+ &> :last-child {
203
+ color: #ccc;
204
+ font-size: 26rpx;
205
+ display: flex;
206
+ align-items: center;
207
+ }
208
+ }
209
+ }
210
+
211
+ &-item:last-child {
212
+ margin-bottom: 40rpx;
213
+ }
214
+
215
+ .success {
216
+ color: #00C800;
217
+ }
218
+
219
+ .fail {
220
+ color: #FF5A39;
221
+ }
222
+
223
+ .processing {
224
+ color: #999999
225
+ }
109
226
  }
110
227
  }
111
- </style>
228
+ </style>
@@ -6,51 +6,41 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Withdraw
10
- mapFnName: 'getWithdrawByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
10
+ title: '获取内容',
11
+ path: '/cms/v1/news-content',
13
12
  isRule: false,
14
13
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
14
+ scene: ['使用场景', 'String', '选填'],
15
+ container_id: ['插件ID', 'String', '必填'],
16
+ page_id: ['页面ID', 'String', '必填'],
17
+ page_size: ['记录条数', 'Number', '必填', 1],
18
+ code: ['业务线id', 'String', '选填'],
17
19
  },
18
20
  isConsole: true,
19
21
  disabled: true,
20
22
  },
21
23
  {
22
- //设置方法名字当别忘记加上【模块名字】:Withdraw
23
- mapFnName: 'updateWithdrawFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
24
+ mapFnName: 'getWithDrawDetail',
25
+ title: '用户资产 - 获取钱包(或积分)余额详情',
26
+ path: '/pay/v1/property/wallet-detail',
26
27
  isRule: false,
27
28
  params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
29
+ method: ['wallet 余额; score 积分;', 'Number', '非必选'],
30
30
  },
31
31
  isConsole: true,
32
32
  disabled: true,
33
33
  },
34
34
  {
35
- //设置方法名字当别忘记加上【模块名字】:Withdraw
36
- mapFnName: 'removeWithdrawFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
35
+ mapFnName: 'createWithdraw',
36
+ title: '用户资产 - 提现申请',
37
+ path: '/pay/v1/property/withdraw-order/create',
39
38
  isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Withdraw
48
- mapFnName: 'addWithdrawFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
39
+ data: {
40
+ total_amount: ['提现金额', 'Number', '必选'],
41
+ wallet_type: ['钱包类型', 'Number', '必选'],
42
+ login_providers: ['支持的登录方式(project.json接口的login_providers)', 'Number', '必选'],
43
+ pay_channel_providers: ['支持的登录方式(project.json接口的pay_channels)', 'Number', '必选'],
54
44
  },
55
45
  isConsole: true,
56
46
  disabled: true,
@@ -7,42 +7,322 @@ export default {
7
7
  style: [],
8
8
  content: (data) => {
9
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-border",
62
+ valueKey: "bodyBorder",
63
+ value: data['bodyBorder'] || { type: 'Y', value: { color: '#eee', style: "solid", width: '1' } },
64
+ className: 'input80',
65
+ groupKey: 'style',
66
+ },
10
67
  {
11
68
  label: '背景颜色:',
12
69
  ele: 'xd-color',
13
70
  valueKey: 'bgColor',
14
- value: data.bgColor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- groupKey:'content',
71
+ groupKey: 'style',
72
+ value: data['bgColor'] || null,
73
+ placeholder: '请选择背景颜色',
74
+ labelInline: true,
75
+ classNmae: 'input80',
17
76
  },
18
77
  {
19
- label: '选中路径:',
20
- groupKey:'advanced',
21
- className: 'input100',
22
- ele: 'xd-select-pages-path',
23
- valueKey: 'select-pages-path',
24
- value: data['select-pages-path'] || null,
78
+ label: '公告内容:',
79
+ ele: 'xd-site-news',
80
+ valueKey: 'notice',
81
+ groupKey: 'content',
82
+ value: data.notice || null,
83
+ className: 'input70',
25
84
  setting: {
26
- router: XdBus.getParentApi('getPagesTree')
85
+ config: {
86
+ sort: true,
87
+ maxlen: 100,
88
+ action: 'aliyun',
89
+ size: 5,
90
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
91
+ uploadType: 'aliyun',
92
+ type: ['jpg', 'png', 'jpeg']
93
+ },
94
+ },
95
+ handleCustom({ action, data }) {
96
+ if (data && data.params) {
97
+ //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
98
+ //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
99
+ }
100
+
101
+ //获取返回参数(场景类型名称为必填)
102
+ //获取返回参数(场景类型名称为必填)
103
+ let loading = { close() { } }
104
+
105
+ //获取显示内容
106
+ if (action === 'screen') {
107
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
108
+ .then(res => {
109
+ loading.close();
110
+ data.cb(res['list'])
111
+ })
112
+ .catch(error => {
113
+ console.error(error);
114
+ loading.close();
115
+ });
116
+
117
+ }
118
+
119
+ //获取返回参数(广告位高度必选项)
120
+ if (action === 'getNewsInfo') {
121
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
122
+ .then(res => {
123
+ loading.close()
124
+ data.cb({ list: res.list, selectId: res.selected })
125
+ })
126
+ .catch(error => {
127
+ loading.close()
128
+ console.error(error);
129
+ });
130
+ }
131
+
132
+ //获取产品业务线列表
133
+ if (action === 'namespace') {
134
+ XdBus.getParentApi('getOptionsNamespaces')({})
135
+ .then(res => {
136
+ loading.close()
137
+ data.cb(res['list'])
138
+ })
139
+ .catch(error => {
140
+ loading.close()
141
+ console.error(error);
142
+ });
143
+ }
144
+
145
+ //使用内容分类
146
+ if (action === 'cmsPublishEditxContent') {
147
+ loading = XdBus.getParentApi('loading')({});
148
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
149
+ .then(res => {
150
+ console.log('cmsPublishEditxContent', res)
151
+ loading.close();
152
+ data.cb(res)
153
+ })
154
+ .catch(error => {
155
+ loading.close();
156
+ console.error(error);
157
+ });
158
+ }
159
+
160
+ //位置列表
161
+ if (action === 'getListPostion') {
162
+ loading = XdBus.getParentApi('loading')({});
163
+ XdBus.getParentApi('getListNewsPosition')(data.params)
164
+ .then(res => {
165
+ loading.close();
166
+ data.cb(res)
167
+ })
168
+ .catch(error => {
169
+ loading.close();
170
+ console.error(error);
171
+ });
172
+ }
173
+
174
+ //位置创建
175
+ if (action === 'addPostion') {
176
+ loading = XdBus.getParentApi('loading')({});
177
+ XdBus.getParentApi('addNewsPosition')(data.params)
178
+ .then(res => {
179
+ loading.close();
180
+ data.cb(true)
181
+ })
182
+ .catch(error => {
183
+ console.error(error);
184
+ loading.close();
185
+ data.cb(false)
186
+ });
187
+ }
188
+
189
+ //位置编辑
190
+ if (action === 'editPostion') {
191
+ loading = XdBus.getParentApi('loading')({});
192
+ XdBus.getParentApi('updateNewsPosition')(data.params)
193
+ .then(res => {
194
+ loading.close();
195
+ data.cb(true)
196
+ })
197
+ .catch(error => {
198
+ console.error(error);
199
+ loading.close();
200
+ data.cb(false)
201
+ });
202
+ }
203
+
204
+ //位置删除
205
+ if (action === 'deleltePostion') {
206
+ loading = XdBus.getParentApi('loading')({});
207
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
208
+ .then(res => {
209
+ loading.close();
210
+ data.cb(true)
211
+ })
212
+ .catch(error => {
213
+ console.error(error);
214
+ loading.close();
215
+ data.cb(false)
216
+ });
217
+ }
218
+
219
+ //获取广告位内容列表
220
+ if (action === 'getListContent') {
221
+ loading = XdBus.getParentApi('loading')({});
222
+ XdBus.getParentApi('getListNewsContent')(data.params)
223
+ .then(res => {
224
+ loading.close();
225
+ data.cb(res)
226
+ })
227
+ .catch(error => {
228
+ loading.close();
229
+ console.error(error);
230
+ });
231
+ }
232
+
233
+ //广告内容创建
234
+ if (action === 'addContent') {
235
+ loading = XdBus.getParentApi('loading')({});
236
+ XdBus.getParentApi('addNewsContent')(data.params)
237
+ .then(res => {
238
+ loading.close();
239
+ data.cb(true)
240
+ })
241
+ .catch(error => {
242
+ console.error(error);
243
+ loading.close();
244
+ data.cb(false)
245
+ });
246
+ }
247
+
248
+ //广告内容编辑
249
+ if (action === 'editContent') {
250
+ loading = XdBus.getParentApi('loading')({});
251
+ XdBus.getParentApi('updateNewsContent')(data.params)
252
+ .then(res => {
253
+ loading.close();
254
+ data.cb(true)
255
+ })
256
+ .catch(error => {
257
+ console.error(error);
258
+ loading.close();
259
+ data.cb(false)
260
+ });
261
+ }
262
+
263
+ //广告内容删除
264
+ if (action === 'deleteContent') {
265
+ loading = XdBus.getParentApi('loading')({});
266
+ XdBus.getParentApi('deleteNewsContent')(data.params)
267
+ .then(res => {
268
+ loading.close();
269
+ data.cb(true)
270
+ })
271
+ .catch(error => {
272
+ console.error(error);
273
+ loading.close();
274
+ data.cb(false)
275
+ });
276
+ }
277
+
278
+ //内容发布
279
+ if (action === 'publish') {
280
+ loading = XdBus.getParentApi('loading')({});
281
+ console.log('publish', data.params)
282
+ XdBus.getParentApi('cmsPublishContent')(data.params)
283
+ .then(res => {
284
+ loading.close();
285
+ data.cb(res)
286
+ })
287
+ .catch(error => {
288
+ loading.close();
289
+ console.error(error);
290
+ });
291
+ }
292
+
293
+ //通知页面进行刷新
294
+ if (action === 'update') {
295
+ loading = XdBus.getParentApi('loading')({});
296
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
297
+ loading.close()
298
+ }
27
299
  },
28
300
  },
29
- data.bgColor && {
30
- label: '高度:',
31
- ele: 'el-input',
32
- groupKey:'style',
33
- type: 'number',
34
- valueKey: 'height',
35
- value: data.height || 100,
36
- placeholder: '请输入占位框高度,单位像素,默认:10px',
37
- className: 'input60',
301
+ {
302
+ label: '提现记录路径:',
303
+ ele: 'xd-select-pages-path',
304
+ valueKey: 'withDrawRecordPath',
305
+ groupKey: 'advanced',
306
+ placeholder: '请选择提现记录路径',
307
+ value: data['withDrawRecordPath'] || {},
308
+ setting: {
309
+ router: XdBus.getParentApi('getPagesTree'),
310
+ },
311
+ inline: false,
38
312
  },
39
313
  {
40
- label: '', //label
41
- groupKey:'advanced',
42
- ele: 'slot', //package 名称
43
- slot: 'is_reference',
314
+ label: '提现路径:',
315
+ ele: 'xd-select-pages-path',
316
+ valueKey: 'withDrawPath',
317
+ groupKey: 'advanced',
318
+ placeholder: '请选择提现路径',
319
+ value: data['withDrawPath'] || {},
320
+ setting: {
321
+ router: XdBus.getParentApi('getPagesTree'),
322
+ },
323
+ inline: false,
44
324
  },
45
- ].filter(i=>i)
325
+ ].filter(i => i)
46
326
  },
47
327
  advanced: [],
48
328
  };