协议调试
This commit is contained in:
@@ -44,7 +44,7 @@ export class DetailImageItem extends Component {
|
||||
|
||||
girlId: number;
|
||||
resId: number;
|
||||
type: number;
|
||||
type: proto.cs.EnmResType;
|
||||
|
||||
onLoad() {
|
||||
GButton.BandClick(this.node, this.onClickThis, this);
|
||||
@@ -64,10 +64,10 @@ export class DetailImageItem extends Component {
|
||||
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
// 是否可见,不可见代表需要解锁
|
||||
let isVisible = false;
|
||||
if (this.type === 1) {
|
||||
if (this.type === proto.cs.EnmResType.ERT_Image) {
|
||||
// 图片
|
||||
isVisible = girlData.isGirlPhotoVisible(this.category.toString(), this.girlId, this.resId);
|
||||
} else if (this.type === 2) {
|
||||
} else if (this.type === proto.cs.EnmResType.ERT_Video) {
|
||||
// 视频
|
||||
isVisible = girlData.isGirlVideoVisible(this.category.toString(), this.girlId, this.resId);
|
||||
}
|
||||
@@ -137,7 +137,7 @@ export class DetailImageItem extends Component {
|
||||
|
||||
refresh(
|
||||
base: GirlDetailPanel,
|
||||
type: number,
|
||||
type: proto.cs.EnmResType,
|
||||
category: number,
|
||||
id: number,
|
||||
resId: number
|
||||
@@ -151,12 +151,12 @@ export class DetailImageItem extends Component {
|
||||
|
||||
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
let imgPath = "";
|
||||
this.video.enabled = type === 2;
|
||||
this.priceFrame.active = type === 2;
|
||||
this.video.enabled = type === proto.cs.EnmResType.ERT_Video;
|
||||
this.priceFrame.active = type === proto.cs.EnmResType.ERT_Video;
|
||||
let price = 0;
|
||||
// 是否可见,不可见代表需要解锁
|
||||
let isVisible = false;
|
||||
if (type === 1) {
|
||||
if (type === proto.cs.EnmResType.ERT_Image) {
|
||||
// 图片
|
||||
price = girlData.getGrilPhotoOriginalPrice(this.category.toString(), this.girlId, this.resId);
|
||||
this.url = girlData.getGrilPhotoPic(
|
||||
@@ -167,7 +167,7 @@ export class DetailImageItem extends Component {
|
||||
imgPath = this.url;
|
||||
this.isImage = true;
|
||||
isVisible = girlData.isGirlPhotoVisible(this.category.toString(), this.girlId, this.resId);
|
||||
} else if (type === 2) {
|
||||
} else if (type === proto.cs.EnmResType.ERT_Video) {
|
||||
// 视频
|
||||
price = girlData.getGrilVideoOriginalPrice(this.category.toString(), this.girlId, this.resId);
|
||||
this.isImage = false;
|
||||
|
||||
Reference in New Issue
Block a user