info-template.php
3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
use yii\helpers\Url;
$baseUrl = Url::base(true);
?>
<style>
#info .page-content {
background-color: #fff;
}
#info .scan-image-div {
padding-top: 1.25rem;
text-align: center;
}
#info .scan-image {
width: 11.25rem;
height: 11.03rem;
margin: 0 auto;
}
#info .scan-tip {
margin: 0 auto;
width: 85%;
font-size:0.94rem;
text-align: left;
font-weight:400;
color:rgba(106,106,106,1);
line-height:1.41rem;
margin-top: 1.84rem;
}
#info .title{
font-size:1.06rem;
font-weight:500;
color:rgba(0,0,0,1);
line-height:1.68rem;
}
#info .content{
font-size:0.94rem;
font-weight:400;
color:rgba(106,106,106,1);
line-height:1.41rem;
}
#info .image_button {
padding: 0.2rem 0.5rem;margin-right:0.5rem;color:#fff;background-color: #00BC70;border-radius: 1rem;
}
#info .vedio_button {
padding: 0.2rem 0.5rem;margin-right:0.5rem;color:#fff;background-color: #0d95d6;border-radius: 1rem;
}
</style>
<script id="info-template" type="text/template">
<div class="pages" id="info">
<div class="page">
<div class="page-content">
<div class="scan-image-div">
{{#js_compare "this.first_product_image_path != ''"}}
<img src="{{first_product_image_path}}" class="scan-image"/>
{{else}}
{{#js_compare "this.product_vedio_path != ''"}}
<video class="scan-image" style="border: 1px solid #cce1f1;object-fit: fill;" alt="商品视频" controls="controls">
<source src="{{product_vedio_path}}" type="video/mp4">
您的浏览器不支持 video 标签。
</video>
{{else}}
<img src="<?=$baseUrl?>/i/check/logo.png" class="scan-image"/>
{{/js_compare}}
{{/js_compare}}
</div>
<div style="text-align:center;margin-top:0.5rem;margin-left:0.5rem">
{{#each product_image_path}}
<span class="image_button" data-url="{{this.path}}">图{{@index+1}}</span>
{{/each}}
{{#js_compare "this.product_vedio_path != ''"}}
<span class="vedio_button" data-url="{{product_vedio_path}}">视频</span>
{{/js_compare}}
</div>
<div class="scan-tip">
<div class="title">
发货地址:
</div>
<div class="content" id="send_address">{{delivery_address}}</div>
</div>
<div class="scan-tip">
<div class="title">
商家留言:
</div>
<div class="content" id="leavemsg">{{leave_message}}</div>
</div>
</div>
</div>
</div>
</script>