Commit f088f2e0 by 孙龙

up

parent 7247edee
......@@ -103,10 +103,29 @@ class WebController extends Controller
// dump($tmpRelation->template->template_extend);
// dump($tmpRelation->saleOrder);
dump($tmpRelation->tmpRelation->html);
dump($tmpRelation->saleOrder);
// dump($tmpRelation->tmpRelation->html);
// dump($tmpRelation->saleOrder);
$info['templateInfo'] = $tmpRelation;
// dump($info);
$info["ichunt2020"]["sale_order_sn"] = $tmpRelation->saleOrder->sale_order_sn;
$info["ichunt2020"]["goods_type"] = $tmpRelation->saleOrder->goods_type;
$info["ichunt2020"]["goods_brand"] = $tmpRelation->saleOrder->goods_brand;
$info["ichunt2020"]["goods_number"] = $tmpRelation->saleOrder->goods_number;
$info["ichunt2020"]["sku_code"] = $tmpRelation->saleOrder->customer_code;
$info["ichunt2020"]["customer_type"] = $tmpRelation->saleOrder->customer_type;
// dump($info["ichunt2020"]);
$matches = [];
$a = preg_match_all('/<<<(.*?)>>>/i',$tmpRelation->tmpRelation->html,$matches);
// dump($matches);
foreach($matches[1] as $k=>$field){
$arr[$k] = $info["ichunt2020"][$field];
}
$html = str_replace($matches[0],$arr,$tmpRelation->tmpRelation->html);
// \View::make('admin.messages', $info["ichunt2020"]);
// dump($html);exit;
$info["html"] = $html;
return view('web', $info);
}
......
{!! $templateInfo->tmpRelation->html !!}
\ No newline at end of file
{!! $html !!}
<script>
// alert(567)
</script>
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 sign in to comment