feat: 1.0.4 版本增加分享按钮

This commit is contained in:
2025-07-23 09:55:58 +08:00
parent ef39c86d5f
commit ee80577e85
5 changed files with 22 additions and 3 deletions
+4
View File
@@ -85,3 +85,7 @@
.toy-icon-wechat-o:before {
content: "\e727";
}
.toy-icon-wechat:before {
content: "\e727";
}
+2 -2
View File
@@ -92,9 +92,9 @@ page {
width: 100%;
height: 190rpx;
display: flex;
justify-content: center;
justify-content: space-between;
background-color: #fff;
box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.25);
padding-top: 24rpx;
padding: 24rpx 30rpx;
box-sizing: border-box;
}
+11 -1
View File
@@ -90,9 +90,19 @@
</view>
<view class="btn-area">
<toy-button
openType="share"
type="green"
bind:click="onShareAppMessage"
width="240rpx"
icon="wechat"
iconSize="50rpx"
icon-class-prefix="toy-icon">
分享
</toy-button>
<toy-button
type="primary"
bind:click="exportToPrint"
width="680rpx"
width="400rpx"
disabled="{{cardList.length <= 0}}"
icon="download"
icon-class-prefix="toy-icon">
+4
View File
@@ -10,6 +10,10 @@ Component({
type: String,
value: 'default', // primary, green, white
},
openType: {
type: String,
value: '',
},
plain: {
type: Boolean,
value: false, // 是否朴素按钮
+1
View File
@@ -9,6 +9,7 @@
data-loading="{{loading}}"
style="{{style}};{{width ? 'width:' + width + ';' : ''}};{{height ? 'height:' + height + ';' : ''}}"
session-from="{{ sessionFrom }}"
open-type="{{ disabled || loading ? '' : openType }}"
send-message-title="{{ sendMessageTitle }}"
send-message-path="{{ sendMessagePath }}"
send-message-img="{{ sendMessageImg }}"