feat: 1.0.4 版本增加分享按钮
This commit is contained in:
@@ -84,4 +84,8 @@
|
|||||||
|
|
||||||
.toy-icon-wechat-o:before {
|
.toy-icon-wechat-o:before {
|
||||||
content: "\e727";
|
content: "\e727";
|
||||||
|
}
|
||||||
|
|
||||||
|
.toy-icon-wechat:before {
|
||||||
|
content: "\e727";
|
||||||
}
|
}
|
||||||
@@ -92,9 +92,9 @@ page {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 190rpx;
|
height: 190rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: space-between;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.25);
|
box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.25);
|
||||||
padding-top: 24rpx;
|
padding: 24rpx 30rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@@ -90,9 +90,19 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="btn-area">
|
<view class="btn-area">
|
||||||
<toy-button
|
<toy-button
|
||||||
|
openType="share"
|
||||||
type="green"
|
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"
|
bind:click="exportToPrint"
|
||||||
width="680rpx"
|
width="400rpx"
|
||||||
disabled="{{cardList.length <= 0}}"
|
disabled="{{cardList.length <= 0}}"
|
||||||
icon="download"
|
icon="download"
|
||||||
icon-class-prefix="toy-icon">
|
icon-class-prefix="toy-icon">
|
||||||
|
|||||||
@@ -10,6 +10,10 @@ Component({
|
|||||||
type: String,
|
type: String,
|
||||||
value: 'default', // primary, green, white
|
value: 'default', // primary, green, white
|
||||||
},
|
},
|
||||||
|
openType: {
|
||||||
|
type: String,
|
||||||
|
value: '',
|
||||||
|
},
|
||||||
plain: {
|
plain: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
value: false, // 是否朴素按钮
|
value: false, // 是否朴素按钮
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
data-loading="{{loading}}"
|
data-loading="{{loading}}"
|
||||||
style="{{style}};{{width ? 'width:' + width + ';' : ''}};{{height ? 'height:' + height + ';' : ''}}"
|
style="{{style}};{{width ? 'width:' + width + ';' : ''}};{{height ? 'height:' + height + ';' : ''}}"
|
||||||
session-from="{{ sessionFrom }}"
|
session-from="{{ sessionFrom }}"
|
||||||
|
open-type="{{ disabled || loading ? '' : openType }}"
|
||||||
send-message-title="{{ sendMessageTitle }}"
|
send-message-title="{{ sendMessageTitle }}"
|
||||||
send-message-path="{{ sendMessagePath }}"
|
send-message-path="{{ sendMessagePath }}"
|
||||||
send-message-img="{{ sendMessageImg }}"
|
send-message-img="{{ sendMessageImg }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user