|
@@ -1,7 +1,7 @@ |
|
|
<!-- |
|
|
<!-- |
|
|
* @Date: 2022-03-29 16:57:58 |
|
|
* @Date: 2022-03-29 16:57:58 |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditTime: 2023-04-08 14:57:19 |
|
|
|
|
|
|
|
|
* @LastEditTime: 2023-04-08 16:52:36 |
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue |
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue |
|
|
* @description: TODO 小台风充值h5 |
|
|
* @description: TODO 小台风充值h5 |
|
|
--> |
|
|
--> |
|
@@ -145,6 +145,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
this.getAuth(); |
|
|
this.getAuth(); |
|
|
|
|
|
this.getToken(); |
|
|
this.getParams(); |
|
|
this.getParams(); |
|
|
this.getCode(); |
|
|
this.getCode(); |
|
|
//this.getWxAutograph(); |
|
|
//this.getWxAutograph(); |
|
@@ -170,6 +171,18 @@ export default { |
|
|
this.$store.commit("gatewayToken", res.data.data); |
|
|
this.$store.commit("gatewayToken", res.data.data); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 获取token |
|
|
|
|
|
getToken() { |
|
|
|
|
|
let manufacturerNo = '9f166b07-ff83-4991-84dc-ca6ad4a6b95b'; |
|
|
|
|
|
APIPay.getToken(manufacturerNo).then(res => { |
|
|
|
|
|
console.log("token的数据", res.data) |
|
|
|
|
|
let data = res.data; |
|
|
|
|
|
if(data.code === 20000) { |
|
|
|
|
|
this.$store.commit("token", data.token); |
|
|
|
|
|
console.log("token的数据", localStorage.getItem('token')) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
getCode() { |
|
|
getCode() { |
|
|
let url = window.location.href.split("?code=")[1]; |
|
|
let url = window.location.href.split("?code=")[1]; |
|
|
console.log("url", url); |
|
|
console.log("url", url); |
|
|