diff --git a/shopxo/app/plugins/vr_ticket/index/Index.php b/shopxo/app/plugins/vr_ticket/index/Index.php
index f931d8b..b97a465 100755
--- a/shopxo/app/plugins/vr_ticket/index/Index.php
+++ b/shopxo/app/plugins/vr_ticket/index/Index.php
@@ -51,8 +51,11 @@ class Index
}
// 渲染票夹页面
+ // 注意:插件不继承 index/Common,故 $public_host 不会自动赋值
+ // 使用 Config('shopxo.host_url') 或显式传递均可,这里用 Config() 保持一致
return MyView('../../../plugins/vr_ticket/view/goods/ticket_wallet', [
'user' => $user,
+ 'public_host' => \think\facade\Config::get('shopxo.host_url'),
]);
}
}
diff --git a/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html b/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html
index 67f3ea9..44ef069 100644
--- a/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html
+++ b/shopxo/app/plugins/vr_ticket/view/goods/ticket_wallet.html
@@ -2,7 +2,7 @@
+ href="{{$public_host}}plugins/vr_ticket/static/css/ticket.css?v=" />
@@ -32,9 +32,9 @@
-
-
+ href="{{$public_host}}plugins/vr_ticket/static/css/ticket_card.css?v=" />
+
+