|
@@ -406,7 +406,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { Pay, HelpPayQrcode, Reader } from "./namespace.js";
|
|
|
+import { Pay, HelpPayQrcode, Reader, Person } from "./namespace.js";
|
|
|
// import product from "../mock/pay.js";
|
|
|
import { MessageBox } from "mint-ui";
|
|
|
import {
|
|
@@ -513,8 +513,10 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
popup() {
|
|
|
- const from_where = this.$route.query.from_where;
|
|
|
+ // const from_where = this.$route.query.from_where;
|
|
|
const msg = "";
|
|
|
+ const bid = this.$route.query.book_id;
|
|
|
+ const cid = this.$route.query.chapter_id;
|
|
|
if(this.$route.query.isRecharge){
|
|
|
MessageBox({
|
|
|
title: "支付确认",
|
|
@@ -527,16 +529,20 @@ export default {
|
|
|
showConfirmButton: true //是否显示确认按钮
|
|
|
}).then(action => {
|
|
|
if (action === "confirm") {
|
|
|
- if (from_where && from_where === 1){
|
|
|
+ console.log('123',bid && cid)
|
|
|
+ if (bid && cid){
|
|
|
this.$router.replace({
|
|
|
name: Reader.name,
|
|
|
query: {
|
|
|
- bid: this.$route.query.book_id,
|
|
|
- cid: this.$route.query.chapter_id
|
|
|
+ bid,
|
|
|
+ cid
|
|
|
}
|
|
|
});
|
|
|
}else {
|
|
|
- this.$router.back();
|
|
|
+ // this.$router.back();
|
|
|
+ this.$router.replace({
|
|
|
+ name: Person.name,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
})
|