Merge: 合并电子名片及新组件微信视频号
This commit is contained in:
@@ -35,19 +35,19 @@ var vue = new Vue({
|
|||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
var data = JSON.parse($("#guessYouLikeConfig").val());
|
var data = JSON.parse($("#guessYouLikeConfig").val());
|
||||||
this.is_kefu = data.is_kefu;
|
this.is_kefu = data.is_kefu || 1;
|
||||||
this.is_mp = data.is_mp;
|
this.is_mp = data.is_mp || 1;
|
||||||
this.is_file = data.is_file;
|
this.is_file = data.is_file || 1;
|
||||||
this.is_video = data.is_video;
|
this.is_video = data.is_video || 1;
|
||||||
this.is_map = data.is_map;
|
this.is_map = data.is_map || 1;
|
||||||
this.is_channel = data.is_channel;
|
this.is_channel = data.is_channel || 1;
|
||||||
// 视频号设置初始化
|
// 视频号设置初始化
|
||||||
this.channel_display_style = data.channel_display_style || 'fixed';
|
this.channel_display_style = data.channel_display_style || 'fixed';
|
||||||
this.channel_aspect_ratio = data.channel_aspect_ratio || '16:9';
|
this.channel_aspect_ratio = data.channel_aspect_ratio || '16:9';
|
||||||
this.channel_show_view_count = !!data.channel_show_view_count;
|
this.channel_show_view_count = !!data.channel_show_view_count;
|
||||||
this.channel_row_count = data.channel_row_count || 2;
|
this.channel_row_count = data.channel_row_count || 2;
|
||||||
this.channel_title_line_clamp = data.channel_title_line_clamp || 2;
|
this.channel_title_line_clamp = data.channel_title_line_clamp || 2;
|
||||||
this.channel_show_play_btn = !!data.channel_show_play_btn;
|
this.channel_show_play_btn = !!data.channel_show_play_btn;
|
||||||
fullScreenSize(function () {
|
fullScreenSize(function () {
|
||||||
self.lazyLoad = true;
|
self.lazyLoad = true;
|
||||||
});
|
});
|
||||||
@@ -88,7 +88,7 @@ layui.use(['form'], function () {
|
|||||||
form.render();
|
form.render();
|
||||||
|
|
||||||
fullScreenSize();
|
fullScreenSize();
|
||||||
|
|
||||||
// 初始化layui的select元素的默认值和事件绑定
|
// 初始化layui的select元素的默认值和事件绑定
|
||||||
const initLayuiSelectBindings = (() => {
|
const initLayuiSelectBindings = (() => {
|
||||||
// 特别注意:layui的select元素,不能使用v-model绑定数据, 只能使用layui的form.on('select')事件监听和form.val()方法设置默认值
|
// 特别注意:layui的select元素,不能使用v-model绑定数据, 只能使用layui的form.on('select')事件监听和form.val()方法设置默认值
|
||||||
|
|||||||
Reference in New Issue
Block a user