jufubao-base 1.0.242-beta2 → 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-beta2",
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
 
@@ -24,7 +24,6 @@
24
24
  <view class="column_value text-gray">
25
25
  <xd-unit
26
26
  :price="payInfo.total_amount"
27
- :isShowIcon="isShowIcon"
28
27
  :isOld="false"
29
28
  :font-size="28"
30
29
  :icon-size="0.28"
@@ -40,7 +39,6 @@
40
39
  <!-- <xd-button width="220rpx" radius="60rpx" type="primary" size="small" @click="xdDownDrawer=true">使用新票券</xd-button> -->
41
40
  <xd-unit
42
41
  :price="payInfo.card_amount"
43
- :isShowIcon="isShowIcon"
44
42
  :isOld="false"
45
43
  :font-size="28"
46
44
  :icon-size="0.28"
@@ -106,7 +104,6 @@
106
104
  <view class="column_value text-primary">
107
105
  <xd-unit
108
106
  :price="payInfo.channel_amount"
109
- :isShowIcon="isShowIcon"
110
107
  :isOld="false"
111
108
  :font-size="28"
112
109
  :icon-size="0.28"
@@ -247,10 +244,6 @@ export default {
247
244
  }
248
245
  return url
249
246
  },
250
- isShowIcon() {
251
- if(this.$configProject['isPreview']) return true;
252
- return this.siteInfo.mapping.is_show_coin_icon==='Y'
253
- },
254
247
  ...styleForm.getComputedItem(),
255
248
  },
256
249
  created() {
@@ -25,11 +25,11 @@
25
25
  </view>
26
26
 
27
27
  <view v-if="showShare" class="share_wrap">
28
- <button class="share_btn" open-type="share" @click="toSendWx" :style="{backgroundImage: `url(${shareImage})`}">
29
- <!-- <image :src="shareImage" mode="widthFix"></image> -->
28
+ <button class="share_btn" open-type="share" @click="toSendWx">
29
+ <image :src="shareImage" mode="widthFix"></image>
30
30
  </button>
31
- <view class="share_btn" @click="toSaveImg" :style="{backgroundImage: `url(${savaImage})`}">
32
- <!-- <image src="https://sandbox-img1.jufubao.cn/uploads/20250410/faeb136bfd684ab6fa4608208ad26294.png?x-oss-process=style/size8" mode="widthFix"></image> -->
31
+ <view class="share_btn" @click="toSaveImg">
32
+ <image :src="savaImage" mode="widthFix"></image>
33
33
  </view>
34
34
  </view>
35
35
 
@@ -245,16 +245,19 @@
245
245
  }
246
246
  .share_wrap{
247
247
  display: flex;
248
- align-items: center;
248
+ // align-items: center;
249
+ align-items: flex-start;
249
250
  justify-content: center;
250
251
  .share_btn{
251
252
  width: 300rpx;
252
- height: 80rpx;
253
+ // height: 80rpx;
253
254
  background-size: 100% 100%;
254
255
  background-color: transparent;
255
256
  margin: 60rpx 0 0 0;
257
+ padding: 0;
256
258
  &::after{
257
259
  border: none !important;
260
+ content: initial !important;
258
261
  }
259
262
  image{
260
263
  width: 100%;