本文整理汇总了TypeScript中ts/opg.ts.default.api.copyRightTypes方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ts.default.api.copyRightTypes方法的具体用法?TypeScript ts.default.api.copyRightTypes怎么用?TypeScript ts.default.api.copyRightTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ts/opg.ts.default.api
的用法示例。
在下文中一共展示了ts.default.api.copyRightTypes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(assetId , containerId) {
$.when(
opg.api.contentUsages((data) => {
contentUsages = data;
}),
opg.api.copyRightTypes((data) => {
copyRightTypes = data;
}),
opg.api.priceTypes((data) => {
priceTypes = data;
}),
opg.api.serialSourceTypes((data) => {
serialSourceTypes = data;
}),
opg.api.starLevels((data) => {
starLevels = data;
}),
opg.api.ratings((data) => {
ratings = data;
}),
).then(() => {
opg.api.metaInfo({assetId}, (data) => {
data.length = opg.format.timeLength(data.length);
data.vodArrange = contentUsages[data.vodArrange] || '';
data.copyrightType = copyRightTypes[data.copyrightType] || '';
data.defaultPriceType = priceTypes[data.defaultPriceType] || '';
data.sourceType = serialSourceTypes[data.sourceType] || '';
data.starLevel = starLevels[data.starLevel] || '';
data.rating = ratings[data.rating] || '';
if (data.originDate) data.originDate = data.originDate.split(' ')[0];
let singleProgramClassName = 'forOne' ;
//todo:可能会有扩展类别
if (data.type != 1000) {
singleProgramClassName = '';
}
let html = `
<table class="search-table">
<thead>
<tr>
<td colspan="4" class="lead text-center">基本信息</td>
</tr>
</thead>
<tbody>
<tr class="forSingleFileOnly">
<td class="lead">节目名称</td>
<td>${data.managerName||''}</td>
<td class="lead">原名称</td>
<td>${data.oriName||''}</td>
</tr>
<tr class="forSingleFileOnly">
<td class="lead">索引名</td>
<td>${data.sortName||''}<span id=""></span></td>
<td class="lead">查询名</td>
<td>${data.srarchName||''}</td>
</tr>
<tr>
<td class="lead">节目类型</td>
<td>${data.typeDesc||''}<span id=""></span></td>
<td class="lead">类别</td>
<td>${data.contentType||''}</td>
</tr>
<tr>
<td class="lead">栏目Category</td>
<td>${data.category||''}</td>
<td class="lead ${singleProgramClassName}"><span>总集数</span></td>
<td class="${singleProgramClassName}">${data.episodeNumber||''}</td>
</tr>
<tr>
<td class="lead"><label for="genre">子类别Genre</label></td>
<td colspan="3">${data.genre||''}</td>
</tr>
<tr>
<td class="lead">标签Tag</td>
<td colspan="3">${data.tags||''}</td>
</tr>
<tr>
<td class="lead"><label for="categoryNames">分类</label></td>
<td colspan="3">${data.categoryNames||''}</td>
</tr>
<tr>
<td class="lead"><label for="groupNames">内容分组 </label></td>
<td colspan="3">${data.groupNames||''}</td>
</tr>
<tr>
<td class="lead">生效时间</td>
<td>${data.validTime||''}</td>
<td class="lead"><label for="expireTime">失效时间</label></td>
<td>${data.expireTime||''}</td>
</tr>
<tr>
<td class="lead">节目时长</td>
<td colspan="3">${data.length||''}</td>
</tr>
<tr>
<td class="lead"><label for="keyword">关键字</label></td>
<td colspan="3">${data.keyword||''}</td>
</tr>
//.........这里部分代码省略.........
示例2: opg
}),
//用途
opg.api.contentUsages(function (data) {
opg('#vodArrange').listBox({
data: opg.convert.hashToArray(data, (v, k) => {
return {id: k, name: v}
}),
});
}),
//版权类型
opg.api.copyRightTypes(function (data) {
opg('#copyrightType').listBox({
data: opg.convert.hashToArray(data, (v, k) => {
return {id: k, name: v}
}),
});
}),
//资费类型
opg.api.priceTypes(function (data) {
opg('#defaultPriceType').listBox({
data: opg.convert.hashToArray(data, (v, k) => {
return {id: k, name: v}
}),
});
}),
//节目源类型
opg.api.serialSourceTypes(function (data) {
示例3: opg
opg('#mainTab').tabView({
data: [
{label: '媒体文件', view: '#d0'},
{label: '元数据', view: '#d1'},
{label: '图片文件', view: '#d2'},
]
});
let contentUsages, copyRightTypes, priceTypes, serialSourceTypes, starLevels, ratings, mediaAuditStatus;
$.when(
opg.api.contentUsages((data) => {
contentUsages = data;
}),
opg.api.copyRightTypes((data) => {
copyRightTypes = data;
}),
opg.api.priceTypes((data) => {
priceTypes = data;
}),
opg.api.serialSourceTypes((data) => {
serialSourceTypes = data;
}),
opg.api.starLevels((data) => {
starLevels = data;
}),
opg.api.ratings((data) => {
ratings = data;
}),
opg.api.mediaAuditStatus((data) => {
mediaAuditStatus = data;