jufubao-base 1.0.233-beta2 → 1.0.233-beta31

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.
@@ -13,18 +13,12 @@
13
13
  <view class="jfb-base-card-v3__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view class="jfb-base-card-v3__body" :style="{
17
- '--main-color': mainColor,
18
- }">
16
+ <view class="jfb-base-card-v3__body">
19
17
  <view class="v3_title">选择登入票券</view>
20
18
  <view v-if="loadingCardList">
21
19
  <xd-card-v2-skeleton v-for="i in 3" :key="i"></xd-card-v2-skeleton>
22
20
  </view>
23
21
  <template v-else>
24
- <view v-if="show_coupon_tab==='Y'" class="show_type_tab">
25
- <view class="type_item" :class="{active: show_type==='normal'}" @click="switchShowType('normal')">已绑定票券</view>
26
- <view class="type_item" :class="{active: show_type==='coupon'}" @click="switchShowType('coupon')">优惠券</view>
27
- </view>
28
22
  <view class="card_list" v-if="cardList.length">
29
23
  <xd-card-v2
30
24
  v-for="(item, index) in cardList"
@@ -76,9 +70,6 @@
76
70
  ],
77
71
  data() {
78
72
  return {
79
- options: {},
80
- show_coupon_tab: "N",
81
- show_type: "normal",
82
73
  cardList: [],
83
74
  inCallback: "",
84
75
  tabIndex: 1,
@@ -112,7 +103,6 @@
112
103
  },
113
104
  methods: {
114
105
  onJfbLoad(options) {
115
- this.options = options;
116
106
  let { inCallback } = options;
117
107
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
118
108
  else {
@@ -128,32 +118,10 @@
128
118
  }
129
119
  this.inCallback = inCallback || this.settings.index;
130
120
 
131
- this.getList();
132
- },
133
- /**
134
- * @description 监听事件变化
135
- * @param container {object} 业务组件对象自己
136
- */
137
- init(container) {
138
- this.cardBindPath = getContainerPropsValue(container, "content.cardBindPath", {value: ""}).value;
139
- this.changeUrl = getContainerPropsValue(container, "content.changeUrl", {value: ""}).value;
140
- this.detailUrl = getContainerPropsValue(container, "content.detailUrl", {value: ""}).value;
141
- this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
142
- this.logged_name = getContainerPropsValue(container, "content.logged_name", "已登录");
143
- this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
144
- this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
145
- this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
146
- this.show_coupon_tab = getContainerPropsValue(container, "content.show_coupon_tab", "N");
147
- },
148
- getList(){
149
- let options = this.options;
150
121
  let params = {is_all: 'Y'};
151
122
  if (options['jfb_business_code']) {
152
123
  params['card_business_code'] = options['jfb_business_code'];
153
124
  }
154
- if(this.show_coupon_tab === 'Y'){
155
- params.show_type = this.show_type;
156
- }
157
125
 
158
126
  jfbRootExec("getListCardBind", {
159
127
  vm: this,
@@ -167,8 +135,19 @@
167
135
  }).filter((item) => item["is_valid"] === "Y");
168
136
  });
169
137
  },
170
- switchShowType(type){
171
- this.show_type = type;
138
+ /**
139
+ * @description 监听事件变化
140
+ * @param container {object} 业务组件对象自己
141
+ */
142
+ init(container) {
143
+ this.cardBindPath = getContainerPropsValue(container, "content.cardBindPath", {value: ""}).value;
144
+ this.changeUrl = getContainerPropsValue(container, "content.changeUrl", {value: ""}).value;
145
+ this.detailUrl = getContainerPropsValue(container, "content.detailUrl", {value: ""}).value;
146
+ this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
147
+ this.logged_name = getContainerPropsValue(container, "content.logged_name", "已登录");
148
+ this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
149
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
150
+ this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
172
151
  },
173
152
  toBindCard(){
174
153
  let path = this.getUrlCallback(this.cardBindPath)
@@ -252,25 +231,6 @@
252
231
  .jfb-base-card-v3 {
253
232
  &__body{
254
233
  padding: 0 24rpx;
255
- .show_type_tab{
256
- display: flex;
257
- align-items: center;
258
- margin-bottom: 24rpx;
259
- .type_item{
260
- padding: unit(5, rpx) unit(22, rpx);
261
- text-align: center;
262
- line-height: unit(60, rpx);
263
- border-radius: unit(60, rpx);
264
- color: #B8B7BE;
265
- & + .type_item{
266
- margin-left: unit(30, rpx);
267
- }
268
- &.active{
269
- background-color: var(--main-color);
270
- color: #FFFFFF;
271
- }
272
- }
273
- }
274
234
  .v3_title{
275
235
  padding: 16rpx 40rpx;
276
236
  border-radius: 40rpx;
@@ -11,5 +11,5 @@ module.exports = {
11
11
  "street_name": "崇文街道"
12
12
  },
13
13
  "request_id": "6777935abebcfb20"
14
- }
14
+ }
15
15
  }
@@ -262,33 +262,6 @@ export default {
262
262
  {"label": "弹窗显示", "value": '3'},
263
263
  ],
264
264
  },
265
- data.style === '1' && {
266
- label: "是否显示提示图标:",
267
- ele: "xd-radio",
268
- valueKey: "show_tip_icon",
269
- value: data['show_tip_icon'],
270
- groupKey: 'content',
271
- list: [
272
- { label: '是', value: 'Y' },
273
- { label: '否', value: 'N' }
274
- ]
275
- },
276
- data.style === '1' && data.show_tip_icon === 'Y' && {
277
- label: "提示图标:",
278
- ele: 'xd-upload',
279
- valueKey: 'staticTipIcon',
280
- groupKey:'content',
281
- value: data.staticTipIcon || {},
282
- defaultValue: data.staticTipIcon || null,
283
- slot: true,
284
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB。',
285
- type: ['jpg', 'png', 'jpeg'],
286
- styleType: 'one',
287
- uploadType: 'aliyun',
288
- size: .5,
289
- action: 'action',
290
- sort: true,
291
- },
292
265
  {
293
266
  label: '是否隐藏弹框(仅预览模式生效):',
294
267
  ele: 'xd-radio',
@@ -355,15 +328,6 @@ export default {
355
328
  {"label": "右", "value": 'right'},
356
329
  ]
357
330
  },
358
- data.style === '1' && data.show_tip_icon === 'Y' && {
359
- label: "提示图标的高度:",
360
- ele: 'el-input',
361
- valueKey: 'tipIconHeight',
362
- groupKey:'style',
363
- className: 'input80',
364
- value: data['tipIconHeight'] || '50',
365
- placeholder: '请输入提示图标的高度'
366
- },
367
331
  data.style === '1' && {
368
332
  label: '内容圆角设置:',
369
333
  ele: 'xd-site-select-list',
@@ -103,14 +103,10 @@
103
103
  color:textColor,
104
104
  borderRadius: contRadius,
105
105
  padding: paddingUi,
106
- lineHeight: '50rpx',
106
+ lineHeight: '50rpx'
107
107
  }"
108
108
  v-if="content"
109
109
  >
110
- <image v-if="show_tip_icon==='Y' && staticTipIcon" :src="staticTipIcon"
111
- :style="{height: tipIconHeight+'rpx'}"
112
- style="width: auto;margin-right: 12rpx;" mode="heightFix"
113
- ></image>
114
110
  <xd-content-xss
115
111
  :key="contentKey"
116
112
  :html="content"
@@ -166,7 +162,6 @@
166
162
  import extsMixins from "@/mixins/extsMixins"
167
163
  import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer.vue";
168
164
  import { getContainerPropsValue } from "@/utils/xd.base";
169
- import getServiceUrl from "@/common/getServiceUrl";
170
165
  import storage from "@/common/storage";
171
166
  import Color from "color";
172
167
  const color = require('color');
@@ -224,9 +219,6 @@
224
219
 
225
220
  backgroundColor: '',
226
221
  is_hide_dailog:'N',
227
- show_tip_icon: "",
228
- staticTipIcon: "",
229
- tipIconHeight: 50,
230
222
 
231
223
  isMp:false,
232
224
 
@@ -345,16 +337,12 @@
345
337
  this.btnConfirmWidth = getContainerPropsValue(container, 'content.btnConfirmWidth', '');
346
338
  this.btnConfirmBgColor = getContainerPropsValue(container, 'content.btnConfirmBgColor', '');
347
339
  this.btnConfirmTextColor = getContainerPropsValue(container, 'content.btnConfirmTextColor', '');
348
- this.show_tip_icon = getContainerPropsValue(container, 'content.show_tip_icon', '');
349
- let staticTipIcon = getContainerPropsValue(container, 'content.staticTipIcon', '');
350
- this.staticTipIcon = staticTipIcon ? getServiceUrl(staticTipIcon.url) : '';
351
- this.tipIconHeight = getContainerPropsValue(container, 'content.tipIconHeight', 50);
352
340
  if (this.fontSize === 20) this.titleFontSize = 28;
353
341
  if (this.fontSize === 26) this.titleFontSize = 36;
354
342
  if (this.fontSize === 36) this.titleFontSize = 44;
355
343
  this.isTitle = getContainerPropsValue(container, 'content.isTitle', false);
356
344
 
357
- console.log("this.staticTipIcon", this.staticTipIcon);
345
+ console.log("this.btnConfirmTextColor", this.btnConfirmTextColor);
358
346
 
359
347
  if(this.style === '2') {
360
348
  this.num = getContainerPropsValue(container, 'content.num', 1);
@@ -532,8 +520,6 @@
532
520
 
533
521
  &-content {
534
522
  padding: unit(8, rpx) unit(10, rpx);
535
- display: flex;
536
- align-items: center;
537
523
  }
538
524
  }
539
525
 
@@ -34,35 +34,6 @@ export default {
34
34
  if(params['textColor']) fontColor = params['textColor']
35
35
  if(params.titleStyle && params.titleStyle.color) fontColor = params.titleStyle.color;
36
36
 
37
- //图片高度= 上下内边距 + 单个内容高度*行数 + 指示器高度
38
- //图片宽度= 750 - 左右外边距
39
- let outWidth = 750;
40
- if(!params.margin) params.margin = {};
41
- if(!params.contentPadding) params.contentPadding = {};
42
- let marginLeft = params.margin.left || 0;
43
- let marginRight = params.margin.right || 0;
44
- let paddingLeft = params.contentPadding.left || 0;
45
- let paddingRight = params.contentPadding.right || 0;
46
- let paddingTop = params.contentPadding.top || 0;
47
- let paddingBottom = params.contentPadding.bottom || 0;
48
- let columnSpacing = params.columnSpacing || 0;
49
- let columnSpacings = columnSpacing * (params.cells-1);
50
- let textHeight = 40;
51
- if(params.titleStyle && params.titleStyle.lineHeight) textHeight = parseInt(params.titleStyle.lineHeight);
52
-
53
- let itemWidth = (outWidth - (marginLeft + marginRight + paddingLeft + paddingRight + columnSpacings))/ params.cells;
54
- let itemHeight = textHeight + itemWidth;
55
- let indicatorHeight = 0;
56
-
57
- if(params.dot_type){
58
- if(['indexes', 'nav'].includes(params['dot_type'])) indicatorHeight = 60;
59
- else indicatorHeight = params.dot_type === 'normal'?0:48;
60
- }
61
- let bgImgHeight = params.jdRows * itemHeight + paddingTop + paddingBottom + indicatorHeight;
62
- let bgImgWidth = 750 - (marginLeft + marginRight);
63
- // console.log("itemHeight", bgImgHeight, bgImgWidth, params['dot_type'])
64
-
65
-
66
37
  return [
67
38
  {
68
39
  label: '导航配置:',
@@ -541,23 +512,6 @@ export default {
541
512
  showAlpha: true
542
513
  },
543
514
  },
544
- {
545
- label: "背景图片:",
546
- ele: 'xd-upload',
547
- valueKey: 'bgImage',
548
- groupKey: 'style',
549
- value: params.bgImage || null,
550
- defaultValue: params.bgImage || null,
551
- slot: true,
552
- tipsformet: `上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:${bgImgWidth}*${bgImgHeight}像素`,
553
- type: ['jpg', 'png', 'jpeg'],
554
- styleType: 'one',
555
- oneWidth: bgImgWidth/2,
556
- oneHeight: bgImgHeight/2,
557
- uploadType: 'aliyun',
558
- size: 5, //5M
559
- action: 'aliyun',
560
- },
561
515
  {
562
516
  label: "圆角设置:",
563
517
  groupKey: 'style',
@@ -82,7 +82,6 @@
82
82
  contentPadding:{},
83
83
  bgColor:'rgba(0,0,0,0)',
84
84
  bgRadius: 0,
85
- bgImage: "",
86
85
  }
87
86
  },
88
87
  computed: {
@@ -193,7 +192,6 @@
193
192
  margin: this.getMarginAndPadding(this.margin, 0),
194
193
  padding:this.getMarginAndPadding(this.contentPadding, 0),
195
194
  backgroundColor: this.bgColor,
196
- backgroundImage: this.bgImage ? `url(${getServiceUrl(this.bgImage)})` : '',
197
195
  borderRadius: this.bgRadius + 'rpx'
198
196
  }
199
197
  }
@@ -275,7 +273,6 @@
275
273
 
276
274
  //样式设置
277
275
  this.bgColor = getContainerPropsValue(container, 'content.bgColor','rgba(0,0,0,0)');
278
- this.bgImage = getServiceUrl(getContainerPropsValue(container, 'content.bgImage', {url: ""}).url)
279
276
  this.bgRadius = getContainerPropsValue(container, 'content.bgRadius', '0');
280
277
  this.contentPadding = getContainerPropsValue(container, 'content.contentPadding', {});
281
278
  this.margin = getContainerPropsValue(container, 'content.margin', {});
@@ -330,7 +327,6 @@
330
327
  justify-content: center;
331
328
  align-items: center;
332
329
  display: flex;
333
- background-size: cover;
334
330
  }
335
331
 
336
332
  }
@@ -10,9 +10,7 @@
10
10
  :class="{ editx: isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
- <view class="jfb-base-recharge-order__edit-icon" @click="delEdit"
14
- >删除</view
15
- >
13
+ <view class="jfb-base-recharge-order__edit-icon" @click="delEdit">删除</view>
16
14
  </view>
17
15
  <!-- #endif -->
18
16
  <view class="jfb-base-recharge-order__body">
@@ -67,16 +65,11 @@
67
65
  }"
68
66
  >
69
67
  <view class="jfb-base-recharge-order__body-order-header">
70
- {{ type === "recharge" ? "充值订单" : "延期订单" }}
68
+ {{ item.rechargeType === "recharge" ? "充值订单" : "延期订单" }}
71
69
  </view>
72
70
  <view class="jfb-base-recharge-order__body-order-middle">
73
- <view
74
- >订单编号:
75
- {{ item.order_id }}
76
- </view>
77
- <view :style="{ color: item.textColor }">
78
- {{ item.pay_status_name }}
79
- </view>
71
+ <view>订单编号: {{ item.order_id }}</view>
72
+ <view :style="{ color: item.textColor }">{{ item.pay_status_name }}</view>
80
73
  </view>
81
74
  <view class="jfb-base-recharge-order__body-order-bottom">
82
75
  <view>交易日期:{{ item.created_time }} </view>
@@ -158,13 +151,7 @@ export default {
158
151
  is_border_c: "",
159
152
 
160
153
  //其他
161
- margin: {
162
- top: 0,
163
- left: 0,
164
- right: 0,
165
- bottom: 0,
166
- },
167
- type: "recharge",
154
+ margin: {top: 0, left: 0, right: 0, bottom: 0,},
168
155
  };
169
156
  },
170
157
  watch: {
@@ -197,7 +184,6 @@ export default {
197
184
  },
198
185
  methods: {
199
186
  onJfbLoad(options) {
200
- this.type = options.type || "recharge";
201
187
  this.getList();
202
188
  },
203
189
  /**
@@ -260,8 +246,7 @@ export default {
260
246
  }).value;
261
247
  },
262
248
  getList() {
263
- let fnName = this.type === "recharge" ? "getRechargeOrderList" : "getDelayOrderList";
264
- jfbRootExec(fnName, {
249
+ jfbRootExec('getRechargeOrderList', {
265
250
  vm: this,
266
251
  data: {
267
252
  page_size: this.page_size,
@@ -282,6 +267,12 @@ export default {
282
267
  } else {
283
268
  item.textColor = "#FA5C5C";
284
269
  }
270
+
271
+ //订单设置
272
+ item['rechargeType'] = item.source;
273
+ if(['new-recharge','recharge'].includes(item.source)) {
274
+ item['rechargeType'] = 'recharge'
275
+ }
285
276
  return item;
286
277
  });
287
278
  this.hasNext = res.next_page_token !== "";
@@ -293,12 +284,12 @@ export default {
293
284
  },
294
285
  handleToPay(item) {
295
286
  this.$xdUniHelper.navigateTo({
296
- url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.order_id}&type=${this.type}`,
287
+ url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.order_id}&type=${item.rechargeType}`,
297
288
  });
298
289
  },
299
290
  handleToDetail(item) {
300
291
  this.$xdUniHelper.navigateTo({
301
- url: `${this.detailPath}?id=${item.order_id}&type=${this.type}`,
292
+ url: `${this.detailPath}?id=${item.order_id}&type=${item.rechargeType}`,
302
293
  });
303
294
  },
304
295
 
@@ -1,32 +0,0 @@
1
- 'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Header
5
- * @type {*[]}
6
- */
7
- module.exports = [
8
- {
9
- mapFnName: "getCityInfoByLocation",
10
- title: '根据经纬度获取城市信息',
11
- path: "/common/v1/region/city/get-code-by-geo",
12
- isRule: false,
13
- params: {
14
- latitude: ['latitude', 'Number', true],
15
- longitude: ['longitude', 'Number', true]
16
- },
17
- isConsole: true,
18
- disabled: true
19
- },
20
- {
21
- mapFnName: "getLoadingCityBaseHeaderByLocationLv4",
22
- title: '根据经纬度获取城市信息',
23
- path: "/common/v1/region/city/get-trans-lv4-by-geo",
24
- isRule: false,
25
- params: {
26
- latitude: ['latitude', 'Number', true],
27
- longitude: ['longitude', 'Number', true]
28
- },
29
- isConsole: true,
30
- disabled: true
31
- }
32
- ];