Commit 4f6756fd by 冷斌

fix bug

parent 3f21d068
...@@ -27,11 +27,10 @@ class SingleAction extends CommonAction ...@@ -27,11 +27,10 @@ class SingleAction extends CommonAction
{ {
$id = t($_GET['id']); $id = t($_GET['id']);
if ($id === 'buy') { if ($id === 'buy') {
var_dump(model('Xdata')->get("admin_Config:about")); $result = model('Xdata')->get("admin_Config:about");
die;
$res = [ $res = [
'title' => '购买协议', 'title' => '购买协议',
'text' => model('Xdata')->get("admin_Config:about"), 'text' => $result['about']
]; ];
} else { } else {
$map['is_del'] = 0; $map['is_del'] = 0;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div id="app"> <div id="app">
<div class="layout_v"> <div class="layout_v">
{$data.text}
</div> </div>
</div> </div>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
} }
}, },
mounted:function(){ mounted:function(){
document.title = "设置" document.title = "{$data.title}"
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment