开通会员

This commit is contained in:
limqhz
2022-12-13 17:12:13 +08:00
parent c0c88244c3
commit 709ffc6f42
3 changed files with 7 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import type { CollapseValue, TdCollapseProps } from './type';
export interface CollapseProps extends TdCollapseProps {
}
export default class Collapse extends SuperComponent {
// @ts-ignore
options: {
addGlobalClass: boolean;
};

View File

@@ -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',

View File

@@ -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>