zhangdan пре 4 година
родитељ
комит
f2d8eabc33
2 измењених фајлова са 5 додато и 4 уклоњено
  1. 3 3
      App.vue
  2. 2 1
      pages/index/index.vue

+ 3 - 3
App.vue

@@ -1,10 +1,10 @@
 <script>
-	const uat_domain = 'https://cust.test.sxzxyj.net' // 预发布
-	// const uat_domain = 'http://192.168.16.213:8308' // 本地
+	// const uat_domain = 'https://cust.test.sxzxyj.net' // 预发布
+	const uat_domain = 'http://192.168.16.213:8308' // 本地
 	const pro_domain = 'https://cust.sxzxyj.net' // 生产
 	const uat_URL = uat_domain+'/gc-cust/' // 预发布
 	const pro_URL = pro_domain+'/gc-cust/'  // 生产
-	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
+	const buildType = 1 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url
 	const envText = ['预发布环境','生产环境']
 	const envTips = process.env.NODE_ENV == 'development' ? envText[0] : envText[buildType]

+ 2 - 1
pages/index/index.vue

@@ -138,6 +138,7 @@
 		},
 		onLoad() {
 			this.geRubbishTypeList()
+			this.getBanner()
 			this.pageInit()
 		},
 		onUnload() {
@@ -148,6 +149,7 @@
 		onShareTimeline(res) {
 		},
 		onShow() {
+			this.getBanner()
 			this.geRubbishTypeList()
 			checkLogin().then(res => {
 				this.hasLogin=res.status==200
@@ -161,7 +163,6 @@
 		methods: {
 			pageInit() {
 				this.orderTime=''
-				this.getBanner()
 				this.getOrderStatus()
 				this.checkUpdate()
 			},