|
@@ -290,17 +290,17 @@ export default {
|
|
|
async handlePaymentRequest(){
|
|
|
// name:工号
|
|
|
try {
|
|
|
- let {name} = this.$store.state.user;
|
|
|
+ // let {name} = this.$store.state.user;
|
|
|
|
|
|
- await orderApi.payRequest(name).then(res=>{
|
|
|
+ let {code,msg} = await orderApi.payRequest();
|
|
|
|
|
|
- if(res){
|
|
|
+ if(code == 200){
|
|
|
+ msg.replace(/\/n/g,'');
|
|
|
+ let url = `uclient://start/http://172.16.100.2:8081?ssoKey=${msg}&uiloader=nc.uap.lfw.applet.PortalUILoader&nodeId=40040407`
|
|
|
|
|
|
- let url = `uclient://start/http://172.16.100.2:8081?ssoKey=${res}&uiloader=nc.uap.lfw.applet.PortalUILoader&nodeId=40040407`
|
|
|
+ window.location.href = url;
|
|
|
|
|
|
- window.location.href = url;
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
|
|
|
} catch (error) {
|
|
|
|