jufubao-base 1.0.116-beta2 → 1.0.116-beta4

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 (36) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +5 -2
  3. package/src/components/JfbBaseConList/JfbBaseConList.vue +1 -1
  4. package/src/components/JfbBaseConPhone/Api.js +60 -0
  5. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +110 -0
  6. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
  7. package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +18 -0
  8. package/src/components/JfbBaseConPhone/Mock.js +5 -0
  9. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  10. package/src/components/JfbBaseSaasBlessDetail/Api.js +21 -22
  11. package/src/components/JfbBaseSaasBlessDetail/Attr.js +6 -88
  12. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +100 -12
  13. package/src/components/JfbBaseSaasBlessDialog/Api.js +4 -39
  14. package/src/components/JfbBaseSaasBlessDialog/Attr.js +2 -2
  15. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +14 -5
  16. package/src/components/JfbBaseSaasBlessReceive/Api.js +4 -39
  17. package/src/components/JfbBaseSaasBlessReceive/Attr.js +6 -88
  18. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +29 -18
  19. package/src/components/JfbBaseSaasHome/Api.js +14 -26
  20. package/src/components/JfbBaseSaasHome/Attr.js +15 -86
  21. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +131 -60
  22. package/src/components/JfbBaseSaasLogin/Api.js +13 -0
  23. package/src/components/JfbBaseSaasLogin/Attr.js +11 -11
  24. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +64 -7
  25. package/src/components/JfbBaseSaasNewsDetail/Api.js +6 -39
  26. package/src/components/JfbBaseSaasNewsDetail/Attr.js +2 -94
  27. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +26 -22
  28. package/src/components/JfbBaseSaasNewsList/Api.js +5 -39
  29. package/src/components/JfbBaseSaasNewsList/Attr.js +6 -88
  30. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +45 -19
  31. package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
  32. package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
  33. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
  34. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
  35. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
  36. package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.116-beta2",
3
+ "version": "1.0.116-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -13,14 +13,15 @@
13
13
  </view>
14
14
  <view class="item_sub">{{ item.prize_name }}</view>
15
15
 
16
- <xd-font-icon class="ticket_icon" :icon="item.icon"></xd-font-icon>
16
+ <xd-font-icon class="ticket_icon" :color="item.iconColor" :icon="item.icon"></xd-font-icon>
17
17
  <view class="btn">
18
18
  <xd-button
19
19
  size="small"
20
20
  type="primary"
21
21
  :disabled="item.remain_card_count == 0"
22
22
  :style="{
23
- backgroundImage: item.btnImage
23
+ backgroundImage: item.btnImage,
24
+ backgroundSize: '100% 100%',
24
25
  }"
25
26
  @click="getCoupont(item)"
26
27
  >{{item.btn_txt}}</xd-button>
@@ -66,10 +67,12 @@ export default{
66
67
  item.headIcon = getServiceUrl(this.setting.app_coupon_url);
67
68
  item.btnImage = `url(${getServiceUrl(this.setting.app_coupon_button_bg_url)})`;
68
69
  item.icon = item.can_take_num === "Y" ? "iconyilingqu" : "icondailingqu";
70
+ item.iconColor = item.can_take_num === "Y"?'#D6D6D6':"#FF4D4A"
69
71
  }else if(item.can_take_num === "N"){
70
72
  item.headIcon = getServiceUrl(this.setting.app_coupon_invalid_url);
71
73
  item.btnImage = "";
72
74
  item.icon = "iconyifawan";
75
+ item.iconColor = '#D6D6D6'
73
76
  }
74
77
  return item;
75
78
  })
@@ -211,7 +211,7 @@ export default {
211
211
  backgroundImage: `url(${getServiceUrl(
212
212
  item.can_take_num === "Y" ? res.app_coupon_button_see_url : res.app_coupon_button_bg_url
213
213
  )})`,
214
- backgroundSize: "100%",
214
+ backgroundSize: "100% 100%",
215
215
  backgroundRepeat: "no-repeat",
216
216
  backgroundColor: '',
217
217
  margin: "0",
@@ -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,110 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-con-phone"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-con-phone__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-con-phone__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-con-phone__body">
17
+ <view>测试插件( {{containerId}} )</view>
18
+ </view>
19
+ </view>
20
+ </template>
21
+
22
+ <script>
23
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
24
+ import { jfbRootExec } from "@/utils/xd.event";
25
+ import JfbBaseConPhoneMixin from "./JfbBaseConPhoneMixin";
26
+ import { getContainerPropsValue } from "@/utils/xd.base";
27
+ import componentsMixins from "@/mixins/componentsMixins";
28
+ import extsMixins from "@/mixins/extsMixins";
29
+ export default {
30
+ name: "JfbBaseConPhone",
31
+ components: {
32
+ XdFontIcon
33
+ },
34
+ mixins: [
35
+ componentsMixins, extsMixins, JfbBaseConPhoneMixin
36
+ ],
37
+ data() {
38
+ return {
39
+
40
+ //todo
41
+ }
42
+ },
43
+ watch: {
44
+ container(value) {
45
+ this.init(value)
46
+ }
47
+ },
48
+ created() {
49
+ this.init(this.container);
50
+
51
+ //todo
52
+ },
53
+ methods: {
54
+ onJfbLoad(options) {
55
+
56
+ // jfbRootExec('baiduUserLogin', {
57
+
58
+ // vm: this,// data: {
59
+
60
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
61
+
62
+ // }
63
+
64
+ // }).then().catch()
65
+ },
66
+ /**
67
+ * @description 监听事件变化
68
+ * @param container {object} 业务组件对象自己
69
+ */
70
+ init(container) {
71
+
72
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
73
+
74
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
75
+ },
76
+ onJfbScroll(options) {
77
+ console.log('event.onJfbScroll', options)
78
+ },
79
+ onJfbReachBottom(options) {
80
+ console.log('event.onJfbReachBottom', options)
81
+ },
82
+ onJfbShow(options) {
83
+ console.log('event.onJfbShow', options)
84
+ },
85
+ onJfbHide(options) {
86
+ console.log('event.onJfbHide', options)
87
+ },
88
+ onJfbBack(options) {
89
+ console.log('event.onJfbBack', options)
90
+ },
91
+ onJfbUpdate(...data) {
92
+ console.log('event.onJfbUpdate', data)
93
+ },
94
+ onJfbCustomEvent(options) {
95
+ console.log('event.onJfbReachBottom', options)
96
+ },
97
+ }
98
+ }
99
+
100
+ </script>
101
+
102
+ <style scoped lang="less">
103
+ @import "./JfbBaseConPhoneLess.less";
104
+
105
+ .jfb-base-con-phone {
106
+ &__body{
107
+
108
+ }
109
+ }
110
+ </style>
@@ -0,0 +1,80 @@
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-con-phone {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
17
+ box-sizing: border-box;
18
+ min-height: unit(50, rpx);
19
+
20
+ &__body{
21
+ position: relative;
22
+ overflow: hidden;
23
+ z-index: 2
24
+ }
25
+
26
+ &.editx {
27
+ position: relative;
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
33
+
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
41
+ }
42
+
43
+
44
+ &__edit {
45
+ cursor: pointer;
46
+ position: absolute;
47
+ right: unit(0, rpx);
48
+ top: unit(-52, rpx);
49
+ height: unit(50, rpx);
50
+ line-height: unit(50, rpx);
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ background: rgba(0, 0, 0, .6);
55
+ border-radius: unit(10, rpx);
56
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
57
+ color: #fff;
58
+ font-size: unit(22, rpx);
59
+
60
+ &-icon{
61
+ padding: 0 unit(20, rpx);
62
+ }
63
+
64
+ &.editx {
65
+ box-sizing: border-box;
66
+
67
+ }
68
+ }
69
+ }
70
+ //end
71
+
72
+
73
+ /**notPreview**/
74
+ .jfb-base-con-phone {
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+
4
+
5
+ export default {
6
+ data() {
7
+ return {
8
+ //#ifdef H5
9
+
10
+ // #endif
11
+ cssRoot: 'jfb-base-con-phone'
12
+ }
13
+ },
14
+ created() {
15
+
16
+
17
+ },
18
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ aaaa: {}
5
+ }
@@ -93,7 +93,6 @@
93
93
  <script>
94
94
  import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
95
95
  import { jfbRootExec } from "@/utils/xd.event";
96
- import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
97
96
  import componentsMixins from "@/mixins/componentsMixins";
98
97
  import extsMixins from "@/mixins/extsMixins";
99
98
  import { getContainerPropsValue } from "@/utils/xd.base";
@@ -102,6 +101,7 @@ import XdForm from "@/components/XdForm/XdForm";
102
101
  import XdFormInput from "@/components/XdFormInput/XdFormInput";
103
102
  import XdButton from "@/components/XdButton/XdButton";
104
103
  import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
104
+ import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
105
105
 
106
106
  export default {
107
107
  name: "JfbBasePhoneCollect",
@@ -12,49 +12,48 @@
12
12
  */
13
13
  module.exports = [
14
14
  {
15
- mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
16
- title: '获取电影广场列表',
17
- path: '/api/account/film/list-film-square',
15
+ mapFnName: 'getBlessDetail',
16
+ title: '祝福 - 详情',
17
+ path: '/saas/v1/bless/item/:bless_id',
18
18
  isRule: false,
19
19
  params: {
20
- last_key: ['当前页', 'Number', '必选'],
21
- page_size: ['每页数量', 'Number', '必选'],
20
+ bless_id: ['bless_id', 'Number', '必选'],
22
21
  },
23
22
  isConsole: true,
24
23
  disabled: true,
25
24
  },
26
25
  {
27
- mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
28
- title: '更新排期',
29
- path: '/api/account/film/paiqi-date',
26
+ mapFnName: 'doSignBless',
27
+ title: '祝福 - 签收',
28
+ path: '/saas/v1/bless/sign/:bless_id',
30
29
  isRule: false,
31
- params: {
32
- film_id: ['电影id', 'Number', '必选'],
33
- cinema_id: ['影院id', 'Number', '必选'],
30
+ data: {
31
+ bless_id: ['bless_id', 'Number', '必选'],
34
32
  },
35
33
  isConsole: true,
36
34
  disabled: true,
37
35
  },
38
36
  {
39
- mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
40
- title: '删除我的配送地址',
41
- path: '/api/account/film/paiqi-date',
37
+ mapFnName: "getOssSign",
38
+ title: "获取上传参数",
39
+ path: "/common-user/v1/h5-oss/sign",
42
40
  isRule: false,
43
- params: {
44
- film_id: ['电影id', 'Number', '必选'],
41
+ data: {
42
+
45
43
  },
46
44
  isConsole: true,
47
45
  disabled: true,
48
46
  },
49
47
  {
50
- mapFnName: 'addFilmcart', //自定义方法名字(必选)
51
- title: '添加购物车',
52
- path: '/api/account/film/paiqi-date',
48
+ mapFnName: "doOssUpload",
49
+ title: "开启oss上传",
50
+ path: "/common-user/v1/h5-oss/upload",
53
51
  isRule: false,
54
- params: {
55
- film_id: ['电影id', 'Number', '必选'],
52
+ data: {
53
+ file_name: ['file_name', 'String', true],
54
+ file: ['file', 'file', true]
56
55
  },
57
56
  isConsole: true,
58
57
  disabled: true,
59
- },
58
+ }
60
59
  ];
@@ -8,99 +8,17 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '背景颜色:', //label
12
- ele: 'xd-color', //package 名称
13
- valueKey: 'bgcolor', //form[valueKey]
14
- value: data.bgcolor || '', //v-model
15
- placeholder: '请输入占位框背景颜色',
16
- classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
17
- rules: [
18
- {
19
- required: true,
20
- message: '请输入占位框背景颜色',
21
- trigger: 'blur'
22
- },
23
- ]
24
- },
25
- {
26
- label: '选中路径:', //label
11
+ label: '使用祝福券跳转地址:', //label
27
12
  ele: 'xd-select-pages-path', //package 名称
28
- valueKey: 'select-pages-path', //form[valueKey]
29
- value: data['select-pages-path'] || {},
13
+ valueKey: 'useTicketUrl', //form[valueKey]
14
+ placeholder: '请选择使用祝福券跳转地址',
15
+ value: null,
30
16
  setting: {
31
- router: XdBus.getParentApi('getPagesTree')
17
+ router: XdBus.getParentApi('getPagesTree'),
32
18
  },
33
19
  inline: false,
34
20
  },
35
- data.bgcolor && {
36
- label: '高度:', //label
37
- ele: 'el-input', //package 名称
38
- type: 'number',
39
- valueKey: 'height', //form[valueKey]
40
- value: data.height || 100, //v-model
41
- placeholder: '请输入占位框高度,单位像素,默认:10px',
42
- className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
43
- rules: [
44
- {
45
- required: true,
46
- message: '请输入占位框高度',
47
- trigger: 'blur'
48
- },
49
- ]
50
- },
51
- {
52
- label: '', //label
53
- ele: 'slot', //package 名称
54
- slot: 'is_reference',
55
- },
56
21
  ].filter(i=>i)
57
22
  },
58
- advanced: [
59
- {
60
- label: '背景颜色:', //label
61
- ele: 'xd-color', //package 名称
62
- valueKey: 'bgcolor', //form[valueKey]
63
- value: '', //v-model
64
- placeholder: '请输入占位框背景颜色',
65
- classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
66
- rules: [
67
- {
68
- required: true,
69
- message: '请输入占位框背景颜色',
70
- trigger: 'blur'
71
- },
72
- ]
73
- },
74
- {
75
- label: '选中路径:', //label
76
- ele: 'xd-select-pages-path', //package 名称
77
- valueKey: 'select-pages-path', //form[valueKey]
78
- value: null,
79
- setting: {
80
- router: XdBus.getParentApi('getPagesTree')
81
- },
82
- inline: false,
83
- },
84
- {
85
- label: '高度:', //label
86
- ele: 'el-input', //package 名称
87
- type: 'number',
88
- valueKey: 'height', //form[valueKey]
89
- value: null, //v-model
90
- placeholder: '请输入占位框高度,单位像素,默认:10px',
91
- classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
92
- rules: [
93
- {
94
- required: true,
95
- message: '请输入占位框高度',
96
- trigger: 'blur'
97
- },
98
- ]
99
- },
100
- {
101
- label: '', //label
102
- ele: 'slot', //package 名称
103
- slot: 'is_reference',
104
- },
105
- ],
23
+ advanced: [],
106
24
  };