开通会员
This commit is contained in:
@@ -7,6 +7,7 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
isClick: false,
|
||||
aIconList: ['check-rectangle','star','notification-filled','circle'],
|
||||
},
|
||||
toast(option) {
|
||||
@@ -17,6 +18,9 @@ Page({
|
||||
});
|
||||
},
|
||||
startVipButton(e){
|
||||
this.setData({
|
||||
isClick: true
|
||||
})
|
||||
this.toast({
|
||||
message: '已获得会员资格!',
|
||||
theme: 'success',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!--pages/message/index.wxml-->
|
||||
<t-message id="t-message" />
|
||||
<t-empty t-class="empty-cls" icon="info-circle-filled" description="开通会员解锁完整功能">
|
||||
<t-button slot="action" theme="danger" variant="plain" bind:tap="startVipButton">开通会员</t-button>
|
||||
<t-empty t-class="empty-cls" icon="{{isClick ? 'check-circle' : 'error-circle'}}" description="开通会员解锁完整功能">
|
||||
<t-button wx:if="{{!isClick}}" slot="action" theme="danger" variant="plain" bind:tap="startVipButton">开通会员</t-button>
|
||||
</t-empty>
|
||||
<t-toast id="t-toast" />
|
||||
<view>
|
||||
|
||||
Reference in New Issue
Block a user