bxs-tools-ui 3.1.1-alpha.2 → 3.1.2
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/es/index.css +1 -1
- package/es/index.js +33 -18
- package/es/share-sheet/index.css +1 -1
- package/es/share-sheet/index.js +32 -17
- package/lib/index.css +1 -1
- package/lib/index.js +33 -18
- package/lib/share-sheet/index.css +1 -1
- package/lib/share-sheet/index.js +32 -17
- package/package.json +1 -1
- package/packages/index.ts +1 -1
- package/packages/share-sheet/demo/index.vue +24 -21
- package/packages/share-sheet/index.css +20 -3
- package/packages/share-sheet/index.vue +29 -10
package/lib/index.js
CHANGED
|
@@ -47856,9 +47856,18 @@
|
|
|
47856
47856
|
});
|
|
47857
47857
|
}
|
|
47858
47858
|
return options;
|
|
47859
|
+
},
|
|
47860
|
+
actionTypeLength: function actionTypeLength() {
|
|
47861
|
+
return [this.shareOptions, this.actionOptions].filter(function (e) {
|
|
47862
|
+
return e.length;
|
|
47863
|
+
}).length;
|
|
47864
|
+
}
|
|
47865
|
+
},
|
|
47866
|
+
created: function created() {
|
|
47867
|
+
if (this.explainData) {
|
|
47868
|
+
this.onClickCopy(this.explainData);
|
|
47859
47869
|
}
|
|
47860
47870
|
},
|
|
47861
|
-
created: function created() {},
|
|
47862
47871
|
mounted: function mounted() {},
|
|
47863
47872
|
methods: {
|
|
47864
47873
|
textOverflowEllipsis: textOverflowEllipsis,
|
|
@@ -47876,8 +47885,8 @@
|
|
|
47876
47885
|
onClickExpire: function onClickExpire(o) {
|
|
47877
47886
|
this.$emit('expire', o);
|
|
47878
47887
|
},
|
|
47879
|
-
|
|
47880
|
-
if (item.copy) {
|
|
47888
|
+
onClickCopy: function onClickCopy(item) {
|
|
47889
|
+
if (item.text && item.copy) {
|
|
47881
47890
|
appBridge.copyString(item.text);
|
|
47882
47891
|
}
|
|
47883
47892
|
},
|
|
@@ -47948,7 +47957,23 @@
|
|
|
47948
47957
|
$event.stopPropagation();
|
|
47949
47958
|
}
|
|
47950
47959
|
}
|
|
47951
|
-
}, [_vm.
|
|
47960
|
+
}, [_vm.explainData && (_vm.explainData.title || _vm.explainData.text) ? _c('section', {
|
|
47961
|
+
staticClass: "bxt-explain"
|
|
47962
|
+
}, [_vm.explainData.title ? _c('div', {
|
|
47963
|
+
staticClass: "bxt-explain-text bxt-bottom-border"
|
|
47964
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.title) + "\n ")]) : _vm._e(), _vm.explainData.text ? _c('div', {
|
|
47965
|
+
staticClass: "bxt-explain-text bxt-bottom-border",
|
|
47966
|
+
class: [_vm.explainData.copy ? 'bxt-explain-text--copy' : ''],
|
|
47967
|
+
on: {
|
|
47968
|
+
"click": function click($event) {
|
|
47969
|
+
return _vm.onClickCopy(_vm.explainData);
|
|
47970
|
+
}
|
|
47971
|
+
}
|
|
47972
|
+
}, [_c('div', {
|
|
47973
|
+
staticClass: "bxt-explain-text-wrapper"
|
|
47974
|
+
}, [_c('div', {
|
|
47975
|
+
staticClass: "bxt-explain-text-content"
|
|
47976
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])])]) : _vm._e()]) : _vm._e(), _vm.expireData ? _c('section', {
|
|
47952
47977
|
staticClass: "bxt-expire bxt-bottom-border"
|
|
47953
47978
|
}, [_c('div', {
|
|
47954
47979
|
staticClass: "bxt-title"
|
|
@@ -47986,21 +48011,11 @@
|
|
|
47986
48011
|
}
|
|
47987
48012
|
}
|
|
47988
48013
|
}, [_vm._v(_vm._s(o.name))]);
|
|
47989
|
-
}), 1)], 1) : _vm._e(), _vm.
|
|
47990
|
-
staticClass: "bxt-explain bxt-bottom-border",
|
|
47991
|
-
class: [_vm.explainData.copy ? 'copy' : '']
|
|
47992
|
-
}, [_c('div', {
|
|
47993
|
-
staticClass: "bxt-explain-text",
|
|
47994
|
-
on: {
|
|
47995
|
-
"click": function click($event) {
|
|
47996
|
-
return _vm.onClickExplain(_vm.explainData);
|
|
47997
|
-
}
|
|
47998
|
-
}
|
|
47999
|
-
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])]) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48014
|
+
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
48000
48015
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48001
48016
|
}, [_c('div', {
|
|
48002
48017
|
staticClass: "bxt-share-wrapper",
|
|
48003
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
48018
|
+
class: [_vm.shareOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
48004
48019
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
48005
48020
|
return _c('figure', {
|
|
48006
48021
|
key: o.action,
|
|
@@ -48021,7 +48036,7 @@
|
|
|
48021
48036
|
staticClass: "bxt-share bxt-bottom-border"
|
|
48022
48037
|
}, [_c('div', {
|
|
48023
48038
|
staticClass: "bxt-share-wrapper",
|
|
48024
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
48039
|
+
class: [_vm.actionOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
48025
48040
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
48026
48041
|
return _c('figure', {
|
|
48027
48042
|
key: o.action,
|
|
@@ -48094,7 +48109,7 @@
|
|
|
48094
48109
|
install(window.Vue);
|
|
48095
48110
|
}
|
|
48096
48111
|
var index = {
|
|
48097
|
-
version: '3.1.
|
|
48112
|
+
version: '3.1.2',
|
|
48098
48113
|
install: install
|
|
48099
48114
|
};
|
|
48100
48115
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{margin:0;padding:0}body{color:#333}dl,ul{list-style:none}img{max-width:100%}a{color:#333;display:block;text-decoration:none}em{font-style:normal}article,aside,footer,header,nav,section{display:block}.bxt-share-sheet{background-color:transparent;color:#333}.bxt-share-sheet .bxt-share-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-box-pack:end;-moz-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-justify-content:flex-end;justify-content:flex-end;left:0;overflow:hidden;position:absolute;width:100%}.bxt-share-sheet .bxt-share-image{padding:30px 40px}.bxt-share-sheet .bxt-share-image img{width:100%}.bxt-share-sheet .bxt-share-content{background:#fff}.bxt-share-sheet .bxt-expire{padding:15px 15px 15px 21px}.bxt-share-sheet .bxt-expire .bxt-title{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.bxt-share-sheet .bxt-expire .bxt-title .bxt-tx{font-size:14px;font-weight:700;font-weight:500;line-height:17px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description{color:#666;font-size:13px;line-height:16px;margin-left:18px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description .van-icon{color:#b5b5b5;font-size:15px;vertical-align:middle}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description span{margin-left:3px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group{margin-top:6px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%;margin-right:0;margin-top:12px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__icon{color:#0a64fe;font-size:15px;line-height:20px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__label{margin-left:6px;vertical-align:middle}.bxt-share-sheet .bxt-explain{color:#666;font-size:13px;line-height:19px
|
|
1
|
+
*{margin:0;padding:0}body{color:#333}dl,ul{list-style:none}img{max-width:100%}a{color:#333;display:block;text-decoration:none}em{font-style:normal}article,aside,footer,header,nav,section{display:block}.bxt-share-sheet{background-color:transparent;color:#333}.bxt-share-sheet .bxt-share-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-box-pack:end;-moz-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-justify-content:flex-end;justify-content:flex-end;left:0;overflow:hidden;position:absolute;width:100%}.bxt-share-sheet .bxt-share-image{padding:30px 40px}.bxt-share-sheet .bxt-share-image img{width:100%}.bxt-share-sheet .bxt-share-content{background:#fff}.bxt-share-sheet .bxt-expire{padding:15px 15px 15px 21px}.bxt-share-sheet .bxt-expire .bxt-title{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.bxt-share-sheet .bxt-expire .bxt-title .bxt-tx{font-size:14px;font-weight:700;font-weight:500;line-height:17px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description{color:#666;font-size:13px;line-height:16px;margin-left:18px}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description .van-icon{color:#b5b5b5;font-size:15px;vertical-align:middle}.bxt-share-sheet .bxt-expire .bxt-title .bxt-description span{margin-left:3px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group{margin-top:6px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 32%;-ms-flex:0 0 32%;flex:0 0 32%;margin-right:0;margin-top:12px}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__icon{color:#0a64fe;font-size:15px;line-height:20px;vertical-align:middle}.bxt-share-sheet .bxt-expire .van-radio-group .van-radio .van-radio__label{margin-left:6px;vertical-align:middle}.bxt-share-sheet .bxt-explain{color:#666;font-size:13px;line-height:19px}.bxt-share-sheet .bxt-explain-title{padding:15px 21px}.bxt-share-sheet .bxt-explain-text{padding:12px 15px}.bxt-share-sheet .bxt-explain-text .bxt-explain-text-content{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;width:100%}.bxt-share-sheet .bxt-explain-text--copy{padding:12px 15px}.bxt-share-sheet .bxt-explain-text--copy .bxt-explain-text-wrapper{background:#f5f5f5;border-radius:6px;padding:12px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center;overflow:auto;padding:20px 15px}.bxt-share-sheet .bxt-share .bxt-share-wrapper::-webkit-scrollbar{display:none}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure{-webkit-box-flex:0;-moz-box-flex:0;-webkit-box-orient:vertical;-webkit-box-direction:normal;-moz-box-orient:vertical;-moz-box-direction:normal;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure,.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image{background:#f3f7f9;border-radius:50px;height:50px;overflow:hidden;width:50px}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure .bxt-empty-image img{display:block;margin:0 auto;width:100%}.bxt-share-sheet .bxt-share .bxt-share-wrapper figure figcaption{color:#666;font-size:12px;height:15px;line-height:15px;margin-top:5px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.bxt-share-sheet .bxt-share .bxt-share-wrapper.more{-webkit-box-pack:start;-moz-box-pack:start;-ms-flex-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.bxt-share-sheet .bxt-share .bxt-share-wrapper.more figure{-webkit-box-flex:0;-moz-box-flex:0;-webkit-flex:0 0 23%;-ms-flex:0 0 23%;flex:0 0 23%}.bxt-share-sheet .bxt-fooer:after{content:"";display:block;height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom)}.bxt-share-sheet .bxt-fooer{font-size:15px;line-height:18px;padding:16px 15px;text-align:center}.bxt-share-sheet .bxt-bottom-border{overflow:hidden;position:relative}.bxt-share-sheet .bxt-bottom-border:before{border-bottom:1px solid #e5e5e5;bottom:0;content:"";left:15px;position:absolute;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left center;transform-origin:left center;width:200%}
|
package/lib/share-sheet/index.js
CHANGED
|
@@ -8762,9 +8762,18 @@
|
|
|
8762
8762
|
});
|
|
8763
8763
|
}
|
|
8764
8764
|
return options;
|
|
8765
|
+
},
|
|
8766
|
+
actionTypeLength: function actionTypeLength() {
|
|
8767
|
+
return [this.shareOptions, this.actionOptions].filter(function (e) {
|
|
8768
|
+
return e.length;
|
|
8769
|
+
}).length;
|
|
8770
|
+
}
|
|
8771
|
+
},
|
|
8772
|
+
created: function created() {
|
|
8773
|
+
if (this.explainData) {
|
|
8774
|
+
this.onClickCopy(this.explainData);
|
|
8765
8775
|
}
|
|
8766
8776
|
},
|
|
8767
|
-
created: function created() {},
|
|
8768
8777
|
mounted: function mounted() {},
|
|
8769
8778
|
methods: {
|
|
8770
8779
|
textOverflowEllipsis: textOverflowEllipsis,
|
|
@@ -8782,8 +8791,8 @@
|
|
|
8782
8791
|
onClickExpire: function onClickExpire(o) {
|
|
8783
8792
|
this.$emit('expire', o);
|
|
8784
8793
|
},
|
|
8785
|
-
|
|
8786
|
-
if (item.copy) {
|
|
8794
|
+
onClickCopy: function onClickCopy(item) {
|
|
8795
|
+
if (item.text && item.copy) {
|
|
8787
8796
|
appBridge.copyString(item.text);
|
|
8788
8797
|
}
|
|
8789
8798
|
},
|
|
@@ -8866,7 +8875,23 @@
|
|
|
8866
8875
|
$event.stopPropagation();
|
|
8867
8876
|
}
|
|
8868
8877
|
}
|
|
8869
|
-
}, [_vm.
|
|
8878
|
+
}, [_vm.explainData && (_vm.explainData.title || _vm.explainData.text) ? _c('section', {
|
|
8879
|
+
staticClass: "bxt-explain"
|
|
8880
|
+
}, [_vm.explainData.title ? _c('div', {
|
|
8881
|
+
staticClass: "bxt-explain-text bxt-bottom-border"
|
|
8882
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.title) + "\n ")]) : _vm._e(), _vm.explainData.text ? _c('div', {
|
|
8883
|
+
staticClass: "bxt-explain-text bxt-bottom-border",
|
|
8884
|
+
class: [_vm.explainData.copy ? 'bxt-explain-text--copy' : ''],
|
|
8885
|
+
on: {
|
|
8886
|
+
"click": function click($event) {
|
|
8887
|
+
return _vm.onClickCopy(_vm.explainData);
|
|
8888
|
+
}
|
|
8889
|
+
}
|
|
8890
|
+
}, [_c('div', {
|
|
8891
|
+
staticClass: "bxt-explain-text-wrapper"
|
|
8892
|
+
}, [_c('div', {
|
|
8893
|
+
staticClass: "bxt-explain-text-content"
|
|
8894
|
+
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])])]) : _vm._e()]) : _vm._e(), _vm.expireData ? _c('section', {
|
|
8870
8895
|
staticClass: "bxt-expire bxt-bottom-border"
|
|
8871
8896
|
}, [_c('div', {
|
|
8872
8897
|
staticClass: "bxt-title"
|
|
@@ -8904,21 +8929,11 @@
|
|
|
8904
8929
|
}
|
|
8905
8930
|
}
|
|
8906
8931
|
}, [_vm._v(_vm._s(o.name))]);
|
|
8907
|
-
}), 1)], 1) : _vm._e(), _vm.
|
|
8908
|
-
staticClass: "bxt-explain bxt-bottom-border",
|
|
8909
|
-
class: [_vm.explainData.copy ? 'copy' : '']
|
|
8910
|
-
}, [_c('div', {
|
|
8911
|
-
staticClass: "bxt-explain-text",
|
|
8912
|
-
on: {
|
|
8913
|
-
"click": function click($event) {
|
|
8914
|
-
return _vm.onClickExplain(_vm.explainData);
|
|
8915
|
-
}
|
|
8916
|
-
}
|
|
8917
|
-
}, [_vm._v("\n " + _vm._s(_vm.explainData.text) + "\n ")])]) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
8932
|
+
}), 1)], 1) : _vm._e(), _vm._t("header"), _vm.shareOptions.length ? _c('section', {
|
|
8918
8933
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8919
8934
|
}, [_c('div', {
|
|
8920
8935
|
staticClass: "bxt-share-wrapper",
|
|
8921
|
-
class: [_vm.shareOptions.length > 4 ? 'more' : '']
|
|
8936
|
+
class: [_vm.shareOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
8922
8937
|
}, _vm._l(_vm.shareOptions, function (o) {
|
|
8923
8938
|
return _c('figure', {
|
|
8924
8939
|
key: o.action,
|
|
@@ -8939,7 +8954,7 @@
|
|
|
8939
8954
|
staticClass: "bxt-share bxt-bottom-border"
|
|
8940
8955
|
}, [_c('div', {
|
|
8941
8956
|
staticClass: "bxt-share-wrapper",
|
|
8942
|
-
class: [_vm.actionOptions.length > 4 ? 'more' : '']
|
|
8957
|
+
class: [_vm.actionOptions.length > 4 || _vm.actionTypeLength > 1 ? 'more' : '']
|
|
8943
8958
|
}, _vm._l(_vm.actionOptions, function (o) {
|
|
8944
8959
|
return _c('figure', {
|
|
8945
8960
|
key: o.action,
|
package/package.json
CHANGED
package/packages/index.ts
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
@action="onAction"
|
|
13
13
|
>
|
|
14
14
|
<template v-slot:header>
|
|
15
|
-
<h4 class="bxt-bottom-border" style="
|
|
16
|
-
|
|
15
|
+
<h4 class="bxt-bottom-border" style="padding: 15px;">
|
|
16
|
+
<van-checkbox v-model="checked">自定义 slot</van-checkbox>
|
|
17
17
|
</h4>
|
|
18
18
|
</template>
|
|
19
19
|
</ShareSheet>
|
|
@@ -39,14 +39,17 @@ export default {
|
|
|
39
39
|
data() {
|
|
40
40
|
return {
|
|
41
41
|
visible: true,
|
|
42
|
+
checked: false,
|
|
42
43
|
introduceImage: 'https://media.winbaoxian.com/assets-uploader/%E7%BC%96%E7%BB%84%202%402x-1774348527831.png',
|
|
43
44
|
expireData: {
|
|
44
45
|
value: 'NEVER',
|
|
45
46
|
urlAfterExpire: 'https://pbf.winbaoxian.cn/planBook/projectGroup/feedback/index.html'
|
|
46
47
|
},
|
|
47
48
|
explainData: {
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
title: '分享说明',
|
|
50
|
+
text:
|
|
51
|
+
'分享后推广费及奖励将不可见,请放心分享,用户投保成功,推广费及奖励可拿。分享后推广费及奖励将不可见,请放心分享,用户投保成功,推广费及奖励可拿。分享后推广费及奖励将不可见,请放心分享,用户投保成功,推广费及奖励可拿。',
|
|
52
|
+
copy: true
|
|
50
53
|
},
|
|
51
54
|
shareActions: [
|
|
52
55
|
{
|
|
@@ -58,24 +61,24 @@ export default {
|
|
|
58
61
|
{
|
|
59
62
|
action: 'wechat_timeline',
|
|
60
63
|
...shareInfo()
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
action: 'qq_friends',
|
|
64
|
-
...shareInfo()
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
action: 'shareMiniProgram',
|
|
68
|
-
webPageUrl: 'https://www.winbaoxian.com/', // 兼容低版本的网页链接
|
|
69
|
-
userName: 'gh_db166d39960f', // 小程序原始id
|
|
70
|
-
path: '/pages/result/index?uuid=e21d73a0c20d4900a765237a4907a82b&theme=theme_pbhzczdlw&t=1', // 小程序页面路径
|
|
71
|
-
title: '买保险优选服务', // 小程序消息title
|
|
72
|
-
description: '小程序消息描述信息', // 小程序消息desc
|
|
73
|
-
imageUrl: 'https://img.winbaoxian.com/static/app-zx-rule-pdf/allrule/20250325182134792.png' // 小程序消息封面图片,小于128k
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
action: 'system_share',
|
|
77
|
-
...shareInfo()
|
|
78
64
|
}
|
|
65
|
+
// {
|
|
66
|
+
// action: 'qq_friends',
|
|
67
|
+
// ...shareInfo()
|
|
68
|
+
// },
|
|
69
|
+
// {
|
|
70
|
+
// action: 'shareMiniProgram',
|
|
71
|
+
// webPageUrl: 'https://www.winbaoxian.com/', // 兼容低版本的网页链接
|
|
72
|
+
// userName: 'gh_db166d39960f', // 小程序原始id
|
|
73
|
+
// path: '/pages/result/index?uuid=e21d73a0c20d4900a765237a4907a82b&theme=theme_pbhzczdlw&t=1', // 小程序页面路径
|
|
74
|
+
// title: '买保险优选服务', // 小程序消息title
|
|
75
|
+
// description: '小程序消息描述信息', // 小程序消息desc
|
|
76
|
+
// imageUrl: 'https://img.winbaoxian.com/static/app-zx-rule-pdf/allrule/20250325182134792.png' // 小程序消息封面图片,小于128k
|
|
77
|
+
// },
|
|
78
|
+
// {
|
|
79
|
+
// action: 'system_share',
|
|
80
|
+
// ...shareInfo()
|
|
81
|
+
// }
|
|
79
82
|
],
|
|
80
83
|
featureActions: [
|
|
81
84
|
{
|
|
@@ -86,16 +86,33 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
& .bxt-explain {
|
|
89
|
-
padding: 15px 21px;
|
|
90
89
|
font-size: 13px;
|
|
91
90
|
line-height: 19px;
|
|
92
91
|
color: #666;
|
|
93
92
|
}
|
|
94
93
|
|
|
95
|
-
|
|
94
|
+
|
|
95
|
+
& .bxt-explain-title {
|
|
96
|
+
padding: 15px 21px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& .bxt-explain-text {
|
|
100
|
+
padding: 12px 15px;
|
|
101
|
+
|
|
102
|
+
& .bxt-explain-text-content {
|
|
103
|
+
width: 100%;
|
|
104
|
+
display: -webkit-box;
|
|
105
|
+
-webkit-line-clamp: 3;
|
|
106
|
+
-webkit-box-orient: vertical;
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
text-overflow: ellipsis;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
& .bxt-explain-text--copy {
|
|
96
113
|
padding: 12px 15px;
|
|
97
114
|
|
|
98
|
-
& .bxt-explain-text {
|
|
115
|
+
& .bxt-explain-text-wrapper {
|
|
99
116
|
padding: 12px 15px;
|
|
100
117
|
background: #f5f5f5;
|
|
101
118
|
border-radius: 6px;
|
|
@@ -5,6 +5,23 @@
|
|
|
5
5
|
<img :src="introduceImage" alt="introduce" />
|
|
6
6
|
</section>
|
|
7
7
|
<section class="bxt-share-content" @click.stop>
|
|
8
|
+
<section v-if="explainData && (explainData.title || explainData.text)" class="bxt-explain">
|
|
9
|
+
<div v-if="explainData.title" class="bxt-explain-text bxt-bottom-border">
|
|
10
|
+
{{ explainData.title }}
|
|
11
|
+
</div>
|
|
12
|
+
<div
|
|
13
|
+
v-if="explainData.text"
|
|
14
|
+
class="bxt-explain-text bxt-bottom-border"
|
|
15
|
+
:class="[explainData.copy ? 'bxt-explain-text--copy' : '']"
|
|
16
|
+
@click="onClickCopy(explainData)"
|
|
17
|
+
>
|
|
18
|
+
<div class="bxt-explain-text-wrapper">
|
|
19
|
+
<div class="bxt-explain-text-content">
|
|
20
|
+
{{ explainData.text }}
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</section>
|
|
8
25
|
<section v-if="expireData" class="bxt-expire bxt-bottom-border">
|
|
9
26
|
<div class="bxt-title">
|
|
10
27
|
<div class="bxt-tx">分享有效期</div>
|
|
@@ -17,14 +34,9 @@
|
|
|
17
34
|
<van-radio v-for="o in expireOptions" :key="o.value" :name="o.value" @click="onClickExpire(o)">{{ o.name }}</van-radio>
|
|
18
35
|
</van-radio-group>
|
|
19
36
|
</section>
|
|
20
|
-
<section v-if="explainData && explainData.text" class="bxt-explain bxt-bottom-border" :class="[explainData.copy ? 'copy' : '']">
|
|
21
|
-
<div class="bxt-explain-text" @click="onClickExplain(explainData)">
|
|
22
|
-
{{ explainData.text }}
|
|
23
|
-
</div>
|
|
24
|
-
</section>
|
|
25
37
|
<slot name="header"></slot>
|
|
26
38
|
<section v-if="shareOptions.length" class="bxt-share bxt-bottom-border">
|
|
27
|
-
<div class="bxt-share-wrapper" :class="[shareOptions.length > 4 ? 'more' : '']">
|
|
39
|
+
<div class="bxt-share-wrapper" :class="[shareOptions.length > 4 || actionTypeLength > 1 ? 'more' : '']">
|
|
28
40
|
<figure v-for="o in shareOptions" :key="o.action" @click="onClickShare(o)">
|
|
29
41
|
<div class="bxt-empty-image">
|
|
30
42
|
<img v-if="o.actionIcon" :src="o.actionIcon" alt="icon" />
|
|
@@ -34,7 +46,7 @@
|
|
|
34
46
|
</div>
|
|
35
47
|
</section>
|
|
36
48
|
<section v-if="actionOptions.length" class="bxt-share bxt-bottom-border">
|
|
37
|
-
<div class="bxt-share-wrapper" :class="[actionOptions.length > 4 ? 'more' : '']">
|
|
49
|
+
<div class="bxt-share-wrapper" :class="[actionOptions.length > 4 || actionTypeLength > 1 ? 'more' : '']">
|
|
38
50
|
<figure v-for="o in actionOptions" :key="o.action" @click="onClickAction(o)">
|
|
39
51
|
<div class="bxt-empty-image">
|
|
40
52
|
<img v-if="o.actionIcon" :src="o.actionIcon" alt="icon" />
|
|
@@ -120,9 +132,16 @@ export default {
|
|
|
120
132
|
});
|
|
121
133
|
}
|
|
122
134
|
return options;
|
|
135
|
+
},
|
|
136
|
+
actionTypeLength() {
|
|
137
|
+
return [this.shareOptions, this.actionOptions].filter(e => e.length).length;
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
created() {
|
|
141
|
+
if (this.explainData) {
|
|
142
|
+
this.onClickCopy(this.explainData);
|
|
123
143
|
}
|
|
124
144
|
},
|
|
125
|
-
created() {},
|
|
126
145
|
mounted() {},
|
|
127
146
|
methods: {
|
|
128
147
|
textOverflowEllipsis,
|
|
@@ -140,8 +159,8 @@ export default {
|
|
|
140
159
|
onClickExpire(o) {
|
|
141
160
|
this.$emit('expire', o);
|
|
142
161
|
},
|
|
143
|
-
|
|
144
|
-
if (item.copy) {
|
|
162
|
+
onClickCopy(item) {
|
|
163
|
+
if (item.text && item.copy) {
|
|
145
164
|
appBridge.copyString(item.text);
|
|
146
165
|
}
|
|
147
166
|
},
|