Browse Source

姐姐无法预约的问题

yuhaitao14 7 years ago
parent
commit
52411ecf78

+ 1 - 5
shop/src/main/resource/templates/h5/appointment.html

@@ -102,11 +102,7 @@
     </div>
     </div>
 
 
     <script th:inline="javascript">
     <script th:inline="javascript">
-        var peoples = JSON.parse([
-                [$ {
-                    peoplesJSON
-                }]
-            ])
+        var peoples = JSON.parse([[${peoplesJSON}]])
             /* <![CDATA[ */
             /* <![CDATA[ */
         function selectPeople(id) {
         function selectPeople(id) {
             for (var i = 0; i < peoples.length; ++i) {
             for (var i = 0; i < peoples.length; ++i) {

+ 3 - 15
shop/src/main/resource/templates/h5/changeappointment.html

@@ -101,21 +101,9 @@
     </div>
     </div>
 
 
     <script th:inline="javascript">
     <script th:inline="javascript">
-        var peoples = JSON.parse([
-            [$ {
-                peoplesJSON
-            }]
-        ])
-        var fid = [
-            [$ {
-                appointment.fid
-            }]
-        ]
-        var extend = [
-            [$ {
-                appointment.extend
-            }]
-        ]
+        var peoples = JSON.parse([[${peoplesJSON}]])
+        var fid = [[${appointment.fid}]]
+        var extend = [[${appointment.extend}]]
 
 
         /* <![CDATA[ */
         /* <![CDATA[ */
         function selectPeople(id) {
         function selectPeople(id) {