Commit f2875440 authored by malin's avatar malin

r

parent 23b30fea
...@@ -192,7 +192,6 @@ export default { ...@@ -192,7 +192,6 @@ export default {
}, 1000); }, 1000);
this._payConfig(); this._payConfig();
// this._gatewayCreateorder();
}, },
computed: { computed: {
...@@ -259,7 +258,9 @@ export default { ...@@ -259,7 +258,9 @@ export default {
source: "toutiao", source: "toutiao",
}); });
utils.setCookie("orderId", params.orderId, 0); // 将orderId添加到cookie中 console.log(params);
utils.setCookie("orderId", params.result.data.orderId, 0); // 将orderId添加到cookie中
// 上报 --> 信息收集 // 上报 --> 信息收集
API.API_h5Logs({ API.API_h5Logs({
...@@ -280,7 +281,7 @@ export default { ...@@ -280,7 +281,7 @@ export default {
orderType: 5, orderType: 5,
// pkg: h5LogsObj.pkg, // pkg: h5LogsObj.pkg,
pkg: "com.h5game.bbqm", pkg: "com.h5game.bbqm",
outTradeNo: params.orderId, outTradeNo: params.result.data.orderId,
totalFee: 1, totalFee: 1,
}).then((res) => { }).then((res) => {
let mwebUrl = res.result.data.wakeup.mwebUrl; let mwebUrl = res.result.data.wakeup.mwebUrl;
......
...@@ -64,7 +64,10 @@ ...@@ -64,7 +64,10 @@
</template> </template>
</div> </div>
<div v-if="words == 3" class="name-list row-center-center"> <div
v-if="words == 3 || nameList.length > 0"
class="name-list row-center-center"
>
<template v-for="item in nameList"> <template v-for="item in nameList">
<div :key="item.id" class="row-around-center"> <div :key="item.id" class="row-around-center">
<div class="only-text"> <div class="only-text">
...@@ -80,7 +83,10 @@ ...@@ -80,7 +83,10 @@
</template> </template>
</div> </div>
<div v-if="words == 2" class="name-list row-center-center"> <div
v-if="words == 2 || nameList.length > 0"
class="name-list row-center-center"
>
<template v-for="item in nameList"> <template v-for="item in nameList">
<div :key="item.id" class="row-around-center"> <div :key="item.id" class="row-around-center">
<div class="only-text"> <div class="only-text">
...@@ -191,6 +197,9 @@ export default { ...@@ -191,6 +197,9 @@ export default {
return (option.flag = false); return (option.flag = false);
} }
}); });
if (this.nameList.length == 0) {
return;
}
this._fetchName(); this._fetchName();
}, },
......
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