소스 검색

Merge branch 'merge-master'

master
JinxChen 1 년 전
부모
커밋
c616d39e21
2개의 변경된 파일16개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -2
      src/views/package-home/index.vue
  2. +14
    -1
      src/views/package-list/index.vue

+ 2
- 2
src/views/package-home/index.vue 파일 보기

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2023-02-24 14:18:25 * @Date: 2023-02-24 14:18:25
* @LastEditors: JinxChen * @LastEditors: JinxChen
* @LastEditTime: 2023-04-08 16:35:10
* @LastEditTime: 2023-04-08 16:53:10
* @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue * @FilePath: \TelpoH5FrontendWeb\src\views\package-home\index.vue
* @description: * @description:
--> -->
@@ -26,7 +26,7 @@ export default {
}; };
}, },
created() { created() {
this.getToken();
/* this.getToken(); */
this.getAuth(); this.getAuth();
this.checkImei(); this.checkImei();
this.getParams(); this.getParams();


+ 14
- 1
src/views/package-list/index.vue 파일 보기

@@ -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);


Loading…
취소
저장