Commit 5b7162c2 authored by malin's avatar malin

t

parent 0118c61b
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
</template> </template>
<script> <script>
import utils from "@/utils";
export default { export default {
data() { data() {
return { return {
...@@ -161,7 +162,7 @@ export default { ...@@ -161,7 +162,7 @@ export default {
{ gender: 0, name: this.female }, { gender: 0, name: this.female },
], ],
}; };
utils.setCookie("baseInfo", JSON.stringify(params.info), 0);
this.$router.push({ path: "/pay", query: params }); this.$router.push({ path: "/pay", query: params });
}, },
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="col-center-center"> <div class="col-center-center">
<img class="img3" src="@/assets/img/pay/img3.png" alt="" /> <img class="img3" src="@/assets/img/pay/img3.png" alt="" />
<span style="margin: 0.2rem 0 0.1rem 0">{{ <span style="margin: 0.2rem 0 0.1rem 0">{{
$route.query.info ? $route.query.info[0].name : "xxx" baseInfo.length > 0 ? baseInfo[0].name : ""
}}</span> }}</span>
<span class="fs-24 fc-21 fw-4">男主角</span> <span class="fs-24 fc-21 fw-4">男主角</span>
</div> </div>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<div class="col-center-center"> <div class="col-center-center">
<img class="img4" src="@/assets/img/pay/img4.png" alt="" /> <img class="img4" src="@/assets/img/pay/img4.png" alt="" />
<span style="margin: 0.2rem 0 0.1rem 0">{{ <span style="margin: 0.2rem 0 0.1rem 0">{{
$route.query.info ? $route.query.info[1].name : "xxx" baseInfo.length > 0 ? baseInfo[1].name : ""
}}</span> }}</span>
<span class="fs-24 fc-21 fw-4">女主角</span> <span class="fs-24 fc-21 fw-4">女主角</span>
</div> </div>
...@@ -96,6 +96,7 @@ export default { ...@@ -96,6 +96,7 @@ export default {
second: "00", second: "00",
cash: 0, cash: 0,
originalPrice: "139", originalPrice: "139",
baseInfo: [],
}; };
}, },
...@@ -111,6 +112,8 @@ export default { ...@@ -111,6 +112,8 @@ export default {
} }
}, 1000); }, 1000);
this.baseInfo = JSON.parse(utils.getCookie("baseInfo"));
this._payConfig(); this._payConfig();
}, },
...@@ -150,9 +153,7 @@ export default { ...@@ -150,9 +153,7 @@ export default {
); );
const orderId = res_order.result.data.orderId; const orderId = res_order.result.data.orderId;
const baseInfo = res_order.result.data.baseInfo;
utils.setCookie("orderId", orderId, 0); // 将orderId放入cookie中 utils.setCookie("orderId", orderId, 0); // 将orderId放入cookie中
utils.setCookie("baseInfo", JSON.stringify(baseInfo), 0);
// 上报-- > 信息收集; // 上报-- > 信息收集;
API.API_h5Logs({ API.API_h5Logs({
......
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