协议增加,收藏角色,收藏列表
This commit is contained in:
@@ -17,6 +17,7 @@ import { DataManager, DataId } from "../data/DataManager";
|
||||
import { GirlData } from "../data/GirlData";
|
||||
import { EnvData } from "../data/EnvData";
|
||||
import { NavigationManager } from "../manager/NavigationManager";
|
||||
import { GirlService } from "db://assets/Scripts/chat18x/network/services/GirlService";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -68,6 +69,8 @@ export class DetailImageItem extends Component {
|
||||
if (this.url) {
|
||||
NavigationManager.Instance.openPopupPanel("ShowPanel", data);
|
||||
this.base.setVideEnable(false);
|
||||
// 查看图片或者视频上报,用于排行榜
|
||||
this.reqViewGirl(this.girlId);
|
||||
}
|
||||
} else {
|
||||
NavigationManager.Instance.openPopupPanel("PopupGirlDetailPanel", {
|
||||
@@ -96,6 +99,20 @@ export class DetailImageItem extends Component {
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看图片或者视频上报,用于排行榜
|
||||
* @param girlId 角色Id
|
||||
*/
|
||||
private async reqViewGirl(girlId: number) {
|
||||
const reqData = {
|
||||
girlId
|
||||
};
|
||||
let res = await GirlService.I.reqViewGirl(reqData);
|
||||
if (res && res.code === proto.cs.EnmRetCode.SUCCESS) {
|
||||
const resData = res.data;
|
||||
}
|
||||
}
|
||||
|
||||
scaleToFillItem() {
|
||||
if (!this.img || !this.img.spriteFrame) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user