开通会员

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 interface CollapseProps extends TdCollapseProps {
} }
export default class Collapse extends SuperComponent { export default class Collapse extends SuperComponent {
// @ts-ignore
options: { options: {
addGlobalClass: boolean; addGlobalClass: boolean;
}; };

View File

@@ -7,6 +7,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
isClick: false,
aIconList: ['check-rectangle','star','notification-filled','circle'], aIconList: ['check-rectangle','star','notification-filled','circle'],
}, },
toast(option) { toast(option) {
@@ -17,6 +18,9 @@ Page({
}); });
}, },
startVipButton(e){ startVipButton(e){
this.setData({
isClick: true
})
this.toast({ this.toast({
message: '已获得会员资格!', message: '已获得会员资格!',
theme: 'success', theme: 'success',

View File

@@ -1,7 +1,7 @@
<!--pages/message/index.wxml--> <!--pages/message/index.wxml-->
<t-message id="t-message" /> <t-message id="t-message" />
<t-empty t-class="empty-cls" icon="info-circle-filled" description="开通会员解锁完整功能"> <t-empty t-class="empty-cls" icon="{{isClick ? 'check-circle' : 'error-circle'}}" description="开通会员解锁完整功能">
<t-button slot="action" theme="danger" variant="plain" bind:tap="startVipButton">开通会员</t-button> <t-button wx:if="{{!isClick}}" slot="action" theme="danger" variant="plain" bind:tap="startVipButton">开通会员</t-button>
</t-empty> </t-empty>
<t-toast id="t-toast" /> <t-toast id="t-toast" />
<view> <view>