chore(电子名片): 优化电子名片数据展示
This commit is contained in:
@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS `lucky_personnel_channel`
|
||||
`site_id` int unsigned NOT NULL DEFAULT 0 COMMENT '站点ID',
|
||||
`create_time` int unsigned NOT NULL DEFAULT 0 COMMENT '创建时间',
|
||||
`channel_type` varchar(20) NOT NULL DEFAULT 'wechat' COMMENT '视频号类型:wechat-微信视频号,douyin-抖音,kuaishou-快手,redbook-小红书,bilibili-B站',
|
||||
`channel_name` varchar(100) NOT NULL DEFAULT '' COMMENT '视频号名称',
|
||||
`channel_name` varchar(100) NOT NULL DEFAULT '' COMMENT '视频号ID',
|
||||
`feed_id` varchar(100) NOT NULL DEFAULT '' COMMENT '视频号内容ID',
|
||||
`feed_token` varchar(255) NOT NULL DEFAULT '' COMMENT '视频号视频的标识',
|
||||
`avatar_image_type` varchar(10) NOT NULL DEFAULT 'upload' COMMENT '头像类型:upload-上传图片,url-URL',
|
||||
|
||||
@@ -22,45 +22,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label short-label"><span class="required">*</span>视频号名称:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="channel_name" value="{$info.channel_name}" lay-verify="required" maxlength="40" autocomplete="off" placeholder="请输入视频号名称" class="layui-input len-long">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">头像类型:</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="avatar_image_type" lay-filter="avatarType" value="url" title="URL链接" {:$info['avatar_image_type'] ? ($info['avatar_image_type'] == 'url' ? 'checked' : '') : 'checked'}>
|
||||
<input type="radio" name="avatar_image_type" lay-filter="avatarType" value="upload" title="上传图片" {:$info['avatar_image_type'] ? ($info['avatar_image_type'] == 'upload' ? 'checked' : '') : ''}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" id="avatarTypeUrl">
|
||||
<label class="layui-form-label">头像URL:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="avatar_url" value="{$info.avatar_url}" maxlength="255" autocomplete="off" placeholder="请输入头像URL" class="layui-input len-long">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" id="avatarTypeUpload">
|
||||
<label class="layui-form-label">头像图:</label>
|
||||
<div class="layui-input-block img-upload">
|
||||
<div class="upload-img-block square simple-uploading">
|
||||
<div class="upload-img-box" id="avatarImg">
|
||||
<div class="upload-default">
|
||||
<i class="iconfont iconshangchuan"></i>
|
||||
<p>点击上传</p>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="avatar_url_upload" value="" />
|
||||
<i class="del">x</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="word-aux">推荐使用 200x200 像素的图片</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><span class="required">*</span>视频标题:</label>
|
||||
<div class="layui-input-inline">
|
||||
@@ -69,9 +30,9 @@
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><span class="required">*</span>内容ID:</label>
|
||||
<label class="layui-form-label"><span class="required">*</span>视频Token:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="feed_id" value="{$info.feed_id}" lay-verify="required" maxlength="50" autocomplete="off" placeholder="请输入视频号内容ID" class="layui-input len-long">
|
||||
<input type="text" name="feed_token" value="{$info.feed_token}" maxlength="255" autocomplete="off" placeholder="请输入视频号视频的标识/feedToken。仅内嵌小程序非同主体视频号视频时使用。" class="layui-input len-long">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -107,6 +68,55 @@
|
||||
<div class="word-aux">推荐使用 750x420 像素的图片</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label short-label"><span class="required">*</span>视频号:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="channel_name" value="{$info.channel_name}" lay-verify="required" maxlength="40" autocomplete="off" placeholder="请输入视频号名称。微信视频号,以"sph"开头的id" class="layui-input len-long">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">内容ID:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="feed_id" value="{$info.feed_id}" maxlength="50" autocomplete="off" placeholder="请输入视频号内容ID/feed_id. 微信视频号:仅视频号视频与小程序同主体时生效。" class="layui-input len-long">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">头像类型:</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="avatar_image_type" lay-filter="avatarType" value="url" title="URL链接" {:$info['avatar_image_type'] ? ($info['avatar_image_type'] == 'url' ? 'checked' : '') : 'checked'}>
|
||||
<input type="radio" name="avatar_image_type" lay-filter="avatarType" value="upload" title="上传图片" {:$info['avatar_image_type'] ? ($info['avatar_image_type'] == 'upload' ? 'checked' : '') : ''}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" id="avatarTypeUrl">
|
||||
<label class="layui-form-label">头像URL:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="avatar_url" value="{$info.avatar_url}" maxlength="255" autocomplete="off" placeholder="请输入头像URL" class="layui-input len-long">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" id="avatarTypeUpload">
|
||||
<label class="layui-form-label">头像图:</label>
|
||||
<div class="layui-input-block img-upload">
|
||||
<div class="upload-img-block square simple-uploading">
|
||||
<div class="upload-img-box" id="avatarImg">
|
||||
<div class="upload-default">
|
||||
<i class="iconfont iconshangchuan"></i>
|
||||
<p>点击上传</p>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="avatar_url_upload" value="" />
|
||||
<i class="del">x</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="word-aux">推荐使用 200x200 像素的图片</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">排序:</label>
|
||||
<div class="layui-input-inline">
|
||||
@@ -123,13 +133,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">视频标识:</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="feed_token" value="{$info.feed_token}" maxlength="255" autocomplete="off" placeholder="请输入视频号视频的标识" class="layui-input len-long">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">观看次数:</label>
|
||||
<div class="layui-input-inline">
|
||||
|
||||
@@ -51,11 +51,13 @@
|
||||
<!-- 视频内容信息 -->
|
||||
<script type="text/html" id="info">
|
||||
<div class='table-title'>
|
||||
{{# if(d.cover_url){ }}
|
||||
<div class='title-pic'>
|
||||
<img layer-src src="{{ns.img(d.cover_url)}}" onerror="this.src = ns.url('public/static/img/default_img/square.png')" alt="{{d.video_title}}">
|
||||
</div>
|
||||
{{# } }}
|
||||
<div class='title-content'>
|
||||
<p class="layui-elip" style="font-size: 12px;color: #999;margin-top: 5px;">{{d.feed_id}}</p>
|
||||
<p class="layui-elip" style="font-size: 12px;color: #999;margin-top: 5px;">{{d.feed_token}}</p>
|
||||
<p class="layui-elip" style="font-weight: 500; font-size: 18px; color:#000">{{d.video_title}}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -64,11 +66,13 @@
|
||||
<!-- 视频号内容信息 -->
|
||||
<script type="text/html" id="channelinfo">
|
||||
<div class='table-title'>
|
||||
{{# if(d.avatar_url){ }}
|
||||
<div class='title-pic headimg'>
|
||||
<img layer-src src="{{ns.img(d.avatar_url)}}" onerror="this.src = ns.url('public/static/img/default_img/square.png')" alt="{{d.channel_name || '头像'}}">
|
||||
<img layer-src src="{{ns.img(d.avatar_url)}}" onerror="this.src = ns.url('public/static/img/default_img/square.png')" alt="{{d.channel_name}}">
|
||||
</div>
|
||||
{{# } }}
|
||||
<div class='title-content'>
|
||||
<p class="layui-elip" style="font-size: 12px;color: #999;margin-top: 5px;">{{d.channel_id}}</p>
|
||||
<!-- <p class="layui-elip" style="font-size: 12px;color: #999;margin-top: 5px;">{{d.channel_id}}</p> -->
|
||||
<p class="layui-elip" style="font-weight: 500; font-size: 13px; color:#000">{{d.channel_name}}</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,21 +118,21 @@
|
||||
cols: [[
|
||||
{
|
||||
field: 'video_title',
|
||||
title: '视频标题',
|
||||
title: '视频',
|
||||
width: '40%',
|
||||
unresize: 'false',
|
||||
templet: '#info'
|
||||
},
|
||||
{
|
||||
field: 'channel_name',
|
||||
title: '视频号名称',
|
||||
title: '视频号',
|
||||
width: '15%',
|
||||
unresize: 'false',
|
||||
templet: '#channelinfo'
|
||||
},
|
||||
{
|
||||
field: 'channel_type',
|
||||
title: '视频号类型',
|
||||
title: '类型',
|
||||
width: '12%',
|
||||
unresize: 'false',
|
||||
templet: '#channelType'
|
||||
|
||||
Reference in New Issue
Block a user