diff --git a/App.vue b/App.vue index f79cf69..da18809 100644 --- a/App.vue +++ b/App.vue @@ -72,17 +72,17 @@ // #ifdef MP let accountInfo = uni.getAccountInfoSync(); - // if (accountInfo.miniProgram.envVersion == 'develop' || accountInfo.miniProgram.envVersion == 'trial') { - // this.globalData.url = 'https://hsgcs.dctpay.com/crest'; - // this.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; - // this.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; - // this.globalData.userurl = 'https://hsgcs.dctpay.com/user'; - // this.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; - // this.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; - // this.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; - // this.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; - // } - if (accountInfo.miniProgram.envVersion == 'develop') { + if (accountInfo.miniProgram.envVersion == 'develop' || accountInfo.miniProgram.envVersion == 'trial') { + this.globalData.url = 'https://hsgcs.dctpay.com/crest'; + this.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; + this.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; + this.globalData.userurl = 'https://hsgcs.dctpay.com/user'; + this.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; + this.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; + this.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; + this.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; + } + if (accountInfo.miniProgram.envVersion == 'release') { this.globalData.url = 'https://hsg.dctpay.com/crest'; this.globalData.v1url = 'https://hsg.dctpay.com/v1'; this.globalData.orderurl = 'https://hsg.dctpay.com/order'; @@ -95,23 +95,23 @@ // #endif // #ifdef H5 let that = this; - that.globalData.url = 'https://hsgcs.dctpay.com/crest'; - that.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; - that.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; - that.globalData.userurl = 'https://hsgcs.dctpay.com/user'; - that.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; - that.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; - that.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; - that.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; + // that.globalData.url = 'https://hsgcs.dctpay.com/crest'; + // that.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; + // that.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; + // that.globalData.userurl = 'https://hsgcs.dctpay.com/user'; + // that.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; + // that.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; + // that.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; + // that.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; - // that.globalData.url = 'https://hsg.dctpay.com/crest'; - // that.globalData.v1url = 'https://hsg.dctpay.com/v1'; - // that.globalData.orderurl = 'https://hsg.dctpay.com/order'; - // that.globalData.userurl = 'https://hsg.dctpay.com/user'; - // that.globalData.brestUrl = 'https://hsg.dctpay.com/brest'; - // that.globalData.imgUrl = 'https://hsg.dctpay.com/filesystem/'; - // that.globalData.imageWxImg = 'https://hsg.dctpay.com/filesystem/wxApplets/'; - // that.globalData.imageqrImg = 'https://hsg.dctpay.com/filesystem/temporary/'; + that.globalData.url = 'https://hsg.dctpay.com/crest'; + that.globalData.v1url = 'https://hsg.dctpay.com/v1'; + that.globalData.orderurl = 'https://hsg.dctpay.com/order'; + that.globalData.userurl = 'https://hsg.dctpay.com/user'; + that.globalData.brestUrl = 'https://hsg.dctpay.com/brest'; + that.globalData.imgUrl = 'https://hsg.dctpay.com/filesystem/'; + that.globalData.imageWxImg = 'https://hsg.dctpay.com/filesystem/wxApplets/'; + that.globalData.imageqrImg = 'https://hsg.dctpay.com/filesystem/temporary/'; uni.getStorage({ key: 'openId', success(e) {