laosan2382995021@163.com 3 лет назад
Родитель
Сommit
67579f30ac

BIN
bugs/农产品-王垚.doc


BIN
bugs/农产品小程序测试.docx


BIN
bugs/刘帅--农产品测试.docx


BIN
bugs/周农产品返馈.doc


BIN
bugs/李振农产品测试.docx


BIN
bugs/沣胜农产品.docx


BIN
bugs/许犇-农产品.docx


BIN
logo标记颜色可以调重一点.docx


BIN
servie-icon.png


Разница между файлами не показана из-за своего большого размера
+ 1 - 1
uni-shop/config/config.js


+ 7 - 1
uni-shop/mixins/global.js

@@ -1,12 +1,18 @@
 import car from '@/utils/controls/car';
 import user from '@/user';
+import config from '@/config/config';
 export default {
 
+    onLoad(){
+      this.name = (this.__route__ || '').split('/').pop();
+    },
+
     onShow(){
         // 更新针对 购物车的数量角标
         if (!car.__load && !car.status && user.user && user.isLogin()) {
             car.getCartNumber(true).then(()=> car.__load = true);
         }
+        config.page = this;
         car.checkSet();
     },
 
@@ -26,4 +32,4 @@ export default {
         }
     }
 
-}
+}

+ 6 - 2
uni-shop/pages/login/login.vue

@@ -101,9 +101,13 @@ export default {
     },
     loginSuccessCallBack(){
 
-      if (this.$params.mode) {
+      if (this.$params.router) {
 
+        return this.$router.autoRouter(this.$params.router).then(()=>{
 
+        }).catch(()=>{
+          this.$router.switchTab('index');
+        });
 
       } else {
         return this.$router.navigateBack().then(()=>{
@@ -138,4 +142,4 @@ export default {
 
 <style scoped lang="scss" src="./style.scss">
 
-</style>
+</style>

BIN
uni-shop/static/images/servie-icon.png


+ 3 - 2
uni-shop/store/modules/user.js

@@ -62,7 +62,8 @@ export default {
             return new Promise((resolve, reject)=>{
                 $request({
                     url:'user/getUserInfo',
-                    token:true
+                    token:true,
+                    login:false
                 }).then((data)=>{
                     data = data.data || {};
                     data = {
@@ -76,4 +77,4 @@ export default {
             });
         }
     }
-}
+}

Разница между файлами не показана из-за своего большого размера
+ 11 - 9
uni-shop/utils/request/instructions/plugins/control.js


Некоторые файлы не были показаны из-за большого количества измененных файлов