From bdbccda21299c478bed1abecac7eee50d6e78153 Mon Sep 17 00:00:00 2001 From: e <1447792802@qq.com> Date: Mon, 26 Mar 2018 16:57:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E7=94=A8=E5=8D=A1=20=20=E6=9E=81?= =?UTF-8?q?=E9=80=9F=E8=B4=B7=20=E8=8E=B7=E5=8F=96id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/3-00-List.js | 4 ++-- pages/1-loan/6-speed-detail.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/3-00-List.js b/components/3-00-List.js index 8bac425..ec8575a 100644 --- a/components/3-00-List.js +++ b/components/3-00-List.js @@ -1,6 +1,6 @@ import { Button, message } from "antd"; import Router from "next/router"; -import { cache, getCookie } from "@utils"; +import { http, cache, getCookie } from "@utils"; export default ({ item }) => { function onGo() { @@ -40,7 +40,7 @@ export default ({ item }) => { }); return; } - + http.get(`card/apply/${item.id}`); window.open(item.pc_outside_link); } return ( diff --git a/pages/1-loan/6-speed-detail.js b/pages/1-loan/6-speed-detail.js index a8b10c4..9159005 100644 --- a/pages/1-loan/6-speed-detail.js +++ b/pages/1-loan/6-speed-detail.js @@ -150,7 +150,7 @@ export default class extends Component { ); } if (type === 1) { - http.post("loans/top_speed_apply", { id }); + http.get(`loans/top_speed_apply/${id}`); this.setState(() => ({ showQrcode: true })); } return null;