开通会员
This commit is contained in:
1
components/collapse/collapse.d.ts
vendored
1
components/collapse/collapse.d.ts
vendored
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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