Commit 5b7162c2 authored by malin's avatar malin

t

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