当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ts.default.api.serialSourceTypes方法代码示例

本文整理汇总了TypeScript中ts/opg.ts.default.api.serialSourceTypes方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ts.default.api.serialSourceTypes方法的具体用法?TypeScript ts.default.api.serialSourceTypes怎么用?TypeScript ts.default.api.serialSourceTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ts/opg.ts.default.api的用法示例。


在下文中一共展示了ts.default.api.serialSourceTypes方法的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>
//.........这里部分代码省略.........
开发者ID:rpdg,项目名称:fy.js,代码行数:101,代码来源:viewMeta.ts

示例2: opg

	}),

	//资费类型
	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) {
		opg('#sourceType').listBox({
			data: opg.convert.hashToArray(data, (v, k) => {
				return {id: k, name: v}
			}),
		});
	}),

	//推荐级别
	opg.api.starLevels(function (data) {
		opg('#starLevel').listBox({
			data: opg.convert.hashToArray(data, (v, k) => {
				return {id: k, name: v}
			}),
		});
	}),


	//限制级别
开发者ID:rpdg,项目名称:fy.js,代码行数:31,代码来源:metaData.ts

示例3:

});

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;
	}),
).then(() => {
	//媒体文件
	opg.api.auditMedias({assetId, orderId}, (data) => {
		let arr = data.amsMediaFiles;
		if (arr && arr.length)
开发者ID:rpdg,项目名称:fy.js,代码行数:31,代码来源:info.ts


注:本文中的ts/opg.ts.default.api.serialSourceTypes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。