jufubao-base 1.0.236-beta1 → 1.0.236-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.236-beta1",
3
+ "version": "1.0.236-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -133,7 +133,7 @@
133
133
  <view style="display: flex;align-items: center;justify-content: space-between;">
134
134
  <xd-button @click="handleShare" width="260rpx" type="primary" size="small"
135
135
  >通知微信好友</xd-button>
136
- <xd-button @click="handleShare" width="260rpx" type="primary" size="small"
136
+ <xd-button @click="toSeeShareImg" width="260rpx" type="primary" size="small"
137
137
  >查看分享图片</xd-button>
138
138
  </view>
139
139
 
@@ -156,6 +156,9 @@
156
156
  <view class="share_card_dialog" v-show="showShareCard">
157
157
  <view class="share_modal" @click="showShareCard=false"></view>
158
158
  <view class="share_content">
159
+ <view class="share_close" @click="showShareCard=false">
160
+ <xd-font-icon icon="iconguanbi" :size="32" color="#FFFFFF"></xd-font-icon>
161
+ </view>
159
162
  <image :src="canvasUrl" v-if="canvasUrl" class="share_img" style="width: 654rpx; height: 968rpx;"></image>
160
163
  </view>
161
164
  </view>
@@ -366,8 +369,7 @@ export default {
366
369
  });
367
370
  // #endif
368
371
  },
369
- handleShare() {
370
- //#ifdef H5
372
+ toSeeShareImg(){
371
373
  this.dialogShow = false;
372
374
  this.showShareCard = true;
373
375
  if(this.canvasUrl) return;
@@ -384,6 +386,10 @@ export default {
384
386
  },
385
387
  })
386
388
  })
389
+ },
390
+ handleShare() {
391
+ //#ifdef H5
392
+ this.dialogShow = true;
387
393
  // #endif
388
394
  // #ifdef MP-WEIXIN
389
395
  this.setShareInfo({
@@ -423,7 +429,7 @@ export default {
423
429
  position: fixed;
424
430
  top: 0;
425
431
  left: 0;
426
- background: rgba(0, 0, 0, 0.5);
432
+ background: rgba(0, 0, 0, 0.7);
427
433
  z-index: 112;
428
434
  }
429
435
  .share_content{
@@ -434,6 +440,29 @@ export default {
434
440
  left: 50%;
435
441
  transform: translate(-50%, -50%);
436
442
  z-index: 113;
443
+ &::before{
444
+ content: "长按图片,并选择保存到手机";
445
+ position: absolute;
446
+ top: -70rpx;
447
+ left: 0;
448
+ width: 100%;
449
+ height: 100%;
450
+ font-size: 32rpx;
451
+ color: #FFFFFF;
452
+ text-align: center;
453
+ font-weight: 500;
454
+ }
455
+ .share_close{
456
+ position: absolute;
457
+ top: 0;
458
+ right: 0;
459
+ width: 80rpx;
460
+ height: 80rpx;
461
+ display: flex;
462
+ justify-content: center;
463
+ align-items: center;
464
+ z-index: 9999;
465
+ }
437
466
  .share_img{
438
467
  position: absolute;
439
468
  top: 0;
@@ -266,11 +266,11 @@ export default {
266
266
  label: "是否显示提示图标:",
267
267
  ele: "xd-radio",
268
268
  valueKey: "show_tip_icon",
269
- value: data['show_tip_icon'],
269
+ value: data['show_tip_icon'] || 'N',
270
270
  groupKey: 'content',
271
271
  list: [
272
- { label: '', value: 'Y' },
273
- { label: '', value: 'N' }
272
+ { label: '显示', value: 'Y' },
273
+ { label: '不显示', value: 'N' }
274
274
  ]
275
275
  },
276
276
  data.style === '1' && data.show_tip_icon === 'Y' && {
@@ -111,11 +111,13 @@
111
111
  :style="{height: tipIconHeight+'rpx'}"
112
112
  style="width: auto;margin-right: 12rpx;" mode="heightFix"
113
113
  ></image>
114
- <xd-content-xss
115
- :key="contentKey"
116
- :html="content"
117
- :font-sizes="fontSize"
118
- ></xd-content-xss>
114
+ <view style="flex: 1;">
115
+ <xd-content-xss
116
+ :key="contentKey"
117
+ :html="content"
118
+ :font-sizes="fontSize"
119
+ ></xd-content-xss>
120
+ </view>
119
121
  </view>
120
122
  </view>
121
123
  </template>
@@ -582,6 +582,7 @@ export default {
582
582
  value: params['textColor'] || '',
583
583
  placeholder: '请选择文字颜色',
584
584
  classNmae: 'input80',
585
+ hidden: true,
585
586
  },
586
587
  {
587
588
  label: '外边距设置:',