jufubao-base 1.0.75-beta1 → 1.0.76

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.75-beta1",
3
+ "version": "1.0.76",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -30,6 +30,15 @@ export default {
30
30
  {label: '悬浮', value: 'fixed'},
31
31
  ]
32
32
  },
33
+ data['is_layout'] ==='fixed' && {
34
+ label: '自定义名称:',
35
+ ele: 'el-input',
36
+ type: 'text',
37
+ valueKey: 'fastName',
38
+ value: data['fastName']? data['fastName']: '快速导航',
39
+ placeholder: '请输入自定义名称',
40
+ className: 'input80',
41
+ },
33
42
  {
34
43
  label: '快速链接配置:', //label
35
44
  ele: 'xd-footer-setting', //package 名称
@@ -48,7 +48,13 @@
48
48
  :style="{backgroundColor:backgroundColor, color:warningColor}"
49
49
  >弹窗模式方便编辑(占位),在线上此模块不显</view>
50
50
  </template>
51
- <xd-fast-nav :list="listNave" :color="mainColor" :is-preview="isPreview"></xd-fast-nav>
51
+ <xd-fast-nav
52
+ :list="listNave"
53
+ :color="mainColor"
54
+ :is-preview="isPreview"
55
+ :fast-name="fastName"
56
+ :layoutInfo="layoutInfo"
57
+ ></xd-fast-nav>
52
58
  </template>
53
59
  </view>
54
60
  </view>
@@ -86,6 +92,7 @@
86
92
  radius: 10,
87
93
  iconColor: '#999',
88
94
  is_layout: 'noraml',
95
+ fastName:'快速导航',
89
96
 
90
97
 
91
98
  //边框
@@ -161,36 +168,37 @@
161
168
  this.radius = getContainerPropsValue(container, 'content.radius', 10);
162
169
  this.iconColor = getContainerPropsValue(container, 'content.iconColor', '#999');
163
170
  this.padding = getContainerPropsValue(container, 'content.padding', 20);
164
- this.is_layout = getContainerPropsValue(container, 'content.is_layout', 'fixed');
165
-
171
+ this.is_layout = getContainerPropsValue(container, 'content.is_layout', 'noraml');
172
+ this.fastName = getContainerPropsValue(container, 'content.fastName', '快速导航');
166
173
  this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
167
174
  this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
168
175
  this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
169
-
170
176
  this.list = getContainerPropsValue(container, 'content.quick_link_list', []).map(item=>{
171
177
  return {
172
178
  ...item,
173
179
  key: this.$xdUniHelper.randomChar(20),
174
- size: Number(item.size ? item.size : 18) * 2,
180
+ size: item.size * this.$pxNum
175
181
  }
176
182
  });
177
183
  this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, right: 0, bottom: 0});
178
- this.listNave = this.list.map(item=>{
179
- const {dir, path,fixed_business_code} = item;
180
- let bus = fixed_business_code? Base64.encodeURI(JSON.stringify({business_code: fixed_business_code})):'';
181
- let jumpUrl = item.path;
182
- //#ifdef H5
183
- jumpUrl = `//${window.location.host}/${dir}${path}`;
184
- //#endif
185
184
 
186
- if(item['fixed_business_code'] === '') {
187
- item['path'] = `${jumpUrl}?x-common=${bus}}`
185
+ this.listNave = this.list.map(item=>{
186
+ const {appValue,path} = item.path
187
+ if(appValue === undefined && path === undefined) {
188
+ return { name: item.name, path: item.path.value, icon: item.icon, size: item.size}
188
189
  }
189
190
  else{
190
- item['redirect_data']['path'] = `${jumpUrl}?x-common=${bus}}`
191
+ const {dir,fixed_business_code} = item.path;
192
+ let bus = fixed_business_code? Base64.encodeURI(JSON.stringify({business_code: fixed_business_code})):'';
193
+ if(bus) bus = `?x-common=${bus}`;
194
+ let jumpUrl = '';
195
+ //#ifdef H5
196
+ if(dir) jumpUrl = `//${window.location.host}/${dir}${path}`;
197
+ else jumpUrl = path;
198
+ //#endif
199
+ jumpUrl = `${jumpUrl}${bus}`;
200
+ return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
191
201
  }
192
-
193
- return { name: '首页', path: '/pages/company/zmyx11/index', icon: 'cakeiconfont cakeshouye', size: 24 }
194
202
  })
195
203
 
196
204
  },
@@ -10,7 +10,7 @@
10
10
  <view class="xd-fast-nave__body">
11
11
  <view class="xd-fast-nave__body-close" v-if="close" @click="close=false">
12
12
  <xd-font-icon icon="iconjiantou_zuo" color="#fff" size="30"></xd-font-icon>
13
- <view>快速导航</view>
13
+ <view>{{fastName}}</view>
14
14
  </view>
15
15
  <view class="xd-fast-nave__body-open" v-else @click="close=true">
16
16
  <xd-font-icon icon="iconjiantou_you" color="#fff" size="30"></xd-font-icon>
@@ -64,24 +64,42 @@
64
64
  isPreview:{
65
65
  type: Boolean,
66
66
  default: false
67
- }
67
+ },
68
+ fastName:{
69
+ type:String,
70
+ default: '快速导航'
71
+ },
72
+ layoutInfo:{
73
+ type:Object,
74
+ default(){
75
+ return {}
76
+ }
77
+ },
68
78
  },
69
79
  data(){
70
80
  return {
71
- uiTop: 100,
72
81
  uizIndex: 100,
73
82
  close: true,
74
83
  lineColor: '#fff'
75
84
  }
76
85
  },
77
86
 
87
+ computed:{
88
+ uiTop(){
89
+ return this.top + this.layoutInfo.bottomHeight + this.layoutInfo.footerHeight;
90
+ }
91
+ },
92
+
78
93
  created() {
79
94
  this.lineColor = Color(this.color).alpha(0.2).toString();
80
95
  },
81
96
 
82
97
  methods: {
83
98
  handleClick(item){
84
- if(this.isPreview) return;
99
+ if(this.isPreview) {
100
+ console.warn(item.path);
101
+ return;
102
+ }
85
103
  this.close = true;
86
104
  this.$xdUniHelper.navigateTo({
87
105
  url: item.path
@@ -152,7 +170,8 @@
152
170
  background: rgba(0,0,0,.5);
153
171
  border-radius: unit(15,rpx) 0 0 unit(15, rpx);
154
172
  display: flex;
155
- justify-content: flex-end;
173
+ justify-content: center;
174
+ text-align: center;
156
175
  align-items: center;
157
176
  height: unit(90, rpx);
158
177
  padding: 0 unit(15,rpx);
@@ -20,7 +20,9 @@
20
20
  <!-- #endif -->
21
21
  <view class="jfb-base-order-detail__body" v-if="info && info !== null">
22
22
  <view>
23
- <view class="jfb-base-order-detail__body-time">
23
+ <view class="jfb-base-order-detail__body-time" :style="{
24
+ top: (layoutInfo.top-2) + 'rpx',
25
+ }">
24
26
  <xd-font-icon
25
27
  size="48"
26
28
  v-if="info.status.status_type === 'wait'"
@@ -54,6 +56,7 @@
54
56
  {{ info.status.status_name }}
55
57
  </view>
56
58
  </view>
59
+ <view style="height: 90rpx;"></view>
57
60
  </view>
58
61
  <view :style="{ padding: outMargin }">
59
62
  <view v-if="info.film_show && info.film_show !== null">
@@ -1289,6 +1292,11 @@ export default {
1289
1292
  font-weight: 500;
1290
1293
  color: #333333;
1291
1294
  font-size: unit(32, rpx);
1295
+ position: fixed;
1296
+ left: 0;
1297
+ width: 100%;
1298
+ background: #FFFFFF;
1299
+ z-index: 999;
1292
1300
  }
1293
1301
 
1294
1302
  &-status {