jufubao-base 1.0.302-beta1 → 1.0.302-beta2

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.
@@ -7,50 +7,16 @@
7
7
  module.exports = [
8
8
  {
9
9
  //设置方法名字当别忘记加上【模块名字】:Invoice
10
- mapFnName: 'getInvoiceByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
10
+ mapFnName: 'userInvoiceSubmit',
11
+ title: '用户开票 - 申请开票',
12
+ path: '/pay/v1/user-invoice/submit',
13
13
  isRule: false,
14
- params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
17
- },
18
- isConsole: true,
19
- disabled: true,
20
- },
21
- {
22
- //设置方法名字当别忘记加上【模块名字】:Invoice
23
- mapFnName: 'updateInvoiceFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
26
- isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Invoice
36
- mapFnName: 'removeInvoiceFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Invoice
48
- mapFnName: 'addInvoiceFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
14
+ data: {
15
+ main_order_id: ['订单编号', 'Number', '必选'],
16
+ pay_order_id: ['支付订单号', 'Number', '必选'],
17
+ email: ['邮箱', 'Number', '必选'],
18
+ invoice_header: ['发票抬头', 'Number', '必选'],
19
+ invoice_header_type: ['发票抬头类型', 'Number', '必选'],
54
20
  },
55
21
  isConsole: true,
56
22
  disabled: true,
@@ -1,48 +1,21 @@
1
1
  'use strict';
2
-
2
+ import Content from './cusAttr/content'
3
+ import Style from './cusAttr/style'
4
+ import Advanced from './cusAttr/advanced'
3
5
  /**
4
6
  * @description 当表单组件中有联动操作时候,使用方法进行返回
5
7
  */
6
8
  export default {
7
9
  style: [],
8
- content: (data) => {
10
+ content: (data, gValue, gColor, oldData = {}) => {
9
11
  return [
10
- {
11
- label: '背景颜色:',
12
- ele: 'xd-color',
13
- valueKey: 'bgColor',
14
- value: data.bgColor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- groupKey:'content',
17
- },
18
- {
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,
25
- setting: {
26
- router: XdBus.getParentApi('getPagesTree')
27
- },
28
- },
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',
38
- },
39
- {
40
- label: '', //label
41
- groupKey:'advanced',
42
- ele: 'slot', //package 名称
43
- slot: 'is_reference',
44
- },
45
- ].filter(i=>i)
12
+ ...Content(data, gValue, gColor, oldData),
13
+ ...Style(data, gValue, gColor, oldData),
14
+ ...Advanced(data, gValue, gColor, oldData),
15
+
16
+ ].filter(i => i)
46
17
  },
47
- advanced: [],
18
+ advanced: [
19
+
20
+ ],
48
21
  };
@@ -2,110 +2,207 @@
2
2
  <view
3
3
  class="jfb-base-invoice-confirm"
4
4
  @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
5
+ :class="{ editx: isEditx && active }"
6
6
  >
7
7
  <!--#ifdef H5-->
8
8
  <view
9
9
  class="jfb-base-invoice-confirm__edit"
10
- :class="{ editx : isEditx && active }"
10
+ :class="{ editx: isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
- <view class="jfb-base-invoice-confirm__edit-icon" @click="delEdit">删除</view>
13
+ <view class="jfb-base-invoice-confirm__edit-icon" @click="delEdit"
14
+ >删除</view
15
+ >
14
16
  </view>
15
17
  <!-- #endif -->
16
- <view class="jfb-base-invoice-confirm__body">
17
- <view>测试插件( {{containerId}} )</view>
18
+ <view
19
+ class="jfb-base-invoice-confirm__body"
20
+ :style="{ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx' }"
21
+ >
22
+
18
23
  </view>
19
24
  </view>
20
25
  </template>
21
26
 
22
27
  <script>
23
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
24
- import { jfbRootExec } from "@/utils/xd.event";
25
- import JfbBaseInvoiceConfirmMixin from "./JfbBaseInvoiceConfirmMixin";
26
- import { getContainerPropsValue } from "@/utils/xd.base";
27
- import componentsMixins from "@/mixins/componentsMixins";
28
- import extsMixins from "@/mixins/extsMixins";
29
- export default {
30
- name: "JfbBaseInvoiceConfirm",
31
- components: {
32
- XdFontIcon
28
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
29
+ import { jfbRootExec } from "@/utils/xd.event";
30
+ import JfbBaseInvoiceConfirmMixin from "./JfbBaseInvoiceConfirmMixin";
31
+ import { getContainerPropsValue } from "@/utils/xd.base";
32
+ import componentsMixins from "@/mixins/componentsMixins";
33
+ import extsMixins from "@/mixins/extsMixins";
34
+ export default {
35
+ name: "JfbBaseInvoiceConfirm",
36
+ components: {
37
+ XdFontIcon,
38
+ },
39
+ mixins: [componentsMixins, extsMixins, JfbBaseInvoiceConfirmMixin],
40
+ data() {
41
+ return {
42
+ confirmPath: "",
43
+ invoicePath: "",
44
+ main_order_id: "",
45
+ pay_order_id: "",
46
+ invoice_amount: 0,
47
+ invoice_header_type: "",
48
+ invoice_header: "",
49
+ phone_number: "",
50
+ invoice_number: "",
51
+ email: "",
52
+ };
53
+ },
54
+ computed: {
55
+ prod_bottom() {
56
+ return this.fixedStyle({ height: 0, zIndex: 111 });
33
57
  },
34
- mixins: [
35
- componentsMixins, extsMixins, JfbBaseInvoiceConfirmMixin
36
- ],
37
- data() {
58
+ btnStyle() {
38
59
  return {
39
-
40
- //todo
41
- }
60
+ color: this.mainColor,
61
+ border: `1px solid ${this.mainColor}`,
62
+ };
42
63
  },
43
- watch: {
44
- container(value, oldValue) {
45
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
46
- if (this.$configProject['isPreview']) this.init(value)
47
- },
64
+ },
65
+ watch: {
66
+ container(value, oldValue) {
67
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
68
+ if (this.$configProject["isPreview"]) this.init(value);
48
69
  },
49
- created() {
50
- this.init(this.container);
70
+ },
71
+ created() {
72
+ this.init(this.container);
51
73
 
52
- //todo
74
+ //todo
75
+ },
76
+ methods: {
77
+ onJfbLoad(options) {
78
+ this.main_order_id = options.main_order_id;
79
+ this.pay_order_id = options.pay_order_id;
80
+ this.invoice_amount = options.invoice_amount;
81
+ this.invoice_header_type = options.invoice_header_type;
82
+ this.invoice_header = options.invoice_header;
83
+ this.phone_number = options.phone_number;
84
+ this.invoice_number = options.invoice_number;
85
+ this.email = options.email;
86
+ // jfbRootExec('baiduUserLogin', {
87
+ // vm: this,// data: {
88
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
89
+ // }
90
+ // }).then().catch()
53
91
  },
54
- methods: {
55
- 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()
66
- },
67
- /**
68
- * @description 监听事件变化
69
- * @param container {object} 业务组件对象自己
70
- */
71
- init(container) {
72
-
73
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
74
-
75
- //this.height = getContainerPropsValue(container, 'content.height', 10);
76
- },
77
- onJfbScroll(options) {
78
- console.log('event.onJfbScroll', options)
79
- },
80
- onJfbReachBottom(options) {
81
- console.log('event.onJfbReachBottom', options)
82
- },
83
- onJfbShow(options) {
84
- console.log('event.onJfbShow', options)
85
- },
86
- onJfbHide(options) {
87
- console.log('event.onJfbHide', options)
88
- },
89
- onJfbBack(options) {
90
- console.log('event.onJfbBack', options)
91
- },
92
- onJfbUpdate(...data) {
93
- console.log('event.onJfbUpdate', data)
94
- },
95
- onJfbCustomEvent(options) {
96
- console.log('event.onJfbReachBottom', options)
97
- },
98
- }
99
- }
100
-
92
+ /**
93
+ * @description 监听事件变化
94
+ * @param container {object} 业务组件对象自己
95
+ */
96
+ init(container) {
97
+ this.confirmPath = getContainerPropsValue(
98
+ container,
99
+ "content.confirmPath",
100
+ { value: "" }
101
+ ).value;
102
+ this.invoicePath = getContainerPropsValue(
103
+ container,
104
+ "content.invoicePath",
105
+ { value: "" }
106
+ ).value;
107
+ },
108
+ handleConfirm() {
109
+ //调用确认提交接口并跳转详情页面
110
+ jfbRootExec("userInvoiceSubmit", {
111
+ vm: this,
112
+ data: {
113
+ main_order_id: this.main_order_id,
114
+ pay_order_id: this.pay_order_id,
115
+ email: this.email,
116
+ invoice_header_type: this.invoice_header_type,
117
+ invoice_header: this.invoice_header,
118
+ phone_number: this.phone_number,
119
+ invoice_number: this.invoice_number,
120
+ },
121
+ }).then((res) => {
122
+ let params = {
123
+ main_order_id: this.main_order_id,
124
+ pay_order_id: this.pay_order_id,
125
+ };
126
+ params = this.convertObjToQueryString(params);
127
+ params = this.$xdUniHelper.navigateTo({
128
+ url: `${this.detailPath}?${params}`,
129
+ });
130
+ });
131
+ },
132
+ handleBack() {
133
+ //返回修改页面
134
+ this.$xdUniHelper.navigateBack();
135
+ // this.$xdUniHelper.navigateTo({
136
+ // url: `${this.invoicePath}?main_order_id=${this.main_order_id}&pay_order_id=${this.pay_order_id}`,
137
+ // });
138
+ },
139
+ onJfbScroll(options) {
140
+ console.log("event.onJfbScroll", options);
141
+ },
142
+ onJfbReachBottom(options) {
143
+ console.log("event.onJfbReachBottom", options);
144
+ },
145
+ onJfbShow(options) {
146
+ console.log("event.onJfbShow", options);
147
+ },
148
+ onJfbHide(options) {
149
+ console.log("event.onJfbHide", options);
150
+ },
151
+ onJfbBack(options) {
152
+ console.log("event.onJfbBack", options);
153
+ },
154
+ onJfbUpdate(...data) {
155
+ console.log("event.onJfbUpdate", data);
156
+ },
157
+ onJfbCustomEvent(options) {
158
+ console.log("event.onJfbReachBottom", options);
159
+ },
160
+ },
161
+ };
101
162
  </script>
102
163
 
103
164
  <style scoped lang="less">
104
- @import "./JfbBaseInvoiceConfirmLess.less";
165
+ @import "./JfbBaseInvoiceConfirmLess.less";
105
166
 
106
- .jfb-base-invoice-confirm {
107
- &__body{
167
+ .jfb-base-invoice-confirm {
168
+ &__body {
169
+ &-content {
170
+ padding: 24rpx;
171
+ border-radius: 16rpx;
172
+ &-item {
173
+ background: #fff;
174
+ border-radius: 8rpx;
175
+ &-info {
176
+ padding: 20rpx 48rpx;
177
+ display: flex;
178
+ justify-content: space-between;
179
+ align-items: center;
180
+ color: #333333;
181
+ font-size: 28rpx;
182
+ border-bottom: 2rpx solid #f7f7f7;
183
+ }
184
+ }
185
+ }
186
+ .fixe_bottom {
187
+ display: flex;
188
+ align-items: center;
189
+ justify-content: space-around;
190
+ height: unit(100, rpx);
191
+ padding: 0 unit(40, rpx);
192
+ flex-flow: nowrap;
193
+ background: #fff;
194
+ box-shadow: 0 0 unit(16, rpx) rgba(0, 0, 0, 0.05);
195
+ .flex_l {
196
+ display: flex;
197
+ align-items: center;
198
+ font-size: unit(32, rpx);
199
+ }
108
200
 
201
+ & > view {
202
+ flex: 1;
203
+ padding: 0 unit(15, rpx);
204
+ }
109
205
  }
110
206
  }
207
+ }
111
208
  </style>
@@ -0,0 +1,33 @@
1
+ import {
2
+ dataVal,
3
+ } from "@/utils/AttrTools";
4
+ export default (data, gValue, gColor, oldData = {}) => {
5
+ return [
6
+ {
7
+ label: '开票详情',
8
+ ele: 'xd-select-pages-path',
9
+ valueKey: 'detailPath',
10
+ placeholder: '请选择开票详情页面',
11
+ value: data['detailPath'] || {},
12
+ labelInline: true,
13
+ setting: {
14
+ router: XdBus.getParentApi('getPagesTree'),
15
+ },
16
+ className: 'input100',
17
+ groupKey: 'advanced',
18
+ },
19
+ {
20
+ label: '申请开票',
21
+ ele: 'xd-select-pages-path',
22
+ valueKey: 'invoicePath',
23
+ placeholder: '请选择申请开票页面',
24
+ value: data['invoicePath'] || {},
25
+ labelInline: true,
26
+ setting: {
27
+ router: XdBus.getParentApi('getPagesTree'),
28
+ },
29
+ className: 'input100',
30
+ groupKey: 'advanced',
31
+ },
32
+ ].filter(i => i);
33
+ }
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal,
4
+ statusDataVal,
5
+ statusShow,
6
+ customVal,
7
+ getRemoteOptions
8
+ } from "@/utils/AttrTools";
9
+
10
+ export default (data, gValue, gColor, oldData = {}) => {
11
+ return [].filter(i => i);
12
+ }
@@ -0,0 +1,12 @@
1
+ import {
2
+ dataVal,
3
+ statusDataVal,
4
+ statusShow,
5
+ cRaBorShadow,
6
+ cusDisabled,
7
+ getCustomAttr,
8
+ TestCssInfo
9
+ } from "@/utils/AttrTools";
10
+ export default (data, gValue, gColor, oldData = {}) => {
11
+ return [].filter(i => i);
12
+ }
@@ -7,50 +7,27 @@
7
7
  module.exports = [
8
8
  {
9
9
  //设置方法名字当别忘记加上【模块名字】:Invoice
10
- mapFnName: 'getInvoiceByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
10
+ mapFnName: 'userInvoiceDetail',
11
+ title: '用户开票 - 详情',
12
+ path: '/pay/v1/user-invoice/detail',
13
13
  isRule: false,
14
14
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
15
+ main_order_id: ['订单编号', 'Number', '必选'],
16
+ pay_order_id: ['支付订单号', 'Number', '必选'],
17
17
  },
18
18
  isConsole: true,
19
19
  disabled: true,
20
20
  },
21
21
  {
22
22
  //设置方法名字当别忘记加上【模块名字】:Invoice
23
- mapFnName: 'updateInvoiceFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
23
+ mapFnName: 'userInvoiceSend',
24
+ title: '用户开票 - 发送邮箱',
25
+ path: '/pay/v1/user-invoice/send',
26
26
  isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Invoice
36
- mapFnName: 'removeInvoiceFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Invoice
48
- mapFnName: 'addInvoiceFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
27
+ data: {
28
+ main_order_id: ['订单编号', 'Number', '必选'],
29
+ pay_order_id: ['支付订单号', 'Number', '必选'],
30
+ email: ['邮箱', 'String', '必选'],
54
31
  },
55
32
  isConsole: true,
56
33
  disabled: true,
@@ -1,48 +1,21 @@
1
1
  'use strict';
2
-
2
+ import Content from './cusAttr/content'
3
+ import Style from './cusAttr/style'
4
+ import Advanced from './cusAttr/advanced'
3
5
  /**
4
6
  * @description 当表单组件中有联动操作时候,使用方法进行返回
5
7
  */
6
8
  export default {
7
9
  style: [],
8
- content: (data) => {
10
+ content: (data, gValue, gColor, oldData = {}) => {
9
11
  return [
10
- {
11
- label: '背景颜色:',
12
- ele: 'xd-color',
13
- valueKey: 'bgColor',
14
- value: data.bgColor || '',
15
- placeholder: '请输入占位框背景颜色',
16
- groupKey:'content',
17
- },
18
- {
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,
25
- setting: {
26
- router: XdBus.getParentApi('getPagesTree')
27
- },
28
- },
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',
38
- },
39
- {
40
- label: '', //label
41
- groupKey:'advanced',
42
- ele: 'slot', //package 名称
43
- slot: 'is_reference',
44
- },
45
- ].filter(i=>i)
12
+ ...Content(data, gValue, gColor, oldData),
13
+ ...Style(data, gValue, gColor, oldData),
14
+ ...Advanced(data, gValue, gColor, oldData),
15
+
16
+ ].filter(i => i)
46
17
  },
47
- advanced: [],
18
+ advanced: [
19
+
20
+ ],
48
21
  };