From 7a1a59cd49e54044f41275f48ca38e27fd26c958 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Thu, 15 Jan 2026 16:38:05 +0800 Subject: [PATCH] =?UTF-8?q?Merge:=20=E5=90=88=E5=B9=B6=E7=94=B5=E5=AD=90?= =?UTF-8?q?=E5=90=8D=E7=89=87=E5=8F=8A=E6=96=B0=E7=BB=84=E4=BB=B6=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E8=A7=86=E9=A2=91=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/addon/personnel/shop/view/public/diy.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/addon/personnel/shop/view/public/diy.js b/src/addon/personnel/shop/view/public/diy.js index 55cc08b6d..a2c0aa1c0 100644 --- a/src/addon/personnel/shop/view/public/diy.js +++ b/src/addon/personnel/shop/view/public/diy.js @@ -35,19 +35,19 @@ var vue = new Vue({ var self = this; var data = JSON.parse($("#guessYouLikeConfig").val()); - this.is_kefu = data.is_kefu; - this.is_mp = data.is_mp; - this.is_file = data.is_file; - this.is_video = data.is_video; - this.is_map = data.is_map; - this.is_channel = data.is_channel; + this.is_kefu = data.is_kefu || 1; + this.is_mp = data.is_mp || 1; + this.is_file = data.is_file || 1; + this.is_video = data.is_video || 1; + this.is_map = data.is_map || 1; + this.is_channel = data.is_channel || 1; // 视频号设置初始化 this.channel_display_style = data.channel_display_style || 'fixed'; this.channel_aspect_ratio = data.channel_aspect_ratio || '16:9'; this.channel_show_view_count = !!data.channel_show_view_count; - this.channel_row_count = data.channel_row_count || 2; - this.channel_title_line_clamp = data.channel_title_line_clamp || 2; - this.channel_show_play_btn = !!data.channel_show_play_btn; + this.channel_row_count = data.channel_row_count || 2; + this.channel_title_line_clamp = data.channel_title_line_clamp || 2; + this.channel_show_play_btn = !!data.channel_show_play_btn; fullScreenSize(function () { self.lazyLoad = true; }); @@ -88,7 +88,7 @@ layui.use(['form'], function () { form.render(); fullScreenSize(); - + // 初始化layui的select元素的默认值和事件绑定 const initLayuiSelectBindings = (() => { // 特别注意:layui的select元素,不能使用v-model绑定数据, 只能使用layui的form.on('select')事件监听和form.val()方法设置默认值