add uncompleted ticket list in member page
This commit is contained in:
@@ -15,6 +15,7 @@ export class TicketListItem {
|
||||
status: FixStatus;
|
||||
createAt: moment.Moment;
|
||||
iconMap: Map<FixStatus, string>;
|
||||
isMember: boolean;
|
||||
|
||||
constructor(
|
||||
id: number,
|
||||
@@ -22,12 +23,14 @@ export class TicketListItem {
|
||||
model: string,
|
||||
status: FixStatus,
|
||||
createAt: moment.Moment,
|
||||
isMember: boolean,
|
||||
) {
|
||||
this.id = id;
|
||||
this.brand = brand;
|
||||
this.model = model;
|
||||
this.status = status;
|
||||
this.createAt = createAt;
|
||||
this.isMember = isMember;
|
||||
this.iconMap = new Map<FixStatus, string>([
|
||||
[1, repair],
|
||||
[2, repair],
|
||||
@@ -48,7 +51,11 @@ export class TicketListItem {
|
||||
thumb={this.iconMap.get(this.status)}
|
||||
onClick={() => {
|
||||
Taro.navigateTo({
|
||||
url: '/pages/TicketDetail/TicketDetail?id=' + this.id,
|
||||
url:
|
||||
'/pages/TicketDetail/TicketDetail?id=' +
|
||||
this.id +
|
||||
'&isMember=' +
|
||||
this.isMember,
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user