Commit 33ba90f1 by 展昭

tj

parent d8b5f9f1
...@@ -29,7 +29,7 @@ const mutations = { ...@@ -29,7 +29,7 @@ const mutations = {
[types.CHANGE_MORE_SUMMARY] (state, moreSummary) { [types.CHANGE_MORE_SUMMARY] (state, moreSummary) {
state.moreSummary = moreSummary; state.moreSummary = moreSummary;
try { try {
localStorage.setItem("moreSummary", moreSummary); localStorage.setItem("moreSummary", JSON.stringify(moreSummary));
} catch (error) { } } catch (error) { }
}, },
} }
......
...@@ -76,7 +76,14 @@ export default { ...@@ -76,7 +76,14 @@ export default {
...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]), ...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]),
toPay() { toPay() {
let payUrl = 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); window.open(payUrl);
}, },
toPage() { toPage() {
...@@ -89,9 +96,11 @@ export default { ...@@ -89,9 +96,11 @@ export default {
this.$router.push({ name: "moredetail", query: { index, name } }); this.$router.push({ name: "moredetail", query: { index, name } });
}, },
async getData() { async getData() {
console.log("more index getData");
await this.loadMoreSummary().then( await this.loadMoreSummary().then(
data => { data => {
this.summary = data; this.summary = data;
console.log("this.summary=", this.summary);
}, },
err => { err => {
console.log(err); console.log(err);
...@@ -111,11 +120,10 @@ export default { ...@@ -111,11 +120,10 @@ export default {
} }
}, },
async mounted() { async mounted() {
console.log('more index mounted');
this.setPageNavState(); this.setPageNavState();
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.getData(); await this.getData();
this.payUrl = await this.loadPayUrl(); //this.payUrl = await this.loadPayUrl();
} }
}; };
</script> </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