slot0 = class("ShanChengPtSkinPage", import("...base.BaseActivityPage")) function slot0.OnInit(slot0) slot0.bg = slot0:findTF("AD") slot0.shop = slot0:findTF("go", slot0.bg) end function slot0.OnFirstFlush(slot0) slot1 = _.detect(getProxy(ActivityProxy):getActivitiesByType(ActivityConst.ACTIVITY_TYPE_SHOP), function (slot0) return slot0:getConfig("config_client").pt_id == uv0.activity:getConfig("config_client").pt_id end) onButton(slot0, slot0.shop, function () uv0:emit(ActivityMediator.GO_SHOPS_LAYER, { warp = NewShopsScene.TYPE_ACTIVITY, actId = uv1 and uv1.id }) end) end return slot0