jufubao-base 1.0.20 → 1.0.22

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 (40) hide show
  1. package/get.package.path.js +2 -2
  2. package/get.package.path.js.tpl +2 -2
  3. package/package.json +3 -3
  4. package/src/components/JfbBaseAfterOrderList/Api.js +60 -0
  5. package/src/components/JfbBaseAfterOrderList/Attr.js +154 -0
  6. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +203 -0
  7. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +57 -0
  8. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListMixin.js +222 -0
  9. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +20 -0
  10. package/src/components/JfbBaseBlock/JfbBaseBlockMixin.js +41 -3
  11. package/src/components/JfbBaseCard/Api.js +1 -0
  12. package/src/components/JfbBaseCard/JfbBaseCard.vue +69 -18
  13. package/src/components/JfbBaseCard/JfbBaseCardMixin.js +41 -3
  14. package/src/components/JfbBaseCardBind/JfbBaseCardBindMixin.js +41 -3
  15. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailMixin.js +41 -3
  16. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +13 -6
  17. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoMixin.js +41 -3
  18. package/src/components/JfbBaseCardMy/JfbBaseCardMyMixin.js +41 -3
  19. package/src/components/JfbBaseCardShift/JfbBaseCardShiftMixin.js +41 -3
  20. package/src/components/JfbBaseFooter/JfbBaseFooterMixin.js +41 -3
  21. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +41 -3
  22. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +172 -51
  23. package/src/components/JfbBaseLogin/JfbBaseLoginMixin.js +41 -3
  24. package/src/components/JfbBaseMy/Api.js +60 -0
  25. package/src/components/JfbBaseMy/Attr.js +54 -0
  26. package/src/components/JfbBaseMy/JfbBaseMy.vue +262 -0
  27. package/src/components/JfbBaseMy/JfbBaseMyLess.less +57 -0
  28. package/src/components/JfbBaseMy/JfbBaseMyMixin.js +222 -0
  29. package/src/components/JfbBaseOrderList/Api.js +60 -0
  30. package/src/components/JfbBaseOrderList/Attr.js +154 -0
  31. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +285 -0
  32. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +57 -0
  33. package/src/components/JfbBaseOrderList/JfbBaseOrderListMixin.js +222 -0
  34. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdMixin.js +41 -3
  35. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +51 -1
  36. package/src/components/JfbBaseSuccess/JfbBaseSuccessMixin.js +41 -3
  37. package/src/components/JfbBaseTestApi/JfbBaseTestApiMixin.js +41 -3
  38. package/src/components/JfbBaseTestBody/JfbBaseTestBodyMixin.js +36 -2
  39. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomMixin.js +36 -2
  40. package/src/components/JfbBaseTestTop/JfbBaseTestTopMixin.js +36 -2
@@ -11,8 +11,8 @@ const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>
11
11
  return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
12
  }
13
13
 
14
- if (packname === 'gxd-uni-library') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library/${threePackagePath}`;
14
+ if (packname === 'gxd-uni-library-editx') {
15
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
16
  }
17
17
 
18
18
  };
@@ -11,8 +11,8 @@ const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>
11
11
  return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
12
  }
13
13
 
14
- if (packname === 'gxd-uni-library') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library/${threePackagePath}`;
14
+ if (packname === 'gxd-uni-library-editx') {
15
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
16
  }
17
17
 
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -47,8 +47,8 @@
47
47
  "color": "^3.1.3",
48
48
  "core-js": "^2.6.5",
49
49
  "flyio": "^0.6.2",
50
- "gxd-commands-bussiness": "^1.0.6",
51
- "gxd-uni-library": "1.1.3",
50
+ "gxd-commands-bussiness": "^1.0.8",
51
+ "gxd-uni-library-editx": "1.0.2",
52
52
  "jweixin-module": "^1.6.0",
53
53
  "md5": "^2.3.0",
54
54
  "path-to-regexp": "^6.2.1",
@@ -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