jufubao-base 1.0.242-beta3 → 1.0.242-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.242-beta3",
3
+ "version": "1.0.242-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -55,6 +55,19 @@ export default {
55
55
  },
56
56
  inline: false,
57
57
  },
58
+ {
59
+ label: '选取城市路径:',
60
+ ele: 'xd-select-pages-path',
61
+ valueKey: 'cityPath',
62
+ placeholder: '请选择选取城市路径',
63
+ value: data.cityPath || null,
64
+ className: 'input100',
65
+ groupKey:'advanced',
66
+ setting: {
67
+ router: XdBus.getParentApi('getPagesTree')
68
+ },
69
+ inline: false,
70
+ },
58
71
  ].filter(i=>i)
59
72
  },
60
73
  advanced: [],
@@ -115,6 +115,21 @@
115
115
  <XdButton @click="handleConfirm" size="small" type="primary">确认</XdButton>
116
116
  </view>
117
117
  </XdDialog>
118
+ <XdDialog class="location-dialog-title" width="80%" :show.sync="showLocationDialog" :showClose="false"
119
+ :showTitle="true">
120
+ <view slot="title">
121
+ <xd-font-icon icon="icondingweixiao" color="#999999" size="60"></xd-font-icon>
122
+ <text style="font-size: 32rpx;color: #333;margin-top: 12rpx;">定位请求</text>
123
+ </view>
124
+ <view class="location-dialog-content">
125
+ <view>为了给您提供更好的服务需要获取您的位置信息</view>
126
+ </view>
127
+ <view class="dialog-btns" slot="btn">
128
+ <XdButton @click="showLocationDialog=false" bgColor="#EEEEEE" color="#888888" size="small" type="info">取消
129
+ </XdButton>
130
+ <XdButton @click="handleToCity" size="small" type="primary">允许</XdButton>
131
+ </view>
132
+ </XdDialog>
118
133
  </view>
119
134
  </template>
120
135
 
@@ -176,6 +191,8 @@
176
191
  isPreview: false,
177
192
  jwxSDK: null,
178
193
  refresh: true, //onshow是否刷新数据
194
+ showLocationDialog: false,
195
+ cityPath: ''
179
196
  }
180
197
  },
181
198
  watch: {
@@ -241,6 +258,7 @@
241
258
 
242
259
  if (Object.keys(this.stateLocation).length === 0) {
243
260
  this.tip = '为了给您提供更好的服务需要获取您的位置信息'
261
+ this.showLocationDialog = true
244
262
  this.showMask = true;
245
263
  this.showDialog = false;
246
264
  return
@@ -293,6 +311,13 @@
293
311
  ).value;
294
312
  this.cashPayPath = getContainerPropsValue(container, 'content.cash_pay_path', { value: "" }
295
313
  ).value;
314
+ this.successPath = getContainerPropsValue(
315
+ container,
316
+ "content.successPath",
317
+ { value: "" }
318
+ ).value;
319
+ this.cityPath = getContainerPropsValue(container, 'content.cityPath', { value: "" }
320
+ ).value;
296
321
  },
297
322
  getUserInfo() {
298
323
  jfbRootExec("getConsumpBaseUserInfo", {
@@ -740,6 +765,11 @@
740
765
  this.price = "";
741
766
  }
742
767
  },
768
+ handleToCity() {
769
+ this.$xdUniHelper.navigateTo({
770
+ url: this.cityPath
771
+ },true);
772
+ },
743
773
  handleNumberChange(num) {
744
774
  let curTag = this.curTag;
745
775
  this.total_price = this.$xdUniHelper.multiplyFloatNumber(curTag.price_yuan, num);
@@ -1049,5 +1079,26 @@
1049
1079
  justify-content: space-between;
1050
1080
 
1051
1081
  }
1082
+
1083
+ .location-dialog-content {
1084
+ display: flex;
1085
+ justify-content: center;
1086
+ align-items: center;
1087
+ border-bottom: 2rpx dashed #E5E5E5;
1088
+ padding-bottom: 30rpx;
1089
+
1090
+ &>view:first-child {
1091
+ font-size: 26rpx;
1092
+ color: #999999;
1093
+ width: 60%;
1094
+ }
1095
+ }
1096
+
1097
+ .location-dialog-title ::v-deep .xd-dailog__body-title {
1098
+ padding-top: 40rpx;
1099
+ padding-bottom: 32rpx;
1100
+ height: auto;
1101
+ line-height: inherit;
1102
+ }
1052
1103
  }
1053
1104
  </style>
@@ -56,6 +56,18 @@ export default {
56
56
  },
57
57
  classNmae: 'input80',
58
58
  },
59
+ {
60
+ label: '边框颜色:',
61
+ ele: 'xd-color',
62
+ valueKey: 'borderColor',
63
+ groupKey:'content',
64
+ value: data['borderColor'] || '',
65
+ placeholder: '请选择边框颜色',
66
+ setting: {
67
+ isAlpha: false
68
+ },
69
+ classNmae: 'input80',
70
+ },
59
71
  {
60
72
  label: '菜单文字颜色:',
61
73
  ele: 'xd-color',
@@ -19,6 +19,7 @@
19
19
  <view class="jfb-base-footer__body">
20
20
  <view :style="[bodyStyle]">
21
21
  <xd-footer-bar
22
+ class="footer-bar"
22
23
  style="height:100%"
23
24
  v-if="list !== null"
24
25
  :height="height"
@@ -61,6 +62,7 @@
61
62
  backgroundSize: '100% 100%',
62
63
  backgroundRepeat: 'no-repeat',
63
64
  backgroundPosition: 'top center',
65
+ '--border-color': this.borderColor
64
66
  }
65
67
 
66
68
  if(this.backgroundImage && this.backgroundImage.url) {
@@ -78,6 +80,7 @@
78
80
  footerBarKey: 'footerBarKey', //刷新
79
81
  baseUrl: '',
80
82
  backgroundImage: '',
83
+ borderColor: ''
81
84
  }
82
85
  },
83
86
  watch: {
@@ -197,6 +200,7 @@
197
200
  let bar = getContainerPropsValue(value, 'content.footer-setting', []);
198
201
  let imageIcons = getContainerPropsValue(value, 'content.footerSettingImage', []);
199
202
  this.backgroundImage = getContainerPropsValue(value, 'content.backgroundImage', '');
203
+ this.borderColor = getContainerPropsValue(value, 'content.borderColor', '');
200
204
  this.list = {
201
205
  bgColor: getContainerPropsValue(value, 'content.bgColor', '#fff'),
202
206
  bodyStyle: this.bodyStyle,
@@ -222,6 +226,9 @@
222
226
 
223
227
  <style scoped lang="less">
224
228
  @import "./JfbBaseFooterLess.less";
229
+ .footer-bar ::v-deep .xd-footer-tabbar__border {
230
+ border-color: var(--border-color);
231
+ }
225
232
 
226
233
  .jfb-base-footer {
227
234