正式环境
This commit is contained in:
@@ -9,8 +9,8 @@ import { router } from '@/router/index.js'
|
|||||||
|
|
||||||
// 基础配置
|
// 基础配置
|
||||||
const config = {
|
const config = {
|
||||||
apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', // 测试环境
|
// apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', // 测试环境
|
||||||
// apiUrl : 'https://douhuo.douhuofalv.com/api/', // 正式环境
|
apiUrl : 'https://douhuo.douhuofalv.com/api/', // 正式环境
|
||||||
timeout : 60000
|
timeout : 60000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,8 +116,7 @@
|
|||||||
params: {
|
params: {
|
||||||
orderId : order_id,
|
orderId : order_id,
|
||||||
orderType : order_type,
|
orderType : order_type,
|
||||||
price : this.allPrice
|
},
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<!-- web.douhuotest.douhuofalv dev=0是线上 dev=1是线下 -->
|
<!-- web.douhuotest.douhuofalv dev=0是线上 dev=1是线下 -->
|
||||||
<wx-open-launch-weapp
|
<wx-open-launch-weapp
|
||||||
username="gh_918c81628d6f"
|
username="gh_918c81628d6f"
|
||||||
:path="'pages/pay/pay?type=h5&dev=1&trade_id=' + tradeId + '&token=' + token"
|
:path="'pages/pay/pay?type=h5&dev=0&trade_id=' + tradeId + '&token=' + token"
|
||||||
>
|
>
|
||||||
<script type="text/wxtag-template">
|
<script type="text/wxtag-template">
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
<!-- web.douhuotest.douhuofalv dev=0是线上 dev=1是线下 -->
|
<!-- web.douhuotest.douhuofalv dev=0是线上 dev=1是线下 -->
|
||||||
<wx-open-launch-weapp
|
<wx-open-launch-weapp
|
||||||
username="gh_918c81628d6f"
|
username="gh_918c81628d6f"
|
||||||
:path="'pages/pay/pay?type=h5&dev=1&trade_id=' + tradeId + '&token=' + token"
|
:path="'pages/pay/pay?type=h5&dev=0&trade_id=' + tradeId + '&token=' + token"
|
||||||
>
|
>
|
||||||
<script type="text/wxtag-template">
|
<script type="text/wxtag-template">
|
||||||
<style>
|
<style>
|
||||||
@@ -349,8 +349,8 @@
|
|||||||
|
|
||||||
// 获取微信授权信息-获取oppid
|
// 获取微信授权信息-获取oppid
|
||||||
authFollow({
|
authFollow({
|
||||||
// url: 'https://web.douhuofalv.com/webWechat/index?id=' + this.$Route.query.id + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
url: 'https://web.douhuofalv.com/webWechat/index?id=' + this.$Route.query.id + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
||||||
url: 'https://web.douhuotest.douhuofalv.com/webWechat/index?id=' + this.orderId + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
// url: 'https://web.douhuotest.douhuofalv.com/webWechat/index?id=' + this.orderId + '&style=' + this.$Route.query.style + '&price=' + this.$Route.query.price
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
window.location.href = res
|
window.location.href = res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ router.beforeEach((to, from, next) => {
|
|||||||
// 检查用户是否授权了微信
|
// 检查用户是否授权了微信
|
||||||
if(to.name != 'webWechatIndex' && openId === ''){
|
if(to.name != 'webWechatIndex' && openId === ''){
|
||||||
authFollow({
|
authFollow({
|
||||||
url: 'https://web.douhuotest.douhuofalv.com/webWechat/index'
|
// url: 'https://web.douhuotest.douhuofalv.com/webWechat/index'
|
||||||
// url: 'https://web.douhuofalv.com/webWechat/index'
|
url: 'https://web.douhuofalv.com/webWechat/index'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
window.location.href = res
|
window.location.href = res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
Reference in New Issue
Block a user