fengchang 1 vuosi sitten
vanhempi
commit
8435184a5e
1 muutettua tiedostoa jossa 3 lisäystä ja 4 poistoa
  1. 3 4
      hichina-main-front-mobile-first/src/pages/AlipayPage.vue

+ 3 - 4
hichina-main-front-mobile-first/src/pages/AlipayPage.vue

@@ -1,6 +1,6 @@
 <template>
   <q-page>
-    <div v-html="htmlContent" ref="pay"></div>
+    <div v-html="htmlContent" id="container" ref="pay"></div>
   </q-page>
 </template>
 
@@ -33,9 +33,8 @@ export default {
       orderId.value = allParamsFromPreviousPage.orderId;
       price.value = allParamsFromPreviousPage.price;
 
-      document.addEventListener("DOMContentLoaded", function () {
-        document.write(htmlContent.value);
-      });
+      var container = document.getElementById("container");
+      container.innerHTML = htmlContent.value;
     });
   },
 };