| | |
| | | if (uni.getStorageSync('DEBUG')) { |
| | | new Vconsole(); |
| | | } |
| | | /*console.log(opt) |
| | | let platform = 2 |
| | | const redirect_uri = encodeURIComponent(`${config.webURL}/pay/scanpay?cid=${opt.query.cid}`) |
| | | console.log('OPENID'+platform,!!uni.getStorageSync('OPENID'+platform)) |
| | | if(!!uni.getStorageSync('OPENID'+platform)){ |
| | | window.location.href = redirect_uri |
| | | return |
| | | } |
| | | return |
| | | if(!opt.query.code && !opt.query.auth_code){ |
| | | console.log('auth',platform, !opt.query.code && !opt.query.auth_code) |
| | | if (platform == 2) { |
| | | window.location.href =redirect_uri+'&code=sadfkhnadsmuk' |
| | | //`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.wx_appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect` |
| | | } else if (platform == 5) { |
| | | window.location.href =redirect_uri |
| | | //`https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=${config.ali_appid}&scope=auth_base&redirect_uri=${redirect_uri}&state=STATE` |
| | | } |
| | | }*/ |
| | | }, |
| | | onShow: function() { |
| | | console.log('App Show') |
| | |
| | | webURL: 'https://sfzf.cpbtsoft.cn', |
| | | baseURL: '/dev-api', |
| | | // baseURL: 'http://172.16.2.117:8080', |
| | | sftpURL: 'https://yqzx.jinmingyuan.com/file', |
| | | wx_appid: 'wx4c146dba764dcb05', |
| | | ali_appid: '2021004149689887' |
| | | } |
| | |
| | | const test = { |
| | | webURL: 'https://sfzf.cpbtsoft.cn', |
| | | baseURL: 'https://sfzf.cpbtsoft.cn/prod-api', |
| | | sftpURL: 'https://sfzf.cpbtsoft.cn/prod-api', |
| | | wx_appid: 'wx4c146dba764dcb05', |
| | | ali_appid: '2021004149689887' |
| | | } |
| | | // 正式 |
| | | const prod = { |
| | | webURL: 'https://sfzf.cpbtsoft.cn', |
| | | baseURL: 'https://jyy.hepost.com:20773/prod-api', |
| | | sftpURL: 'https://jyy.hepost.com:20773/prod-api', |
| | | // baseURL: 'https://jyy.hepost.com:20773/prod-api', |
| | | baseURL: 'https://sfzf.cpbtsoft.cn/pay-api/prod-api', |
| | | wx_appid: 'wx4c146dba764dcb05', |
| | | ali_appid: '2021004149689887' |
| | | } |
| | | |
| | | const cardType = { |
| | | '00': '储蓄卡', |
| | | '02': '信用卡' |
| | | } |
| | | module.exports = { |
| | | config: process.env.NODE_ENV === 'development' ? dev : prod, |
| | | ACCESSTOKEN: "Authorization", |
| | | /* 是否打印请求日志 */ |
| | | DEBUG: false, |
| | | cardType: cardType |
| | | DEBUG: false |
| | | } |
| | |
| | | import App from './App' |
| | | import Vue from 'vue' |
| | | import Vconsole from 'vconsole'; |
| | | new Vconsole(); |
| | | |
| | | import uView from '@/uni_modules/uview-ui' |
| | | Vue.use(uView) |
| | | |