mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-27 02:30:43 +00:00
!3504 橘子购物sample代码 arkTs规范整改
Merge pull request !3504 from xuwenbin/master
This commit is contained in:
commit
c77247bec1
@ -14,13 +14,20 @@
|
||||
*/
|
||||
|
||||
export class SwiperPicturesModel {
|
||||
constructor(public src: Resource) {
|
||||
public src: Resource;
|
||||
|
||||
constructor(src: Resource) {
|
||||
this.src = src;
|
||||
}
|
||||
}
|
||||
|
||||
export class CommentModel {
|
||||
constructor(public url: Resource, public user: string, public img: Resource, public text: string) {
|
||||
public url: Resource;
|
||||
public user: string;
|
||||
public img: Resource;
|
||||
public text: string;
|
||||
|
||||
constructor(url: Resource, user: string, img: Resource, text: string) {
|
||||
this.url = url;
|
||||
this.user = user;
|
||||
this.img = img;
|
||||
@ -29,7 +36,14 @@ export class CommentModel {
|
||||
}
|
||||
|
||||
export class ProductDataModel {
|
||||
constructor(public id: number, public uri: Resource, public title: Resource, public info: Resource, public labels: Resource, public price: Resource) {
|
||||
public id: number;
|
||||
public uri: Resource;
|
||||
public title: Resource;
|
||||
public info: Resource;
|
||||
public labels: Resource;
|
||||
public price: Resource;
|
||||
|
||||
constructor(id: number, uri: Resource, title: Resource, info: Resource, labels: Resource, price: Resource) {
|
||||
this.id = id;
|
||||
this.uri = uri;
|
||||
this.info = info;
|
||||
|
Loading…
Reference in New Issue
Block a user