修改:协议和配置表
This commit is contained in:
@@ -26,7 +26,7 @@ export class DetailImageItem extends Component {
|
||||
uitransform: UITransform;
|
||||
category: number;
|
||||
id: number;
|
||||
index: number;
|
||||
resId: number;
|
||||
type : number;
|
||||
|
||||
onLoad() {
|
||||
@@ -92,13 +92,13 @@ export class DetailImageItem extends Component {
|
||||
type: number,
|
||||
category: number,
|
||||
id: number,
|
||||
index: number
|
||||
resId: number
|
||||
) {
|
||||
this.base = base;
|
||||
this.type = type;
|
||||
this.category = category;
|
||||
this.id = id;
|
||||
this.index = index;
|
||||
this.resId = resId;
|
||||
this.lock.active = false;
|
||||
this.question.active = true; // 显示问号,表示加载中
|
||||
|
||||
@@ -106,14 +106,14 @@ export class DetailImageItem extends Component {
|
||||
let imgPath = "";
|
||||
if (type === 1) {
|
||||
// 图片
|
||||
this.url = girlData.getGrilPhotoPic(this.category.toString(), this.id, this.index);
|
||||
this.url = girlData.getGrilPhotoPic(this.category.toString(), this.id, this.resId);
|
||||
imgPath = this.url;
|
||||
this.isImage = true;
|
||||
} else if (type === 2) {
|
||||
// 视频
|
||||
this.isImage = false;
|
||||
this.url = girlData.getGrilVideoPath(this.category.toString(), this.id, this.index);
|
||||
let videoPrice = girlData.getGrilVideoPrice(this.category.toString(), this.id, this.index);
|
||||
this.url = girlData.getGrilVideoPath(this.category.toString(), this.id, this.resId);
|
||||
let videoPrice = girlData.getGrilVideoPrice(this.category.toString(), this.id, this.resId);
|
||||
if (videoPrice > 0) {
|
||||
imgPath = this.url + "_thumbnail_blur";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user