Commit 33ba90f1 by 展昭

tj

parent d8b5f9f1
......@@ -29,7 +29,7 @@ const mutations = {
[types.CHANGE_MORE_SUMMARY] (state, moreSummary) {
state.moreSummary = moreSummary;
try {
localStorage.setItem("moreSummary", moreSummary);
localStorage.setItem("moreSummary", JSON.stringify(moreSummary));
} catch (error) { }
},
}
......
......@@ -59,7 +59,7 @@ export default {
[Icon.name]: Icon,
TabHeader
},
// mixins: [setBarHeight],
// mixins: [setBarHeight],
data() {
return {
title: "",
......@@ -76,7 +76,14 @@ export default {
...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]),
toPay() {
let payUrl =
this.payUrl + "&accountType=1&payType=3&selected=1&failUrl=" + encodeURIComponent('https://pay.qinqinxiaobao.com/callback/fail') + "&successUrl="+ encodeURIComponent('https://pay.qinqinxiaobao.com/callback/success') +"" + "&periodId=" + this.currentPerId;
this.payUrl +
"&accountType=1&payType=3&selected=1&failUrl=" +
encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail") +
"&successUrl=" +
encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success") +
"" +
"&periodId=" +
this.currentPerId;
window.open(payUrl);
},
toPage() {
......@@ -89,9 +96,11 @@ export default {
this.$router.push({ name: "moredetail", query: { index, name } });
},
async getData() {
console.log("more index getData");
await this.loadMoreSummary().then(
data => {
this.summary = data;
console.log("this.summary=", this.summary);
},
err => {
console.log(err);
......@@ -111,11 +120,10 @@ export default {
}
},
async mounted() {
console.log('more index mounted');
this.setPageNavState();
this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.getData();
this.payUrl = await this.loadPayUrl();
//this.payUrl = await this.loadPayUrl();
}
};
</script>
......
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 sign in to comment