|
@@ -1,6 +1,6 @@
|
|
|
<script>
|
|
|
const uat_URL = 'http://carwash.test.zyucgj.com/cw-wechat/' // 预发布
|
|
|
- // const uat_URL = 'http://192.168.16.102:8103/cw-wechat/' // 本地
|
|
|
+ // const uat_URL = 'http://192.168.16.105:8103/cw-wechat/' // 本地
|
|
|
const pro_URL = 'http://carwash.zyucgj.com/saas/clz/' // 生产
|
|
|
const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
|
|
|
const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url
|
|
@@ -29,7 +29,7 @@
|
|
|
onShow: function() {
|
|
|
const pages = getCurrentPages(); // 获取加载的页面
|
|
|
const currentPage = pages[pages.length - 1]; // 获取当前页面的对象
|
|
|
- let url = currentPage.route; // 当前页面url
|
|
|
+ let url = currentPage ? currentPage.route :''; // 当前页面url
|
|
|
// console.log(url,'App Show')
|
|
|
// 用户扫描二维码后进入下单页面 未支付时,切换小程序至后台,再次显示时 进入首页
|
|
|
if(this.$store.state.vuex_orderInfo.orderStatus != 'PAID'&&url=='pages/getOrder/getOrder') {
|