jufubao-base 1.0.19 → 1.0.21

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 (39) hide show
  1. package/package.json +2 -1
  2. package/src/components/JfbBaseAfterOrderList/Api.js +60 -0
  3. package/src/components/JfbBaseAfterOrderList/Attr.js +154 -0
  4. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +203 -0
  5. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +57 -0
  6. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListMixin.js +222 -0
  7. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +20 -0
  8. package/src/components/JfbBaseBlock/JfbBaseBlockMixin.js +42 -4
  9. package/src/components/JfbBaseCard/JfbBaseCardMixin.js +42 -4
  10. package/src/components/JfbBaseCardBind/JfbBaseCardBindMixin.js +42 -4
  11. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailMixin.js +42 -4
  12. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoMixin.js +42 -4
  13. package/src/components/JfbBaseCardMy/JfbBaseCardMyMixin.js +42 -4
  14. package/src/components/JfbBaseCardShift/JfbBaseCardShiftMixin.js +42 -4
  15. package/src/components/JfbBaseFooter/Attr.js +82 -0
  16. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +111 -40
  17. package/src/components/JfbBaseFooter/JfbBaseFooterMixin.js +49 -3
  18. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +42 -4
  19. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +172 -51
  20. package/src/components/JfbBaseLogin/JfbBaseLoginMixin.js +42 -4
  21. package/src/components/JfbBaseMy/Api.js +60 -0
  22. package/src/components/JfbBaseMy/Attr.js +54 -0
  23. package/src/components/JfbBaseMy/JfbBaseMy.vue +262 -0
  24. package/src/components/JfbBaseMy/JfbBaseMyLess.less +57 -0
  25. package/src/components/JfbBaseMy/JfbBaseMyMixin.js +222 -0
  26. package/src/components/JfbBaseOrderList/Api.js +60 -0
  27. package/src/components/JfbBaseOrderList/Attr.js +154 -0
  28. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +285 -0
  29. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +57 -0
  30. package/src/components/JfbBaseOrderList/JfbBaseOrderListMixin.js +222 -0
  31. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdMixin.js +42 -4
  32. package/src/components/JfbBaseSuccess/Attr.js +68 -0
  33. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +327 -0
  34. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +57 -0
  35. package/src/components/JfbBaseSuccess/JfbBaseSuccessMixin.js +222 -0
  36. package/src/components/JfbBaseTestApi/JfbBaseTestApiMixin.js +42 -4
  37. package/src/components/JfbBaseTestBody/JfbBaseTestBodyMixin.js +37 -3
  38. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomMixin.js +37 -3
  39. package/src/components/JfbBaseTestTop/JfbBaseTestTopMixin.js +37 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -12,6 +12,7 @@
12
12
  "init.entry": "node ./build/commands/entry.init.js",
13
13
  "update": "node ./commands/update.pack.js",
14
14
  "create": "node ./commands/create.pack.js",
15
+ "change": "node ./commands/change.pack",
15
16
  "release": "node ./commands/npmignore && npm publish",
16
17
  "init": "cross-env isLocal=false node ./commands.js",
17
18
  "init.local": "cross-env isLocal=true node ./commands.js",
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description API模型
5
+ * 建议:Ffff=>模块 Xxxx=>自定义名字
6
+ * 获取单记录(getByIdFfffXxxx)
7
+ * 获取列表记录(getByListFfffXxxx)
8
+ * 添加列表记录(addFfffXxxxx)
9
+ * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
+ * 更新列表记录(updateFfffXxxxx)
11
+ * @type {*[]}
12
+ */
13
+ module.exports = [
14
+ {
15
+ mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
16
+ title: '获取电影广场列表',
17
+ path: '/api/account/film/list-film-square',
18
+ isRule: false,
19
+ params: {
20
+ last_key: ['当前页', 'Number', '必选'],
21
+ page_size: ['每页数量', 'Number', '必选'],
22
+ },
23
+ isConsole: true,
24
+ disabled: true,
25
+ },
26
+ {
27
+ mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
28
+ title: '更新排期',
29
+ path: '/api/account/film/paiqi-date',
30
+ isRule: false,
31
+ params: {
32
+ film_id: ['电影id', 'Number', '必选'],
33
+ cinema_id: ['影院id', 'Number', '必选'],
34
+ },
35
+ isConsole: true,
36
+ disabled: true,
37
+ },
38
+ {
39
+ mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
40
+ title: '删除我的配送地址',
41
+ path: '/api/account/film/paiqi-date',
42
+ isRule: false,
43
+ params: {
44
+ film_id: ['电影id', 'Number', '必选'],
45
+ },
46
+ isConsole: true,
47
+ disabled: true,
48
+ },
49
+ {
50
+ mapFnName: 'addFilmcart', //自定义方法名字(必选)
51
+ title: '添加购物车',
52
+ path: '/api/account/film/paiqi-date',
53
+ isRule: false,
54
+ params: {
55
+ film_id: ['电影id', 'Number', '必选'],
56
+ },
57
+ isConsole: true,
58
+ disabled: true,
59
+ },
60
+ ];
@@ -0,0 +1,154 @@
1
+ 'use strict';
2
+
3
+ export default {
4
+ style: [],
5
+ advanced: [],
6
+ content: [
7
+ //文本信息
8
+ {
9
+ label: '标题名称:', //label
10
+ ele: 'el-input', //package 名称
11
+ type: 'text',
12
+ valueKey: 'title', //form[valueKey]
13
+ value: '', //v-model
14
+ placeholder: '请输入标题名称',
15
+ classNmae: 'input40', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
16
+ disabled: true,
17
+ rules: [
18
+ {
19
+ required: true,
20
+ type: 'url',
21
+ message: '请输入域名地址',
22
+ trigger: 'blur'
23
+ },
24
+ ]
25
+ },
26
+
27
+ //远程获取内容选择
28
+ {
29
+ label: '跳转路径:', //label
30
+ ele: 'xd-select-list', //package 名称
31
+ valueKey: 'jumpToLink', //form[valueKey]
32
+ value: '', //v-model
33
+ placeholder: '请选择加盟商',
34
+ multiple: false, //多选
35
+ collapseTags: false,
36
+ remoteApi: '/api/editx/pages',
37
+ remote: true,
38
+ },
39
+
40
+ //本地固定内容选择
41
+ {
42
+ label: '选择内容:', //label
43
+ ele: 'xd-select-list', //package 名称
44
+ valueKey: 'select', //form[valueKey]
45
+ value: '', //v-model
46
+ placeholder: '请选择选择内容',
47
+ multiple: false, //多选
48
+ remote: false,
49
+ list: [
50
+ {"label": "订单详情", "value": '/main/order/order'},
51
+ {"label": "购物车详情", "value": '/main/cart/cart'},
52
+ {"label": "商品详情", "value": '/main/product/product'},
53
+ {"label": "商品分类", "value": '/main/producttype/producttype'},
54
+ ],
55
+ },
56
+
57
+ //本地固定单选选择
58
+ {
59
+ label: '单选列表(固定):', //label
60
+ ele: 'xd-radio', //package 名称
61
+ valueKey: 'radio_status_list', //form[valueKey]
62
+ value: 6, //v-model
63
+ disabled: true,
64
+ rules: [
65
+ {required: true, message: '请选择', trigger: ['blur', 'change']}
66
+ ],
67
+ list: [
68
+ {"label": "万利达集团", "value": 4},
69
+ {"label": "中国联通", "value": 5},
70
+ {"label": "中国移动", "value": 6},
71
+ {"label": "味多美", "value": 7},
72
+ ]
73
+ },
74
+
75
+ //远程固定单选选择
76
+ {
77
+ label: '单选列表(固定):', //label
78
+ ele: 'xd-radio', //package 名称
79
+ valueKey: 'radio_status_list', //form[valueKey]
80
+ value: 6, //v-model
81
+ disabled: false,
82
+ remoteApi: '/api/editx/pages',
83
+ remote: true,
84
+ rules: [
85
+ {required: true, message: '请选择', trigger: ['blur', 'change']}
86
+ ],
87
+ },
88
+
89
+ //本地固定多选选择
90
+ {
91
+ label: '多选列表(固定):', //label
92
+ ele: 'xd-check', //package 名称
93
+ valueKey: 'xd-check_list', //form[valueKey]
94
+ value: 6, //v-model
95
+ disabled: true,
96
+ rules: [
97
+ {required: true, message: '请选择', trigger: ['blur', 'change']}
98
+ ],
99
+ list: [
100
+ {"label": "万利达集团", "value": 4},
101
+ {"label": "中国联通", "value": 5},
102
+ {"label": "中国移动", "value": 6},
103
+ {"label": "味多美", "value": 7},
104
+ ]
105
+ },
106
+
107
+ //远程多选选选择
108
+ {
109
+ label: '多选列表:', //label
110
+ ele: 'xd-check', //package 名称
111
+ valueKey: 'xd-check_remote-list', //form[valueKey]
112
+ value: 6, //v-model
113
+ disabled: false,
114
+ remoteApi: '/api/editx/pages',
115
+ remote: true,
116
+ rules: [
117
+ {required: true, message: '请选择', trigger: ['blur', 'change']}
118
+ ],
119
+ },
120
+
121
+ //状态(二选一)单选选择
122
+ {
123
+ label: '状态(二选一):', //label
124
+ ele: 'xd-radio-status', //package 名称
125
+ valueKey: 'radio_status', //form[valueKey]
126
+ value: 'Y', //v-model
127
+ isall: true,
128
+ disabled: true,
129
+ backValueType: '', //返回值类型 1=>返回(Y,N)2=> [true|false] 3=>[1,0] 4=>[1,2]
130
+ placeholder: '请选择',
131
+ list: 'status', //status=>状态 best=>推荐 associate=>关联 yes=>是否 open=> 是否开启 check=>审核
132
+ },
133
+
134
+ //文本信息
135
+ {
136
+ label: '标题名称:', //label
137
+ ele: 'el-input', //package 名称
138
+ type: 'text',
139
+ valueKey: 'title', //form[valueKey]
140
+ value: '', //v-model
141
+ placeholder: '请输入标题名称',
142
+ classNmae: 'input40', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
143
+ disabled: true,
144
+ rules: [
145
+ {
146
+ required: true,
147
+ type: 'url',
148
+ message: '请输入域名地址',
149
+ trigger: 'blur'
150
+ },
151
+ ]
152
+ },
153
+ ],
154
+ }
@@ -0,0 +1,203 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-after-order-list"
4
+ @click="handleSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-after-order-list__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-after-order-list__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-after-order-list__body">
17
+ <view class="jfb-base-after-order-list__body-order"
18
+ v-for="(item,index) in orderList"
19
+ :key="index"
20
+ @click="handleToLink(item)"
21
+ >
22
+ <view class="jfb-base-after-order-list__body-order-title">
23
+ <view>服务单号:{{item.orderNumber}}</view>
24
+ <view :style="{color: $mainColor}">
25
+ <xd-font-icon
26
+ icon="iconqianbao-01"
27
+ :color="$mainColor"
28
+ ></xd-font-icon>
29
+ 退款
30
+ </view>
31
+ </view>
32
+ <view class="jfb-base-after-order-list__body-order-content">
33
+ <image
34
+ src="https://img.js.design/assets/img/6359fa51fac2712f7f3ecfa0.png#08226879b3e8fe27fc089d9723a2d22b"></image>
35
+ <view>{{item.name}}</view>
36
+ </view>
37
+ <view class="jfb-base-after-order-list__body-order-bottom">
38
+ <view>服务单已完成</view>
39
+ <view>
40
+ <view>已完成退货,可查看详情</view>
41
+ <xd-font-icon
42
+ color="#999999"
43
+ icon="iconxiangyou_xian"
44
+ size="24"
45
+ ></xd-font-icon>
46
+ </view>
47
+ </view>
48
+ </view>
49
+ </view>
50
+ </view>
51
+ </template>
52
+
53
+ <script>
54
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
55
+ import { jfbRootExec } from "@/utils/xd.event";
56
+ import JfbBaseAfterOrderListMixin from "./JfbBaseAfterOrderListMixin";
57
+ import { getContainerPropsValue } from "@/utils/xd.base";
58
+ export default {
59
+ name: "JfbBaseAfterOrderList",
60
+ components: {
61
+ XdFontIcon
62
+ },
63
+ mixins: [
64
+ JfbBaseAfterOrderListMixin
65
+ ],
66
+ data() {
67
+ return {
68
+ orderList: [
69
+ {
70
+ orderNumber: 3123213131,
71
+ img: 'https://img.js.design/assets/img/6359fa51fac2712f7f3ecfa0.png#08226879b3e8fe27fc089d9723a2d22b',
72
+ name: '聚福宝-黑亚当',
73
+ }
74
+ ],
75
+ type: null,
76
+ detailPath: '',
77
+ //todo
78
+ }
79
+ },
80
+ watch: {
81
+ container(value) {
82
+ this.init(value)
83
+ }
84
+ },
85
+ created() {
86
+ this.init(this.container);
87
+
88
+ //todo
89
+ },
90
+ methods: {
91
+ onJfbLoad(options) {
92
+
93
+ // jfbRootExec('baiduUserLogin', {
94
+
95
+ // vm: this,// data: {
96
+
97
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
98
+
99
+ // }
100
+
101
+ // }).then().catch()
102
+ },
103
+ /**
104
+ * @description 监听事件变化
105
+ * @param container {object} 业务组件对象自己
106
+ */
107
+ init(value) {
108
+
109
+ //this.bgcolor = getContainerPropsValue(value, 'content.bgcolor', '#fff');
110
+ this.type = this.$xdUniHelper.parseURL()['params'].type;
111
+ this.detailPath = getContainerPropsValue(value, 'content.path')
112
+
113
+ //this.height = getContainerPropsValue(value, 'content.height', 10);
114
+ },
115
+ handleToLink(item) {
116
+ this.$xdUniHelper.navigateTo({
117
+ path: `${this.detailPath}?id=${item.order_id}`
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
+ }
136
+ }
137
+
138
+ </script>
139
+
140
+ <style scoped lang="less">
141
+ @import "./JfbBaseAfterOrderListLess.less";
142
+
143
+ .jfb-base-after-order-list {
144
+ &__body{
145
+ &-order {
146
+ border-radius: unit(20, rpx);
147
+ padding: unit(40, rpx);
148
+ background: rgba(255, 255, 255, 1);
149
+ box-shadow: 0px unit(4, rpx) unit(24, rpx) 0px rgba(154, 0, 255, 0.05);
150
+ margin-bottom: unit(32, rpx);
151
+
152
+ &-title {
153
+ display: flex;
154
+ align-items: center;
155
+ justify-content: space-between;
156
+ font-size: unit(24, rpx);
157
+ font-weight: 500;
158
+
159
+ & > view:nth-child(2) {
160
+ display: flex;
161
+ align-items: center;
162
+ }
163
+ }
164
+
165
+ &-content {
166
+ display: flex;
167
+ padding: unit(40, rpx) 0;
168
+
169
+ image {
170
+ width: unit(140, rpx);
171
+ height: unit(200, rpx);
172
+ border-radius: unit(8, rpx);
173
+ }
174
+
175
+ view {
176
+ font-size: unit(36, rpx);
177
+ font-weight: 700;
178
+ margin-left: unit(20, rpx);
179
+ }
180
+ }
181
+
182
+ &-bottom {
183
+ display: flex;
184
+ justify-content: space-between;
185
+ align-items: center;
186
+ font-size: unit(24, rpx);
187
+ background: #EEEEEE;
188
+ padding: unit(20, rpx);
189
+ border-radius: unit(12, rpx);
190
+
191
+ & > view:first-child {
192
+ font-weight: 500;
193
+ }
194
+
195
+ & > view:nth-child(2) {
196
+ display: flex;
197
+ color: #999999;
198
+ }
199
+ }
200
+ }
201
+ }
202
+ }
203
+ </style>
@@ -0,0 +1,57 @@
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-after-order-list {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
17
+ box-sizing: border-box;
18
+
19
+ &.editx {
20
+ position: relative;
21
+ border: 1px dashed blue;
22
+ box-sizing: border-box;
23
+
24
+ }
25
+
26
+ &:hover {
27
+ border: 1px dashed blue;
28
+ }
29
+
30
+
31
+ &__edit {
32
+ cursor: pointer;
33
+ position: absolute;
34
+ right: unit(0, rpx);
35
+ top: unit(-52, rpx);
36
+ height: unit(50, rpx);
37
+ line-height: unit(50, rpx);
38
+ display: flex;
39
+ justify-content: center;
40
+ align-items: center;
41
+ background: rgba(0, 0, 0, .6);
42
+ border-radius: unit(10, rpx);
43
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
44
+ color: #fff;
45
+ font-size: unit(22, rpx);
46
+
47
+ &-icon{
48
+ padding: 0 unit(20, rpx);
49
+ }
50
+
51
+ &.editx {
52
+ box-sizing: border-box;
53
+
54
+ }
55
+ }
56
+ }
57
+ //end
@@ -0,0 +1,222 @@
1
+ 'use strict';
2
+
3
+ //@AttrImport
4
+ import Attr from "./Attr";
5
+ //@EndAttrImport
6
+
7
+ import {getContainerPropsValue} from "@/utils/xd.base";
8
+ export default {
9
+ props: {
10
+ /**
11
+ * @description 插件在页面中到唯一ID
12
+ */
13
+ cid:{
14
+ type: null|String|Number,
15
+ default: null,
16
+ },
17
+ /**
18
+ * @description 业务插件相关数据集合
19
+ */
20
+ container:{
21
+ type: Object,
22
+ default() {
23
+ return {}
24
+ }
25
+ },
26
+ /**
27
+ * @description 页面框架属性
28
+ */
29
+ layoutInfo: {
30
+ type: Object,
31
+ default() {
32
+ return {}
33
+ }
34
+ },
35
+ /**
36
+ * @description 页面属性
37
+ */
38
+ pageAttr: {
39
+ type: Object,
40
+ default() {
41
+ return {}
42
+ }
43
+ },
44
+ /**
45
+ * @description 业务插件元素属性(插件管理时候填写属性)
46
+ */
47
+ componentAttr: {
48
+ type: Object|Array,
49
+ default() {
50
+ return {}
51
+ }
52
+ },
53
+ /**
54
+ * @description 业务插件所属插件库属性(业务插件库)
55
+ */
56
+ appAttr: {
57
+ type: Object|Array,
58
+ default() {
59
+ return {}
60
+ }
61
+ },
62
+ /**
63
+ * @description 项目配置
64
+ */
65
+ settings: {
66
+ type: Object,
67
+ default() {
68
+ return {}
69
+ }
70
+ },
71
+ /**
72
+ * @description 业务插件库所用风格属性
73
+ */
74
+ styles: {
75
+ type: Object || null,
76
+ default() {
77
+ return {}
78
+ }
79
+ },
80
+ /**
81
+ * @description 项目配置文件
82
+ */
83
+ projectAttr: {
84
+ type: Object || null,
85
+ default() {
86
+ return {}
87
+ }
88
+ }
89
+ },
90
+ data() {
91
+ return {
92
+ containerId: null, //容器ID
93
+ //#ifdef H5
94
+
95
+ //@AttrData
96
+ Attr:{}, //对外开发编辑属性
97
+ //@EndAttrData
98
+
99
+ active: false, //是否选择当前状态
100
+ isEditx: true, //当前为Editx模式
101
+ edit: false, //是否开启编辑模式
102
+ // #endif
103
+
104
+ //风格键
105
+ mainColor: '',
106
+ successColor: '',
107
+ warningColor: '',
108
+ subMainColor: '',
109
+ infoColor: '',
110
+ defaultColor: '',
111
+ dangerColor: ''
112
+ }
113
+ },
114
+ created() {
115
+
116
+ //@AttrDataCreated
117
+ this.Attr = this.$xdUniHelper.customClone(Attr);
118
+ //@EndAttrDataCreated
119
+
120
+
121
+ //设置插件cid
122
+ if (this.cid) {
123
+ this.containerId = this.cid;
124
+ } else {
125
+ this.containerId = this.$xdUniHelper.randomChar(20);
126
+ }
127
+
128
+ //初始化风格
129
+ this.initThemesToData();
130
+
131
+ //#ifdef H5
132
+ //监听用户点击状态显示虚框
133
+ XdBus.addEvent('select', ({containerId}) => {
134
+ this.active = containerId === this.containerId;
135
+ });
136
+
137
+ //业务面板选中插件操作
138
+ XdBus.addEvent('onBoardSelect', ({containerId}) => {
139
+ if (containerId === this.containerId) {
140
+ this.handleSelect()
141
+ }
142
+ });
143
+ // #endif
144
+ },
145
+ methods: {
146
+
147
+ /**
148
+ * 检查插件是否加载成功
149
+ */
150
+ onCheck() {
151
+ },
152
+
153
+ /***
154
+ * @description 业务组件风格map到data中
155
+ */
156
+ initThemesToData() {
157
+ Object.keys(this.styles).map(key => {
158
+ let k = key.replace('$', '');
159
+ if (this[k] !== undefined) this[k] = this.styles[key];
160
+ });
161
+ console.log('initThemesToData',this)
162
+ },
163
+
164
+ /**
165
+ * @description 其子级插件获取当前插件的业务组件风格列表
166
+ * @returns {*}
167
+ */
168
+ getParentThemes(){
169
+ return this.styles;
170
+ },
171
+
172
+
173
+ //#ifdef H5
174
+ /**
175
+ * @description 点击删除操作按钮
176
+ */
177
+ delEdit(){
178
+ XdBus.send('onDelPackage', {
179
+ containerId: this.containerId,
180
+ componentAtrr: this.componentAtrr,
181
+ cid: this.cid,
182
+ container: this.container
183
+ })
184
+ },
185
+ //#endif
186
+
187
+ /**
188
+ * @description 点击选择插件显示边框
189
+ */
190
+ handleSelect() {
191
+ //#ifdef H5
192
+ if (this.active) return;
193
+ this.active = true;
194
+ let AttrObj = this.$xdUniHelper.checkVarType(this.Attr) === 'object' ?
195
+ this.Attr : { style: [], advanced: [], content: []};
196
+ console.log('handleSelect.Attr', AttrObj);
197
+
198
+ //设置已绑定数据
199
+ Object.keys(AttrObj).map(type=>{
200
+ AttrObj[type].map(item=>{
201
+ if(item.value !== undefined) item.value = getContainerPropsValue(this.container, `${type}.${item.valueKey}`, item.value);
202
+ if(item.defaultValue !== undefined) item.defaultValue = getContainerPropsValue(this.container, `${type}.${item.valueKey}`, item.value);
203
+ })
204
+ });
205
+
206
+ //发送点击组件事件
207
+ XdBus.send('onSelectPackage', {
208
+ containerId: this.containerId,
209
+ Attr: AttrObj,
210
+ container: this.$xdUniHelper.cloneDeep(this.container)
211
+ });
212
+
213
+ //绑定选中插件事件
214
+ XdBus.message('select', {
215
+ containerId: this.containerId,
216
+ })
217
+ //#endif
218
+ },
219
+
220
+
221
+ }
222
+ }