Kaynağa Gözat

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/wechat into dev

许成详 6 yıl önce
ebeveyn
işleme
bb61dcae06

+ 10
- 3
src/pages/user/App.vue Dosyayı Görüntüle

@@ -1,6 +1,6 @@
1 1
 <template>
2
-  <div id="app">
3
-    <router-view></router-view>
2
+  <div id="app" v-if="showPage">
3
+    <router-view ></router-view>
4 4
   </div>
5 5
 </template>
6 6
 
@@ -10,6 +10,11 @@ import { mapState, createNamespacedHelpers } from 'vuex'
10 10
 const { mapActions: actions } = createNamespacedHelpers('userCenter')
11 11
 export default {
12 12
   name: 'app',
13
+  data () {
14
+    return {
15
+      showPage: false
16
+    }
17
+  },
13 18
   components: {},
14 19
   computed: {
15 20
     ...mapState({
@@ -23,7 +28,9 @@ export default {
23 28
     } else {
24 29
       this.code = null
25 30
     }
26
-    this.getUserInfo({ org: this.org, code: this.code })
31
+    this.getUserInfo({ org: this.org, code: this.code }).then(() => {
32
+      this.showPage = true
33
+    })
27 34
   },
28 35
   methods: {
29 36
     ...actions(['getUserInfo'])

+ 9
- 7
src/pages/user/mainPage/userCenter/index.vue Dosyayı Görüntüle

@@ -79,13 +79,15 @@ export default {
79 79
   components: {
80 80
 
81 81
   },
82
-  created () {
83
-    if (this.userInfo != 406) {
84
-      this.user = this.userInfo.customer
85
-      this.AccountInfo = JSON.parse(this.user.AccountInfo)
86
-      this.headimgurl = this.AccountInfo.headimgurl
87
-      this.isLoading = false
88
-    }
82
+  mounted () {
83
+    this.$nextTick(() => {
84
+      if (this.userInfo != 406) {
85
+        this.user = this.userInfo.customer
86
+        this.AccountInfo = JSON.parse(this.user.AccountInfo)
87
+        this.headimgurl = this.AccountInfo.headimgurl
88
+        this.isLoading = false
89
+      }
90
+    })
89 91
   },
90 92
   methods: {
91 93
     ...actions(['getUserInfo']),

+ 1
- 0
src/pages/user/orderList/index.vue Dosyayı Görüntüle

@@ -87,6 +87,7 @@ export default {
87 87
       Math.ceil(this.orders.pagenum / this.orders.pagesize) > this.page ? this.hasMore = true : this.hasMore = false
88 88
       // this.list.length <= 8 ? this.hasMore = true : this.hasMore = false
89 89
       if (this.hasMore) {
90
+        this.page = this.page+1
90 91
         setTimeout(() => {
91 92
           _that.getCustomerGoodsOrder({
92 93
             page: _that.page,

+ 1
- 1
vue.config.js Dosyayı Görüntüle

@@ -26,7 +26,7 @@ module.exports = {
26 26
       '/api': {
27 27
         // target: 'https://dp.huiju360.com.cn/hj_operations',
28 28
         // target: 'http://192.168.0.62:8080', //wf
29
-        target: 'http://192.168.0.11:8080', //ys
29
+        target: 'http://192.168.0.11', //ys
30 30
         // target: 'http://dev.ycjcjy.com', //frp
31 31
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
32 32
         // pathRewrite: {