panhui 3 лет назад
Родитель
Сommit
a015e11fb6
73 измененных файлов с 1082 добавлено и 818 удалено
  1. 2 2
      src/components/AppBar.vue
  2. 1 1
      src/components/CouponInfo.vue
  3. 1 1
      src/components/TuanRank.vue
  4. 1 1
      src/components/asset/assetInfo.vue
  5. 1 1
      src/components/asset/assetInfoSe.vue
  6. 1 1
      src/components/asset/showInfo.vue
  7. 5 5
      src/components/auction/asset.vue
  8. 16 4
      src/components/auction/deposit.vue
  9. 1 1
      src/components/auction/info.vue
  10. 1 1
      src/components/auction/infoLarge.vue
  11. 1 1
      src/components/creator/CreatorInfo.vue
  12. 1 1
      src/components/creator/CreatorSmall.vue
  13. 1 1
      src/components/order/OrderInfo.vue
  14. 1 1
      src/components/order/OrderInfoAct.vue
  15. 2 2
      src/components/order/OrderInfoAuction.vue
  16. 1 1
      src/components/product/NewsInfo.vue
  17. 1 1
      src/components/product/NewsLarge.vue
  18. 1 1
      src/components/product/NewsSmall.vue
  19. 1 1
      src/components/product/SaleInfo.vue
  20. 1 1
      src/components/product/productInfo.vue
  21. 1 1
      src/components/product/productLarge.vue
  22. 9 5
      src/mixins/banner.js
  23. 6 4
      src/mixins/common.js
  24. 647 639
      src/router/index.js
  25. 103 0
      src/views/CompanyIndex.vue
  26. 4 2
      src/views/Creator.vue
  27. 5 5
      src/views/Discover.vue
  28. 5 5
      src/views/DiscoverPre.vue
  29. 9 3
      src/views/Givesubmit.vue
  30. 12 3
      src/views/HomePre.vue
  31. 7 1
      src/views/Index.vue
  32. 28 17
      src/views/Mine.vue
  33. 1 1
      src/views/Store.vue
  34. 6 4
      src/views/Submit.vue
  35. 4 4
      src/views/account/About.vue
  36. 2 2
      src/views/account/Authentication.vue
  37. 14 6
      src/views/account/Login.vue
  38. 4 2
      src/views/account/Message.vue
  39. 12 4
      src/views/account/Register.vue
  40. 3 3
      src/views/account/Security.vue
  41. 2 2
      src/views/account/Setting.vue
  42. 1 1
      src/views/account/Verified.vue
  43. 1 1
      src/views/account/VerifiedSucs.vue
  44. 7 1
      src/views/account/Waiting.vue
  45. 3 3
      src/views/activity/ChooseProduct.vue
  46. 6 1
      src/views/activity/Detail1.vue
  47. 1 1
      src/views/activity/List.vue
  48. 1 1
      src/views/activity/List1.vue
  49. 14 6
      src/views/activity/Submit.vue
  50. 4 2
      src/views/asset/AuctionPublish.vue
  51. 4 2
      src/views/asset/Consignment.vue
  52. 7 7
      src/views/asset/Detail.vue
  53. 10 1
      src/views/asset/GiveSearch.vue
  54. 1 1
      src/views/auction/Detail.vue
  55. 13 4
      src/views/auction/Home.vue
  56. 1 1
      src/views/auction/List.vue
  57. 20 6
      src/views/auction/Submit.vue
  58. 5 1
      src/views/creator/Detail.vue
  59. 1 1
      src/views/creator/Home.vue
  60. 6 1
      src/views/creator/List.vue
  61. 20 7
      src/views/hall/Detail.vue
  62. 2 2
      src/views/order/ActivityOrders.vue
  63. 2 2
      src/views/order/AuctionOrders.vue
  64. 2 2
      src/views/order/Orders.vue
  65. 4 2
      src/views/pay/BankPay.vue
  66. 6 6
      src/views/product/Detail.vue
  67. 2 2
      src/views/product/DetailMode.vue
  68. 2 2
      src/views/product/DetailPre.vue
  69. 5 3
      src/views/product/HopeMarket.vue
  70. 1 1
      src/views/product/List.vue
  71. 2 2
      src/views/product/Tasks.vue
  72. 2 2
      src/views/user/Address.vue
  73. 1 1
      src/views/user/Banks.vue

+ 2 - 2
src/components/AppBar.vue

@@ -147,12 +147,12 @@ export default {
                 setTimeout(() => {
                     this.setKeeps([], true, true);
                 }, 10);
-                this.$router.push(val.value);
+                this.$router.push(`/${this.$route.params.companyId}${val.value}`);
             }
         },
         back() {
             if (window.history.length <= 1) {
-                this.$router.push({ path: '/' });
+                this.$router.push({ path: '/' + this.$route.params.companyId + '/' });
                 return false;
             } else {
                 this.$router.go(-1);

+ 1 - 1
src/components/CouponInfo.vue

@@ -61,7 +61,7 @@ export default {
             }
         },
         goDetail() {
-            this.$router.replace('/home');
+            this.$router.replace('/' + this.$route.params.companyId + '/home');
         }
     }
 };

+ 1 - 1
src/components/TuanRank.vue

@@ -28,7 +28,7 @@ export default {
     },
     methods: {
         goActivityRank() {
-            this.$router.push('/activityRank');
+            this.$router.push('/' + this.$route.params.companyId + '/activityRank');
         }
     }
 };

+ 1 - 1
src/components/asset/assetInfo.vue

@@ -148,7 +148,7 @@ export default {
                 this.$emit('showMore', this.info);
             } else {
                 this.$router.push({
-                    path: '/assetDetail',
+                    path: '/' + this.$route.params.companyId + '/assetDetail',
                     query: {
                         id: this.info.assetId || this.info.id
                     }

+ 1 - 1
src/components/asset/assetInfoSe.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/assetDetail',
+            path: '/' + $route.params.companyId + '/assetDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/asset/showInfo.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/hall',
+            path: '/' + $route.params.companyId + '/hall',
             query: {
                 id: info.id
             }

+ 5 - 5
src/components/auction/asset.vue

@@ -12,7 +12,7 @@
                     <van-cell
                         class="creator"
                         :to="{
-                            path: '/creatorDetail',
+                            path: '/' + $route.params.companyId + '/creatorDetail',
                             query: {
                                 id: info.minterId
                             }
@@ -36,7 +36,7 @@
                         v-if="info.ownerId !== info.minterId"
                         class="creator"
                         :to="{
-                            path: '/creatorDetail',
+                            path: '/' + $route.params.companyId + '/creatorDetail',
                             query: {
                                 id: info.ownerId,
                                 type: 'DEFAULT'
@@ -413,7 +413,7 @@ export default {
                         .then(() => {});
                 } else {
                     this.$router.push({
-                        path: '/submit',
+                        path: '/' + this.$route.params.companyId + '/submit',
                         query: {
                             id: this.collectionId,
                             invitor: this.$route.query.invitor
@@ -424,9 +424,9 @@ export default {
         },
         goAuth() {
             if (this.authStatus === '认证中' || this.authStatus === '认证失败') {
-                this.$router.push('/waiting');
+                this.$router.push('/' + this.$route.params.companyId + '/waiting');
             } else if (this.authStatus === '未认证') {
-                this.$router.push('/Authentication');
+                this.$router.push('/' + this.$route.params.companyId + '/Authentication');
             }
         },
         share() {

+ 16 - 4
src/components/auction/deposit.vue

@@ -214,7 +214,9 @@ export default {
             });
         },
         onAdd() {
-            this.$router.push('/mineAddress?page=submit&chooseId=' + this.addressInfo.id);
+            this.$router.push(
+                '/' + this.$route.params.companyId + '/mineAddress?page=submit&chooseId=' + this.addressInfo.id
+            );
         },
         init(money = 0) {
             this.money = money;
@@ -364,7 +366,13 @@ export default {
                 this.$nextTick(() => {
                     if (this.payType === 'SYXPAY') {
                         this.$toast.clear();
-                        this.$router.push('/bankPay?id=' + this.orderId + '&type=auction&paymentType=DEPOSIT');
+                        this.$router.push(
+                            '/' +
+                                this.$route.params.companyId +
+                                '/bankPay?id=' +
+                                this.orderId +
+                                '&type=auction&paymentType=DEPOSIT'
+                        );
                     } else if (this.$store.state.review) {
                         window.store.order('358');
                         this.getOrder(true);
@@ -504,7 +512,9 @@ export default {
                     this.$nextTick(() => {
                         if (this.payType === 'SYXPAY') {
                             this.$toast.clear();
-                            this.$router.replace('/bankPay?id=' + this.orderId + '&type=auction');
+                            this.$router.replace(
+                                '/' + this.$route.params.companyId + '/bankPay?id=' + this.orderId + '&type=auction'
+                            );
                         } else if (this.$store.state.review) {
                             window.store.order('358');
                             this.getOrder(true);
@@ -551,7 +561,9 @@ export default {
                                             success(res) {
                                                 this.$toast.success('支付成功');
                                                 setTimeout(() => {
-                                                    this.$router.replace('/orders');
+                                                    this.$router.replace(
+                                                        '/' + this.$route.params.companyId + '/orders'
+                                                    );
                                                 }, 1000);
                                             },
                                             fail(e) {

+ 1 - 1
src/components/auction/info.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/auctionDetail',
+            path: '/' + $route.params.companyId + '/auctionDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/auction/infoLarge.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/auctionDetail',
+            path: '/' + $route.params.companyId + '/auctionDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/creator/CreatorInfo.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/creatorDetail',
+            path: '/' + $route.params.companyId + '/creatorDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/creator/CreatorSmall.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/creatorDetail',
+            path: '/' + $route.params.companyId + '/creatorDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/order/OrderInfo.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/orderDetail',
+            path: '/' + $route.params.companyId + '/orderDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/order/OrderInfoAct.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/activityOrderDetail',
+            path: '/' + $route.params.companyId + '/activityOrderDetail',
             query: {
                 id: info.id
             }

+ 2 - 2
src/components/order/OrderInfoAuction.vue

@@ -261,14 +261,14 @@ export default {
         goDetail() {
             if (this.info.orderId || this.isOrder) {
                 this.$router.push({
-                    path: '/auctionOrderDetail',
+                    path: '/' + this.$route.params.companyId + '/auctionOrderDetail',
                     query: {
                         id: this.isOrder ? this.info.id : this.info.orderId
                     }
                 });
             } else {
                 this.$router.push({
-                    path: '/auctionDetail',
+                    path: '/' + this.$route.params.companyId + '/auctionDetail',
                     query: {
                         id: this.info.auctionId
                     }

+ 1 - 1
src/components/product/NewsInfo.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/newsDetail',
+            path: '/' + $route.params.companyId + '/newsDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/product/NewsLarge.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/newsDetail',
+            path: '/' + $route.params.companyId + '/newsDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/product/NewsSmall.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: '/newsDetail',
+            path: '/' + $route.params.companyId + '/newsDetail',
             query: {
                 id: info.id
             }

+ 1 - 1
src/components/product/SaleInfo.vue

@@ -93,7 +93,7 @@ export default {
         goDetail(info) {
             if (!info.soldOut) {
                 this.$router.push({
-                    path: '/productDetail/' + info.id
+                    path: '/' + this.$route.params.companyId + '/productDetail/' + info.id
                 });
             }
         },

+ 1 - 1
src/components/product/productInfo.vue

@@ -117,7 +117,7 @@ export default {
                     query.type = this.type;
                 }
                 this.$router.push({
-                    path: '/productDetail/' + this.info.id,
+                    path: '/' + this.$route.params.companyId + '/productDetail/' + this.info.id,
                     query
                 });
             }

+ 1 - 1
src/components/product/productLarge.vue

@@ -1,7 +1,7 @@
 <template>
     <router-link
         :to="{
-            path: type === 'collection' ? '/productDetail/' + info.id : '/newsDetail',
+            path: '/' + $route.params.companyId + (type === 'collection' ? '/productDetail/' + info.id : '/newsDetail'),
             query: {
                 id: info.id
             }

+ 9 - 5
src/mixins/banner.js

@@ -11,18 +11,22 @@ export default {
             }
             console.log(info.linkContent);
             if (info.link && info.linkType === 'collection') {
-                this.$router.push(`/productDetail/${info.linkContent}${props}`);
+                this.$router.push('/' + this.$route.params.companyId + `/productDetail/${info.linkContent}${props}`);
             } else if (info.link && info.linkType === 'user') {
-                this.$router.push(`/creatorDetail?id=${info.linkContent}${props}`);
+                this.$router.push('/' + this.$route.params.companyId + `/creatorDetail?id=${info.linkContent}${props}`);
             } else if (info.link && info.linkType === 'activity') {
-                this.$router.push(`/activityDetail?id=${info.linkContent}${props}`);
+                this.$router.push(
+                    '/' + this.$route.params.companyId + `/activityDetail?id=${info.linkContent}${props}`
+                );
             } else if (info.link && info.linkType === 'collections') {
                 info.linkContent = encodeURIComponent(info.linkContent);
                 // this.$router.push(`/productSearch?search=${info.linkContent}${props}`);
-                this.$router.push(`/productSearchCorpse?search=${info.linkContent}${props}`);
+                this.$router.push(
+                    '/' + this.$route.params.companyId + `/productSearchCorpse?search=${info.linkContent}${props}`
+                );
             } else if (info.link && info.linkType === 'showroom') {
                 info.linkContent = encodeURIComponent(info.linkContent);
-                this.$router.push(`/hall?id=${info.linkContent}${props}`);
+                this.$router.push('/' + this.$route.params.companyId + `/hall?id=${info.linkContent}${props}`);
             } else if (info.link && info.linkType === 'hyperlink') {
                 info.linkContent = info.linkContent.replace(location.origin + '/saas', '');
                 if (info.linkContent.indexOf('http') !== -1) {

+ 6 - 4
src/mixins/common.js

@@ -134,7 +134,7 @@ export default {
                           confirmButtonText: '前往绑定'
                       })
                       .then(() => {
-                          this.$router.push('/mineBanks');
+                          this.$router.push('/' + this.$route.params.companyId + '/mineBanks');
                           return Promise.reject();
                       })
                       .catch(() => {
@@ -153,9 +153,9 @@ export default {
                     })
                     .then(() => {
                         if (this.authStatus === '认证中' || this.authStatus === '认证失败') {
-                            this.$router.push('/waiting');
+                            this.$router.push('/' + this.$route.params.companyId + '/waiting');
                         } else if (this.authStatus === '未认证') {
-                            this.$router.push('/Authentication');
+                            this.$router.push('/' + this.$route.params.companyId + '/Authentication');
                         }
                     });
                 return Promise.reject();
@@ -172,7 +172,9 @@ export default {
                         confirmButtonText: '立即登录'
                     })
                     .then(() => {
-                        this.$router.push('/login');
+                        this.$router.push({
+                            name: 'userLogin'
+                        });
                     });
                 return Promise.reject();
             }

Разница между файлами не показана из-за своего большого размера
+ 647 - 639
src/router/index.js


+ 103 - 0
src/views/CompanyIndex.vue

@@ -0,0 +1,103 @@
+<template>
+    <router-view v-slot="{ Component }">
+        <keep-alive :include="keeps">
+            <component :is="Component" class="scroll-content" ref="content" :style="scrollStyle" />
+        </keep-alive>
+    </router-view>
+</template>
+
+<script>
+import { computed } from 'vue';
+import { mapState } from 'vuex';
+export default {
+    name: 'App',
+    provide() {
+        return {
+            setKeeps: this.setKeeps,
+            bar: computed(() => this.barValue),
+            content: computed(() => this.$refs.content),
+            scrollWrapper: computed(() => this.$el),
+            changeScroll: this.changeScroll,
+            keeps: computed(() => this.keeps),
+            bodyScroll: computed(() => this.bodyScroll),
+            changeTab: this.changeTab
+        };
+    },
+    inject: ['barHeight'],
+    computed: {
+        ...mapState(['theme']),
+        barValue() {
+            return this.$refs.bar;
+        },
+        scrollStyle() {
+            return {
+                boxSizing: 'border-box',
+                minHeight: `calc(100vh - ${(this.barHeight || '0') + 'px'})`
+            };
+        }
+    },
+    data() {
+        return {
+            checkEvent: null,
+            keeps: [],
+            bodyScroll: 0
+        };
+    },
+    watch: {
+        $route() {
+            this.$nextTick(() => {
+                this.$el.scrollTop = 0;
+            });
+        }
+    },
+    mounted() {
+        if (this.$route.params.companyId) {
+            this.$store.dispatch('getCompanyInfo', this.$route.params.companyId);
+        }
+    },
+    methods: {
+        setKeeps(keep = [], isAdd = true, isClear = false) {
+            let keeps = [...this.keeps];
+            if (isAdd) {
+                keeps = [...keeps, ...keep];
+            } else {
+                keeps = keeps.filter(item => {
+                    return !keep.includes(item);
+                });
+            }
+            if (isClear) {
+                keeps = [];
+            }
+            this.keeps = keeps;
+        },
+        changeScroll(scrollTop, isAnimate = false) {
+            console.log(scrollTop);
+            if (isAnimate) {
+                this.$el.scrollTo({
+                    top: scrollTop || 0,
+                    behavior: 'smooth'
+                });
+            } else {
+                this.$el.scrollTop = scrollTop || 0;
+            }
+        },
+        scrollEvent() {
+            // console.log(this.$el.scrollTop);
+            this.bodyScroll = this.$el.scrollTop;
+        },
+        changeTab(color) {
+            this.$refs.bar.getColor(color);
+        }
+    }
+};
+</script>
+
+<style lang="less" scoped>
+.scroll-content {
+    box-sizing: border-box;
+    // padding-top: 46px;
+}
+.scroll-wrapper {
+    background-color: @bg;
+}
+</style>

+ 4 - 2
src/views/Creator.vue

@@ -3,10 +3,12 @@
         <van-sticky ref="top" :offset-top="bar && bar.show ? bar.height : 0">
             <div class="top">
                 <div class="top-btn">
-                    <div class="btn" @click="$router.replace('/discover')">收藏探索</div>
+                    <div class="btn" @click="$router.replace('/' + $route.params.companyId + '/discover')">
+                        收藏探索
+                    </div>
                     <div class="btn active">铸造者</div>
                 </div>
-                <div class="search" @click="$router.push('/creatorSearch')">
+                <div class="search" @click="$router.push('/' + $route.params.companyId + '/creatorSearch')">
                     <img src="@assets/svgs/search.svg" alt="" />
                 </div>
             </div>

+ 5 - 5
src/views/Discover.vue

@@ -11,7 +11,7 @@
                 <div class="top">
                     <img src="@assets/nav_logo.png" class="logo" alt="" />
 
-                    <div class="search" @click="$router.push('/productSearch')">
+                    <div class="search" @click="$router.push('/' + $route.params.companyId + '/productSearch')">
                         <img src="@assets/icon-sosuo.png" alt="" />
                         <span>搜索你要的精彩</span>
                     </div>
@@ -75,7 +75,7 @@
             <van-grid-item
                 text="绿洲头条"
                 :to="{
-                    path: '/newsList'
+                    path: '/' + $route.params.companyId + '/newsList'
                 }"
             >
                 <template v-slot:icon>
@@ -97,7 +97,7 @@
                 </template>
             </van-grid-item>
 
-            <van-grid-item text="铸造中心" :to="{ path: '/activityList' }">
+            <van-grid-item text="铸造中心" :to="{ path: '/' + $route.params.companyId + '/activityList' }">
                 <template v-slot:icon>
                     <img class="grid-img" src="@assets/info_icon_weshoushichang.png" />
                 </template>
@@ -404,7 +404,7 @@ export default {
                 .get('/sysConfig/get/hall_show')
                 .then(res => {
                     if (res.value === true || res.value === '1') {
-                        this.$router.push('/hallList');
+                        this.$router.push('/' + this.$route.params.companyId + '/hallList');
                     } else {
                         return Promise.reject();
                     }
@@ -418,7 +418,7 @@ export default {
                 .get('/sysConfig/get/auction_show')
                 .then(res => {
                     if (res.value === true || res.value === '1') {
-                        this.$router.push('/auction');
+                        this.$router.push('/' + this.$route.params.companyId + '/auction');
                     } else {
                         return Promise.reject();
                     }

+ 5 - 5
src/views/DiscoverPre.vue

@@ -4,9 +4,9 @@
             <div class="top">
                 <div class="top-btn">
                     <div class="btn active">收藏探索</div>
-                    <div class="btn" @click="$router.replace('/creator')">铸造者</div>
+                    <div class="btn" @click="$router.replace('/' + $route.params.companyId + '/creator')">铸造者</div>
                 </div>
-                <div class="search" @click="$router.push('/productSearch')">
+                <div class="search" @click="$router.push('/' + $route.params.companyId + '/productSearch')">
                     <img src="@assets/svgs/search.svg" alt="" />
                 </div>
             </div>
@@ -19,7 +19,7 @@
         </swiper>
 
         <van-grid :border="false">
-            <van-grid-item text="精选推荐" :to="{ path: '/productList' }">
+            <van-grid-item text="精选推荐" :to="{ path: '/' + $route.params.companyId + '/productList' }">
                 <template v-slot:icon>
                     <img class="grid-img" src="@assets/info_icon_jingxuanxilie.png" />
                 </template>
@@ -27,7 +27,7 @@
             <van-grid-item
                 text="原创系列"
                 :to="{
-                    path: '/productList',
+                    path: '/' + $route.params.companyId + '/productList',
                     query: {
                         type: 'DEFAULT'
                     }
@@ -40,7 +40,7 @@
             <van-grid-item
                 text="数字盲盒"
                 :to="{
-                    path: '/productList',
+                    path: '/' + $route.params.companyId + '/productList',
                     query: {
                         type: 'BLIND_BOX'
                     }

+ 9 - 3
src/views/Givesubmit.vue

@@ -35,9 +35,13 @@
                     close-button-text="完成"
                     random-key-order
                 />
-                <div class="text2" @click="$router.push('/tradingPassword')">忘记密码?</div>
+                <div class="text2" @click="$router.push('/' + $route.params.companyId + '/tradingPassword')">
+                    忘记密码?
+                </div>
+            </div>
+            <div v-else class="text3" @click="$router.push('/' + $route.params.companyId + '/tradingPassword')">
+                您当前没有交易密码,点击去设置
             </div>
-            <div v-else class="text3" @click="$router.push('/tradingPassword')">您当前没有交易密码,点击去设置</div>
         </div>
         <driver />
         <div class="list">
@@ -276,7 +280,9 @@ export default {
             this.$nextTick(() => {
                 if (this.payType === 'SYXPAY') {
                     this.$toast.clear();
-                    this.$router.replace('/bankPay?id=' + this.orderId + '&type=gift');
+                    this.$router.replace(
+                        '/' + this.$route.params.companyId + '/bankPay?id=' + this.orderId + '&type=gift'
+                    );
                 } else if (this.payType === 'ALIPAY') {
                     // document.location.replace(
                     //     resolveUrl(this.$baseUrl, 'payOrder/v2/gift/alipay?id=' + res.id)

+ 12 - 3
src/views/HomePre.vue

@@ -31,14 +31,20 @@
         </swiper>
 
         <div class="box" v-if="box.length > 0">
-            <page-title title="数字盲盒" :to="{ path: '/productList', query: { type: 'BLIND_BOX' } }"></page-title>
+            <page-title
+                title="数字盲盒"
+                :to="{ path: '/' + $route.params.companyId + '/productList', query: { type: 'BLIND_BOX' } }"
+            ></page-title>
             <div class="box-list">
                 <product-info v-for="(item, index) in box" :key="item.id" v-model:info="box[index]"></product-info>
             </div>
         </div>
 
         <div class="box">
-            <page-title title="最HOT收藏品" :to="{ path: '/productList', query: { type: 'DEFAULT' } }"></page-title>
+            <page-title
+                title="最HOT收藏品"
+                :to="{ path: '/' + $route.params.companyId + '/productList', query: { type: 'DEFAULT' } }"
+            ></page-title>
             <div class="box-list">
                 <template v-for="(item, index) in products" :key="item.id">
                     <product-info v-model:info="products[index]"></product-info
@@ -57,7 +63,10 @@
     </div> -->
 
         <div class="casting">
-            <page-title title="最受欢迎铸造者" :to="{ path: '/creatorList' }"></page-title>
+            <page-title
+                title="最受欢迎铸造者"
+                :to="{ path: '/' + $route.params.companyId + '/creatorList' }"
+            ></page-title>
             <template v-for="(item, index) in miners" :key="index">
                 <creator-info
                     :rank="index < 3 ? index + 1 : 0"

+ 7 - 1
src/views/Index.vue

@@ -14,7 +14,13 @@
             ref="tabbar"
             class="bgBack"
         >
-            <van-tabbar-item replace v-for="item in menus" :name="item.name" :to="`/${item.name}`" :key="item.name">
+            <van-tabbar-item
+                replace
+                v-for="item in menus"
+                :name="item.name"
+                :to="`/${$route.params.companyId}/${item.name}`"
+                :key="item.name"
+            >
                 <span>{{ item.title }}</span>
                 <template #icon="props">
                     <van-icon v-if="props.active" class-prefix="font_family" :name="item.preIcon" />

+ 28 - 17
src/views/Mine.vue

@@ -31,7 +31,7 @@
                 <span>编辑</span>
             </div> -->
             <div class="userInfo-content">
-                <div class="userInfo-top" @click="$router.push('/setting')">
+                <div class="userInfo-top" @click="$router.push('/' + $route.params.companyId + '/setting')">
                     <van-image
                         radius="100"
                         width="84"
@@ -81,15 +81,15 @@
                 </div> -->
 
                 <div class="btns">
-                    <div class="collect" @click="$router.push('/store')">
+                    <div class="collect" @click="$router.push('/' + $route.params.companyId + '/store')">
                         <div class="text1">{{ assetNum }}</div>
                         <div class="text2">藏品:</div>
                     </div>
-                    <div class="collect" @click="$router.push('/mineFollowers')">
+                    <div class="collect" @click="$router.push('/' + $route.params.companyId + '/mineFollowers')">
                         <div class="text1">{{ userInfo.followers }}</div>
                         <div class="text2">粉丝:</div>
                     </div>
-                    <div class="collect" @click="$router.push('/mineFollows')">
+                    <div class="collect" @click="$router.push('/' + $route.params.companyId + '/mineFollows')">
                         <div class="text1">{{ userInfo.follows }}</div>
                         <div class="text2">关注:</div>
                     </div>
@@ -98,7 +98,7 @@
         </div>
         <div class="userInfo" v-else>
             <div class="userInfo-content">
-                <div class="userInfo-top" @click="$router.push('/login')">
+                <div class="userInfo-top" @click="$router.push('/' + $route.params.companyId + '/login')">
                     <van-image
                         round
                         width="84"
@@ -115,11 +115,11 @@
             </div>
         </div>
         <div class="orderList">
-            <div class="order-info" @click="$router.push('/orders?type=DEFAULT')">
+            <div class="order-info" @click="$router.push('/' + $route.params.companyId + '/orders?type=DEFAULT')">
                 <img src="@assets/info_icon_yishuping.png" alt="" />
                 <span>我的订单</span>
             </div>
-            <div class="order-info" @click="$router.push('/mineWallet')">
+            <div class="order-info" @click="$router.push('/' + $route.params.companyId + '/mineWallet')">
                 <img src="@assets/icon_qianbao.png" alt="" />
                 <span>我的钱包</span>
             </div>
@@ -129,27 +129,37 @@
             </div>
         </div>
         <van-cell-group class="menus" :border="false">
-            <van-cell title="我喜欢的" :to="{ path: '/mineLikes' }" is-link>
+            <van-cell title="我喜欢的" :to="{ path: '/' + $route.params.companyId + '/mineLikes' }" is-link>
                 <template #icon>
                     <van-icon :name="require('@assets/icon-woxihuande.png')" class="search-icon" />
                 </template>
             </van-cell>
-            <van-cell title="交易历史" :to="{ path: '/mineExchange' }" v-if="!$store.state.review" is-link>
+            <van-cell
+                title="交易历史"
+                :to="{ path: '/' + $route.params.companyId + '/mineExchange' }"
+                v-if="!$store.state.review"
+                is-link
+            >
                 <template #icon>
                     <van-icon :name="require('@assets/info_icon_jiaoyijilu.png')" class="search-icon" />
                 </template>
             </van-cell>
-            <van-cell title="客服留言" :to="{ path: '/message' }" v-if="!$store.state.review" is-link>
+            <van-cell
+                title="客服留言"
+                :to="{ path: '/' + $route.params.companyId + '/message' }"
+                v-if="!$store.state.review"
+                is-link
+            >
                 <template #icon>
                     <van-icon :name="require('@assets/icon_kefuliuyan.png')" class="search-icon" />
                 </template>
             </van-cell>
-            <van-cell title="账号与安全" :to="{ path: '/security' }" is-link>
+            <van-cell title="账号与安全" :to="{ path: '/' + $route.params.companyId + '/security' }" is-link>
                 <template #icon>
                     <van-icon :name="require('@assets/icon-anquan.png')" class="search-icon" />
                 </template>
             </van-cell>
-            <van-cell title="关于我们" :border="false" :to="{ path: '/about' }" is-link>
+            <van-cell title="关于我们" :border="false" :to="{ path: '/' + $route.params.companyId + '/about' }" is-link>
                 <template #icon>
                     <van-icon :name="require('@assets/icon-guanyuwomen.png')" class="search-icon" />
                 </template>
@@ -181,7 +191,7 @@ export default {
     },
     components: { Level },
     computed: {
-        ...mapState(['userInfo'])
+        ...mapState(['userInfo', 'companyId'])
     },
     created() {
         this.getInit();
@@ -197,7 +207,8 @@ export default {
                                 page: 0,
                                 size: 1,
                                 userId: this.$store.state.userInfo.id,
-                                status: 'NORMAL,TRADING,GIFTING,MINTING'
+                                status: 'NORMAL,TRADING,GIFTING,MINTING',
+                                companyId: this.companyId
                             }
                         },
                         { body: 'json' }
@@ -227,12 +238,12 @@ export default {
         },
         goAuth() {
             if (this.authStatus === '认证中' || this.authStatus === '认证失败') {
-                this.$router.push('/waiting');
+                this.$router.push('/' + this.$route.params.companyId + '/waiting');
             } else if (this.authStatus === '未认证') {
                 if (this.faceAuth) {
-                    this.$router.push('/faceAuth');
+                    this.$router.push('/' + this.$route.params.companyId + '/faceAuth');
                 } else {
-                    this.$router.push('/verified');
+                    this.$router.push('/' + this.$route.params.companyId + '/verified');
                 }
             }
         },

+ 1 - 1
src/views/Store.vue

@@ -28,7 +28,7 @@
                     <div
                         class="search"
                         v-if="isLogin && active !== 'coupon'"
-                        @click="$router.push('/assetSearch?status=' + status)"
+                        @click="$router.push('/' + this.$route.params.companyId + '/assetSearch?status=' + status)"
                     >
                         <img src="@assets/svgs/search.svg" alt="" />
                     </div>

+ 6 - 4
src/views/Submit.vue

@@ -249,7 +249,7 @@ export default {
                             if (res.status === 'CANCELLED') {
                                 this.$router.back();
                             } else {
-                                this.$router.replace('/orderDetail?id=' + res.id);
+                                this.$router.replace('/' + this.$route.params.companyId + '/orderDetail?id=' + res.id);
                             }
                             // on close
                         });
@@ -364,7 +364,7 @@ export default {
             if (this.money === 0) {
                 this.$toast.success('支付成功');
                 setTimeout(() => {
-                    this.$router.replace('/orderDetail?id=' + this.orderId);
+                    this.$router.replace('/' + this.$route.params.companyId + '/orderDetail?id=' + this.orderId);
                 }, 1000);
                 return;
             }
@@ -450,7 +450,9 @@ export default {
                     .then(res => {
                         this.$toast.success('支付成功');
                         setTimeout(() => {
-                            this.$router.replace('/orderDetail?id=' + this.orderId);
+                            this.$router.replace(
+                                '/' + this.$route.params.companyId + '/orderDetail?id=' + this.orderId
+                            );
                         }, 1000);
                     })
                     .catch(e => {
@@ -461,7 +463,7 @@ export default {
         },
         goCoupon() {
             if (!this.orderId) {
-                this.$router.push('/couponList?collectionId=' + this.info.id);
+                this.$router.push('/' + this.$route.params.companyId + '/couponList?collectionId=' + this.info.id);
             }
         },
         iapEvent(e) {

+ 4 - 4
src/views/account/About.vue

@@ -2,19 +2,19 @@
     <div class="page">
         <div class="title">关于我们</div>
         <van-cell-group :border="false">
-            <van-cell title="平台简介" is-link :to="{ path: '/introduction' }" />
-            <van-cell title="了解更多" is-link :to="{ path: '/question' }" />
+            <van-cell title="平台简介" is-link :to="{ path: '/' + $route.params.companyId + '/introduction' }" />
+            <van-cell title="了解更多" is-link :to="{ path: '/' + $route.params.companyId + '/question' }" />
             <van-cell
                 title="用户协议"
                 is-link
                 :to="{
-                    path: '/agreement',
+                    path: '/' + $route.params.companyId + '/agreement',
                     query: {
                         page: 'service'
                     }
                 }"
             />
-            <van-cell title="隐私政策" is-link :to="{ path: '/agreement' }" />
+            <van-cell title="隐私政策" is-link :to="{ path: '/' + $route.params.companyId + '/agreement' }" />
             <van-cell title="商务合作" @click="show = true" is-link />
         </van-cell-group>
 

+ 2 - 2
src/views/account/Authentication.vue

@@ -63,9 +63,9 @@ export default {
     methods: {
         next() {
             if (this.chooseIndex) {
-                this.$router.push('/verifiedSucs');
+                this.$router.push('/' + this.$route.params.companyId + '/verifiedSucs');
             } else {
-                this.$router.push('/verified');
+                this.$router.push('/' + this.$route.params.companyId + '/verified');
             }
         }
     }

+ 14 - 6
src/views/account/Login.vue

@@ -47,7 +47,11 @@
                 <!-- <van-button plain class="forget" v-if="$store.state.review" @click="getSim"> 获取手机号码 </van-button> -->
 
                 <van-button block native-type="submit" color="#26F50D" class="sure">现在出发!</van-button>
-                <van-button class="del" block plain @click="$router.replace('/register')"
+                <van-button
+                    class="del"
+                    block
+                    plain
+                    @click="$router.replace('/' + $route.params.companyId + '/register')"
                     >暂无RAEX宇宙登陆许可 立即申领</van-button
                 >
             </div>
@@ -103,7 +107,11 @@
         </van-button> -->
 
                 <van-button block native-type="submit" color="#26F50D" class="sure">现在出发!</van-button>
-                <van-button class="del" block plain @click="$router.replace('/register')"
+                <van-button
+                    class="del"
+                    block
+                    plain
+                    @click="$router.replace('/' + $route.params.companyId + '/register')"
                     >暂无RAEX宇宙登陆许可 立即申领</van-button
                 >
             </div>
@@ -112,9 +120,9 @@
         <div class="xieyi">
             <van-checkbox v-model="checked">
                 已阅读并同意
-                <span @click.stop="$router.push('/agreement?page=service')"> 《用户服务协议》 </span>
+                <span @click.stop="$router.push('/' + $route.params.companyId + '/agreement?page=service')"> 《用户服务协议》 </span>
-                <span @click.stop="$router.push('/agreement')"> 《平台隐私协议》 </span>
+                <span @click.stop="$router.push('/' + $route.params.companyId + '/agreement')"> 《平台隐私协议》 </span>
             </van-checkbox>
         </div>
     </div>
@@ -230,14 +238,14 @@ export default {
             setTimeout(() => {
                 this.$toast.clear();
                 if (this.$store.state.loginBackUrl) {
-                    this.$router.replace(this.$store.state.loginBackUrl);
+                    this.$router.replace('/' + this.$route.params.companyId + this.$store.state.loginBackUrl);
                 } else if (
                     !fromRoute ||
                     !fromRoute.name ||
                     fromRoute.name === 'userRegister' ||
                     fromRoute.name === 'userLogin'
                 ) {
-                    this.$router.replace('/home');
+                    this.$router.replace('/' + this.$route.params.companyId + '/home');
                 } else {
                     this.$router.back();
                 }

+ 4 - 2
src/views/account/Message.vue

@@ -19,7 +19,7 @@
             <router-link
                 class="message"
                 :to="{
-                    path: 'messageDetail',
+                    path: '/' + $route.params.companyId + 'messageDetail',
                     query: {
                         id: item.id
                     }
@@ -43,7 +43,9 @@
             <van-empty v-if="empty" description="什么留言都没有哦~" :image="require('@assets/kong.png')" />
         </van-list>
         <div class="bottom">
-            <van-button type="primary" @click="$router.push('/messageAdd')" round block>新建反馈</van-button>
+            <van-button type="primary" @click="$router.push('/' + $route.params.companyId + '/messageAdd')" round block
+                >新建反馈</van-button
+            >
         </div>
     </van-pull-refresh>
 </template>

+ 12 - 4
src/views/account/Register.vue

@@ -118,7 +118,13 @@
             </div>
             <div class="button">
                 <van-button round block native-type="submit" color="#26F50D" class="sure"> 立即申领 </van-button>
-                <van-button class="del" round block plain @click="$router.replace('/login')">
+                <van-button
+                    class="del"
+                    round
+                    block
+                    plain
+                    @click="$router.replace('/' + $route.params.companyId + '/login')"
+                >
                     已有RAEX宇宙登陆许可 去登陆
                 </van-button>
             </div>
@@ -127,9 +133,11 @@
         <div class="xieyi">
             <van-checkbox v-model="checked">
                 已阅读并同意
-                <span @click.stop="$router.push('/agreement?page=service')"> 《用户服务协议》</span>
+                <span @click.stop="$router.push('/' + $route.params.companyId + '/agreement?page=service')">
+                    《用户服务协议》</span
+                >
-                <span @click.stop="$router.push('/agreement')"> 《平台隐私协议》</span>
+                <span @click.stop="$router.push('/' + $route.params.companyId + '/agreement')"> 《平台隐私协议》</span>
             </van-checkbox>
         </div>
     </div>
@@ -193,7 +201,7 @@ export default {
                     this.$toast.success('注册成功');
                     setTimeout(() => {
                         if (!fromRoute.name || fromRoute.name === 'userRegister' || fromRoute.name === 'userLogin') {
-                            this.$router.replace('/home');
+                            this.$router.replace('/' + this.$route.params.companyId + '/home');
                         } else {
                             this.$router.back();
                         }

+ 3 - 3
src/views/account/Security.vue

@@ -2,8 +2,8 @@
     <div class="page">
         <div class="title">账户与安全</div>
         <van-cell-group :border="false">
-            <van-cell title="修改登录密码" :to="{ path: '/forget' }" is-link />
-            <van-cell title="修改支付密码" :to="{ path: '/tradingPassword' }" is-link />
+            <van-cell title="修改登录密码" :to="{ path: '/' + $route.params.companyId + '/forget' }" is-link />
+            <van-cell title="修改支付密码" :to="{ path: '/' + $route.params.companyId + '/tradingPassword' }" is-link />
             <!-- <van-cell title="修改手机号" :to="{ path: '/changePhone' }" is-link /> -->
             <van-cell title="注销账号" @click="cancel" is-link />
         </van-cell-group>
@@ -36,7 +36,7 @@ export default {
                     confirmButtonText: '确认注销'
                 })
                 .then(() => {
-                    this.$router.push('/messageAdd');
+                    this.$router.push('/' + this.$route.params.companyId + '/messageAdd');
                 });
         }
     }

+ 2 - 2
src/views/account/Setting.vue

@@ -18,7 +18,7 @@
             </van-cell>
             <van-cell
                 title="昵称"
-                @click="$router.push('/changeText?type=nickname')"
+                @click="$router.push('/' + $route.params.companyId + '/changeText?type=nickname')"
                 is-link
                 :value="userInfo.nickname"
             />
@@ -32,7 +32,7 @@
             <van-cell
                 title="简介"
                 :class="[userInfo.intro ? 'intro' : 'not']"
-                @click="$router.push('/changeText?type=intro')"
+                @click="$router.push('/' + $route.params.companyId + '/changeText?type=intro')"
                 is-link
                 :value="userInfo.intro || '请添加介绍'"
             />

+ 1 - 1
src/views/account/Verified.vue

@@ -171,7 +171,7 @@ export default {
                         })
                         .then(() => {
                             this.$toast.clear();
-                            this.$router.replace('/Waiting');
+                            this.$router.replace('/' + this.$route.params.companyId + '/Waiting');
                         })
                         .catch(e => {
                             this.$toast(e.error || '提交失败,请稍后再试');

+ 1 - 1
src/views/account/VerifiedSucs.vue

@@ -255,7 +255,7 @@ export default {
                             ...form
                         })
                         .then(() => {
-                            this.$router.replace('/Waiting');
+                            this.$router.replace('/' + this.$route.params.companyId + '/Waiting');
                         });
                 })
                 .catch(() => {

+ 7 - 1
src/views/account/Waiting.vue

@@ -7,7 +7,13 @@
         </div>
 
         <div class="btn" v-if="statusInfo.showBtn">
-            <van-button type="primary" block plain round @click="$router.replace('/Authentication')">
+            <van-button
+                type="primary"
+                block
+                plain
+                round
+                @click="$router.replace('/' + $route.params.companyId + '/Authentication')"
+            >
                 重新申请
             </van-button>
         </div>

+ 3 - 3
src/views/activity/ChooseProduct.vue

@@ -155,11 +155,11 @@ export default {
                     message: '兑换的藏品将在1~3个工作日内空投到您的藏品室中,敬请期待哦~'
                 })
                 .then(() => {
-                    this.$router.replace('/home');
+                    this.$router.replace('/' + this.$route.params.companyId + '/home');
                 });
         },
         goHome() {
-            this.$router.push('/home');
+            this.$router.push('/' + this.$route.params.companyId + '/home');
         },
         checkTips() {
             if (this.info.consume) {
@@ -175,7 +175,7 @@ export default {
         submit() {
             this.checkTips().then(() => {
                 this.$router.push({
-                    path: '/activitySubmit',
+                    path: '/' + this.$route.params.companyId + '/activitySubmit',
                     query: {
                         assets: this.chooseIds.join(','),
                         activityId: this.activityId

+ 6 - 1
src/views/activity/Detail1.vue

@@ -48,7 +48,12 @@ export default {
     methods: {
         goBuild() {
             this.$router.push(
-                '/chooseProduct?name=' + encodeURIComponent(this.info.collectionName) + '&activityId=' + this.info.id
+                '/' +
+                    this.$route.params.companyId +
+                    '/chooseProduct?name=' +
+                    encodeURIComponent(this.info.collectionName) +
+                    '&activityId=' +
+                    this.info.id
             );
         },
         getProduct(init = false) {

+ 1 - 1
src/views/activity/List.vue

@@ -4,7 +4,7 @@
             <template v-for="(item, index) in list" :key="index">
                 <router-link
                     :to="{
-                        path: '/activityDetail',
+                        path: '/' + $route.params.companyId + '/activityDetail',
                         query: {
                             id: item.id
                         }

+ 1 - 1
src/views/activity/List1.vue

@@ -13,7 +13,7 @@
             <template v-for="(item, index) in list" :key="index">
                 <router-link
                     :to="{
-                        path: '/activityDetail',
+                        path: '/' + $route.params.companyId + '/activityDetail',
                         query: {
                             id: item.id
                         }

+ 14 - 6
src/views/activity/Submit.vue

@@ -184,7 +184,9 @@ export default {
     },
     methods: {
         onAdd() {
-            this.$router.push('/mineAddress?page=submit&chooseId=' + this.addressInfo.id);
+            this.$router.push(
+                '/' + this.$route.params.companyId + '/mineAddress?page=submit&chooseId=' + this.addressInfo.id
+            );
         },
         getOrder(next = false) {
             this.$http.get('/mintOrder/get/' + this.orderId).then(res => {
@@ -204,7 +206,9 @@ export default {
                             if (res.status === 'CANCELLED') {
                                 this.$router.back();
                             } else {
-                                this.$router.replace('/activityOrderDetail?id=' + res.id);
+                                this.$router.replace(
+                                    '/' + this.$route.params.companyId + '/activityOrderDetail?id=' + res.id
+                                );
                             }
                             // on close
                         });
@@ -273,7 +277,9 @@ export default {
                 this.$nextTick(() => {
                     if (this.payType === 'SYXPAY') {
                         this.$toast.clear();
-                        this.$router.replace('/bankPay?id=' + this.orderId + '&type=mint');
+                        this.$router.replace(
+                            '/' + this.$route.params.companyId + '/bankPay?id=' + this.orderId + '&type=mint'
+                        );
                     } else if (this.$store.state.review) {
                         window.store.order('358');
                         this.getOrder(true);
@@ -320,7 +326,7 @@ export default {
                                         success(res) {
                                             this.$toast.success('支付成功');
                                             setTimeout(() => {
-                                                this.$router.replace('/orders');
+                                                this.$router.replace('/' + this.$route.params.companyId + '/orders');
                                             }, 1000);
                                         },
                                         fail(e) {
@@ -406,7 +412,9 @@ export default {
                             .then(res => {
                                 this.$toast.success('支付成功');
                                 setTimeout(() => {
-                                    this.$router.replace('/activityOrderDetail?id=' + this.orderId);
+                                    this.$router.replace(
+                                        '/' + this.$route.params.companyId + '/activityOrderDetail?id=' + this.orderId
+                                    );
                                 }, 1000);
                             })
                             .catch(e => {
@@ -416,7 +424,7 @@ export default {
                     }
                 });
             } else {
-                this.$router.replace('/activityOrderDetail?id=' + this.orderId);
+                this.$router.replace('/' + this.$route.params.companyId + '/activityOrderDetail?id=' + this.orderId);
             }
         }
     },

+ 4 - 2
src/views/asset/AuctionPublish.vue

@@ -134,7 +134,9 @@
                         <div class="text2" @click="goRouter">忘记密码?</div>
                     </div>
                 </div>
-                <div v-else class="text3" @click="$router.push('/tradingPassword')">您当前没有交易密码,点击去设置</div>
+                <div v-else class="text3" @click="$router.push('/' + $route.params.companyId + '/tradingPassword')">
+                    您当前没有交易密码,点击去设置
+                </div>
             </div>
         </div>
         <div class="bottom van-safe-area-bottom" ref="bottom">
@@ -308,7 +310,7 @@ export default {
         },
         goRouter() {
             if (!this.showKeyboard) {
-                this.$router.push('/tradingPassword');
+                this.$router.push('/' + this.$route.params.companyId + '/tradingPassword');
             }
         },
         keyBlur() {

+ 4 - 2
src/views/asset/Consignment.vue

@@ -66,7 +66,9 @@
                         <div class="text2" @click="goRouter">忘记密码?</div>
                     </div>
                 </div>
-                <div v-else class="text3" @click="$router.push('/tradingPassword')">您当前没有交易密码,点击去设置</div>
+                <div v-else class="text3" @click="$router.push('/' + $route.params.companyId + '/tradingPassword')">
+                    您当前没有交易密码,点击去设置
+                </div>
             </div>
         </div>
         <div class="bottom van-safe-area-bottom" ref="bottom">
@@ -227,7 +229,7 @@ export default {
         },
         goRouter() {
             if (!this.showKeyboard) {
-                this.$router.push('/tradingPassword');
+                this.$router.push('/' + this.$route.params.companyId + '/tradingPassword');
             }
         },
         keyBlur() {

+ 7 - 7
src/views/asset/Detail.vue

@@ -82,7 +82,7 @@
                         <van-cell
                             class="creator"
                             :to="{
-                                path: '/creatorDetail',
+                                path: '/' + $route.params.companyId + '/creatorDetail',
                                 query: {
                                     id: info.minterId
                                 }
@@ -625,7 +625,7 @@ export default {
                             title: '寄售上架',
                             message: '确定寄售上架吗?'
                         }).then(() => {
-                            this.$router.push('/Consignment?id=' + this.info.id);
+                            this.$router.push('/' + this.$route.params.companyId + '/Consignment?id=' + this.info.id);
                         });
                     } else {
                         Dialog.confirm({
@@ -654,7 +654,7 @@ export default {
                         title: '拍卖上架',
                         message: '确定拍卖上架吗?'
                     }).then(() => {
-                        this.$router.push('/auctionPublish?id=' + this.info.id);
+                        this.$router.push('/' + this.$route.params.companyId + '/auctionPublish?id=' + this.info.id);
                     });
                 });
         },
@@ -664,17 +664,17 @@ export default {
                     title: '认证信息',
                     message: '用户认证中,是否查看认证'
                 }).then(() => {
-                    this.$router.push('/waiting');
+                    this.$router.push('/' + this.$route.params.companyId + '/waiting');
                 });
             } else if (this.userInfo.authStatus === 'NOT_AUTH') {
                 Dialog.confirm({
                     title: '认证信息',
                     message: '用户未认证,是否立即认证'
                 }).then(() => {
-                    this.$router.push('/Authentication');
+                    this.$router.push('/' + this.$route.params.companyId + '/Authentication');
                 });
             } else if (this.userInfo.authStatus === 'SUCCESS') {
-                this.$router.push('/giveSearch?id=' + this.info.id);
+                this.$router.push('/' + this.$route.params.companyId + '/giveSearch?id=' + this.info.id);
             }
         },
         Exhibition() {
@@ -860,7 +860,7 @@ export default {
         buy() {
             this.checkLogin().then(() => {
                 this.$router.push({
-                    path: '/submit',
+                    path: '/' + this.$route.params.companyId + '/submit',
                     query: {
                         id: this.assetId
                     }

+ 10 - 1
src/views/asset/GiveSearch.vue

@@ -22,7 +22,16 @@
             <div
                 v-if="info.length != 0"
                 class="content"
-                @click="$router.push('/givesubmit?id=' + this.$route.query.id + '&toUserId=' + info.id)"
+                @click="
+                    $router.push(
+                        '/' +
+                            $route.params.companyId +
+                            '/givesubmit?id=' +
+                            this.$route.query.id +
+                            '&toUserId=' +
+                            info.id
+                    )
+                "
             >
                 <!-- <img class="img" :src="info.avatar" alt="" /> -->
                 <van-image class="img" width="70" height="70" radius="70" :src="info.avatar" fit="cover" />

+ 1 - 1
src/views/auction/Detail.vue

@@ -440,7 +440,7 @@ export default {
             // });
         },
         goCreated() {
-            this.$router.push('/auctionOffer?auctionId=' + this.auctionId);
+            this.$router.push('/' + this.$route.params.companyId + '/auctionOffer?auctionId=' + this.auctionId);
         },
         showRecord() {
             this.$refs.record.show = true;

+ 13 - 4
src/views/auction/Home.vue

@@ -11,7 +11,7 @@
         <van-sticky :offset-top="barHeight">
             <div class="search-bar">
                 <span class="icon">拍卖中心</span>
-                <div class="search-input" @click="$router.push('/auctionSearch')">
+                <div class="search-input" @click="$router.push('/' + $route.params.companyId + '/auctionSearch')">
                     <img src="../../assets/icon-sosuo1.png" alt="" />
                     <span>搜索你要的精彩</span>
                 </div>
@@ -33,17 +33,26 @@
         <van-grid :border="false">
             <van-grid-item
                 :icon="require('../../assets/yikou.png')"
-                :to="{ path: '/auctionList', query: { status: 'ONGOING', pageName: '随时拍' } }"
+                :to="{
+                    path: '/' + $route.params.companyId + '/auctionList',
+                    query: { status: 'ONGOING', pageName: '随时拍' }
+                }"
                 text="随时拍"
             />
             <van-grid-item
                 :icon="require('../../assets/suishi.png')"
-                :to="{ path: '/auctionList', query: { hasFixedPrice: true, pageName: '一口价' } }"
+                :to="{
+                    path: '/' + $route.params.companyId + '/auctionList',
+                    query: { hasFixedPrice: true, pageName: '一口价' }
+                }"
                 text="一口价"
             />
             <van-grid-item
                 :icon="require('../../assets/shuzi.png')"
-                :to="{ path: '/auctionList', query: { auctionType: 'NFT', pageName: '数字艺术' } }"
+                :to="{
+                    path: '/' + $route.params.companyId + '/auctionList',
+                    query: { auctionType: 'NFT', pageName: '数字艺术' }
+                }"
                 text="数字艺术"
             />
             <van-grid-item @click="wait" :icon="require('../../assets/zhengji.png')" text="拍卖征集" />

+ 1 - 1
src/views/auction/List.vue

@@ -213,7 +213,7 @@ export default {
             };
         },
         goSearch() {
-            let url = '/auctionSearch';
+            let url = '/' + this.$route.params.companyId + '/auctionSearch';
             if (this.auctionType) {
                 url += '?auctionType=' + this.type;
             }

+ 20 - 6
src/views/auction/Submit.vue

@@ -259,7 +259,9 @@ export default {
     },
     methods: {
         onAdd() {
-            this.$router.push('/mineAddress?page=submit&chooseId=' + this.addressInfo.id);
+            this.$router.push(
+                '/' + this.$route.params.companyId + '/mineAddress?page=submit&chooseId=' + this.addressInfo.id
+            );
         },
         getOrder(next = false) {
             this.$http.get('/mintOrder/get/' + this.orderId).then(res => {
@@ -279,7 +281,9 @@ export default {
                             if (res.status === 'CANCELLED') {
                                 this.$router.back();
                             } else {
-                                this.$router.replace('/activityOrderDetail?id=' + res.id);
+                                this.$router.replace(
+                                    '/' + this.$route.params.companyId + '/activityOrderDetail?id=' + res.id
+                                );
                             }
                             // on close
                         });
@@ -351,7 +355,12 @@ export default {
                     if (this.payType === 'SYXPAY') {
                         this.$toast.clear();
                         this.$router.replace(
-                            '/bankPay?id=' + this.orderId + '&type=auction&paymentType=' + this.paymentType
+                            '/' +
+                                this.$route.params.companyId +
+                                '/bankPay?id=' +
+                                this.orderId +
+                                '&type=auction&paymentType=' +
+                                this.paymentType
                         );
                     } else if (this.$store.state.review) {
                         window.store.order('358');
@@ -399,7 +408,7 @@ export default {
                                         success(res) {
                                             this.$toast.success('支付成功');
                                             setTimeout(() => {
-                                                this.$router.replace('/orders');
+                                                this.$router.replace('/' + this.$route.params.companyId + '/orders');
                                             }, 1000);
                                         },
                                         fail(e) {
@@ -471,7 +480,12 @@ export default {
                                     if (this.paymentType === 'DEPOSIT') {
                                         this.$router.go(-1);
                                     } else {
-                                        this.$router.replace('/auctionOrderDetail?id=' + this.orderId);
+                                        this.$router.replace(
+                                            '/' +
+                                                this.$route.params.companyId +
+                                                '/auctionOrderDetail?id=' +
+                                                this.orderId
+                                        );
                                     }
                                 }, 1000);
                             })
@@ -482,7 +496,7 @@ export default {
                     }
                 });
             } else {
-                this.$router.replace('/auctionOrderDetail?id=' + this.orderId);
+                this.$router.replace('/' + this.$route.params.companyId + '/auctionOrderDetail?id=' + this.orderId);
             }
         }
     },

+ 5 - 1
src/views/creator/Detail.vue

@@ -21,7 +21,11 @@
                 class="history"
                 v-if="isMinter"
                 @click="
-                    $router.push(`/productSearch?${isMinter ? 'minterId' : 'ownerId'}=${info.id}&source=${sourceType}`)
+                    $router.push(
+                        '/' +
+                            this.$route.params.companyId +
+                            `/productSearch?${isMinter ? 'minterId' : 'ownerId'}=${info.id}&source=${sourceType}`
+                    )
                 "
             >
                 <img src="@assets/icon-sosuo.png" alt="" />

+ 1 - 1
src/views/creator/Home.vue

@@ -10,7 +10,7 @@
         <van-sticky ref="top" :offset-top="46">
             <div class="top">
                 <div class="name">艺术机构</div>
-                <div class="search" @click="$router.push('/creatorSearch')">
+                <div class="search" @click="$router.push('/' + this.$route.params.companyId + '/creatorSearch')">
                     <img src="@assets/icon-sosuo.png" alt="" />
                     <span>搜索你要的精彩</span>
                 </div>

+ 6 - 1
src/views/creator/List.vue

@@ -10,7 +10,12 @@
         <van-sticky ref="top" :offset-top="bar && bar.show ? bar.height : 0">
             <div class="top">
                 <div class="name">铸造者</div>
-                <img src="@assets/icon-sosuo.png" @click="$router.push('/creatorSearch')" alt="" class="search" />
+                <img
+                    src="@assets/icon-sosuo.png"
+                    @click="$router.push('/' + $route.params.companyId + '/creatorSearch')"
+                    alt=""
+                    class="search"
+                />
             </div>
             <van-tabs v-model:active="sort" :ellipsis="false" line-width="16" line-height="2" @change="getData(true)">
                 <van-tab

+ 20 - 7
src/views/hall/Detail.vue

@@ -750,7 +750,7 @@ export default {
                     if (_this.isMine) {
                         _this.backPage();
                     } else {
-                        _this.$router.push('/home');
+                        _this.$router.push('/' + this.$route.params.companyId + '/home');
                     }
                 });
             } else {
@@ -766,7 +766,7 @@ export default {
                 fromRoute.name === 'userRegister' ||
                 fromRoute.name === 'userLogin'
             ) {
-                this.$router.replace('/home');
+                this.$router.replace('/' + this.$route.params.companyId + '/home');
             } else {
                 this.$router.back();
             }
@@ -783,7 +783,9 @@ export default {
         },
         addCollections() {
             this.$router.push(
-                '/productAdd?ids=' +
+                '/' +
+                    this.$route.params.companyId +
+                    '/productAdd?ids=' +
                     this.assets
                         .map(item => {
                             return item.id;
@@ -831,12 +833,23 @@ export default {
         },
         goEdit() {
             if (this.isMine) {
-                this.$router.push('/hallEdit?message=' + encodeURIComponent(this.info.introduction || ''));
+                this.$router.push(
+                    '/' +
+                        this.$route.params.companyId +
+                        '/hallEdit?message=' +
+                        encodeURIComponent(this.info.introduction || '')
+                );
             }
         },
         goName() {
             if (this.isMine) {
-                this.$router.push('/hallEdit?message=' + encodeURIComponent(this.info.name || '') + '&type=name');
+                this.$router.push(
+                    '/' +
+                        this.$route.params.companyId +
+                        '/hallEdit?message=' +
+                        encodeURIComponent(this.info.name || '') +
+                        '&type=name'
+                );
             }
         },
         goCollection(info, show = true) {
@@ -853,14 +866,14 @@ export default {
             // }
         },
         goCollectionDetail(id) {
-            this.$router.push('/productDetail/' + id);
+            this.$router.push('/' + this.$route.params.companyId + '/productDetail/' + id);
         },
         actionSelect(action) {
             console.log(action);
             if (action.name === '本地上传') {
                 this.$refs.upload.chooseFile();
             } else {
-                this.$router.push('/productChoose');
+                this.$router.push('/' + this.$route.params.companyId + '/productChoose');
             }
         },
         goBlind(info) {

+ 2 - 2
src/views/order/ActivityOrders.vue

@@ -107,7 +107,7 @@ export default {
         },
         changeStatus(name) {
             this.$router.replace({
-                path: '/activityOrders',
+                path: '/' + this.$route.params.companyId + '/activityOrders',
                 query: {
                     status: name,
                     type: this.type
@@ -117,7 +117,7 @@ export default {
         },
         changeActive(type) {
             this.$router.replace({
-                path: '/orders',
+                path: '/' + this.$route.params.companyId + '/orders',
                 query: {
                     status: this.status,
                     type: type

+ 2 - 2
src/views/order/AuctionOrders.vue

@@ -180,7 +180,7 @@ export default {
         },
         changeStatus(name) {
             this.$router.replace({
-                path: '/auctionOrders',
+                path: '/' + this.$route.params.companyId + '/auctionOrders',
                 query: {
                     status: name,
                     type: this.type
@@ -190,7 +190,7 @@ export default {
         },
         changeActive(type) {
             this.$router.replace({
-                path: '/auctionOrders',
+                path: '/' + this.$route.params.companyId + '/auctionOrders',
                 query: {
                     status: this.status,
                     type: type

+ 2 - 2
src/views/order/Orders.vue

@@ -98,7 +98,7 @@ export default {
         },
         changeStatus(name) {
             this.$router.replace({
-                path: '/orders',
+                path: '/' + this.$route.params.companyId + '/orders',
                 query: {
                     status: name,
                     type: this.type
@@ -108,7 +108,7 @@ export default {
         },
         changeActive(type) {
             this.$router.replace({
-                path: '/orders',
+                path: '/' + this.$route.params.companyId + '/orders',
                 query: {
                     status: this.status,
                     type: type

+ 4 - 2
src/views/pay/BankPay.vue

@@ -210,7 +210,9 @@ export default {
                             if (this.paymentType === 'DEPOSIT') {
                                 this.$router.go(-1);
                             } else {
-                                this.$router.replace('/auctionOrderDetail?id=' + this.orderId);
+                                this.$router.replace(
+                                    '/' + this.$route.params.companyId + '/auctionOrderDetail?id=' + this.orderId
+                                );
                             }
                         } else {
                             this.$router.replace({ name: 'orderDetail', query: { id: this.orderId } });
@@ -226,7 +228,7 @@ export default {
         },
         chooseBank() {
             if (!(this.bankCard && this.bankCard.bindCardId)) {
-                this.$router.push('/mineBanksAdd');
+                this.$router.push('/' + this.$route.params.companyId + '/mineBanksAdd');
             }
         }
     }

+ 6 - 6
src/views/product/Detail.vue

@@ -110,7 +110,7 @@
                         <van-cell
                             class="creator"
                             :to="{
-                                path: '/creatorDetail',
+                                path: '/' + $route.params.companyId + '/creatorDetail',
                                 query: {
                                     id: info.minterId
                                 }
@@ -134,7 +134,7 @@
                             v-if="info.ownerId !== info.minterId"
                             class="creator"
                             :to="{
-                                path: '/creatorDetail',
+                                path: '/' + $route.params.companyId + '/creatorDetail',
                                 query: {
                                     id: info.ownerId,
                                     type: 'DEFAULT'
@@ -756,7 +756,7 @@ export default {
                 .then(() => {
                     console.log('checkLOgin');
                     this.$router.push({
-                        path: '/submit',
+                        path: '/' + this.$route.params.companyId + '/submit',
                         query: {
                             id: this.collectionId,
                             invitor: this.$route.query.invitor || ''
@@ -795,7 +795,7 @@ export default {
                         .then(() => {});
                 } else {
                     this.$router.push({
-                        path: '/submit',
+                        path: '/' + this.$route.params.companyId + '/submit',
                         query: {
                             id: this.collectionId,
                             invitor: this.$route.query.invitor
@@ -806,9 +806,9 @@ export default {
         },
         goAuth() {
             if (this.authStatus === '认证中' || this.authStatus === '认证失败') {
-                this.$router.push('/waiting');
+                this.$router.push('/' + this.$route.params.companyId + '/waiting');
             } else if (this.authStatus === '未认证') {
-                this.$router.push('/Authentication');
+                this.$router.push('/' + this.$route.params.companyId + '/Authentication');
             }
         },
         share() {

+ 2 - 2
src/views/product/DetailMode.vue

@@ -70,7 +70,7 @@
             is-link
             class="creator"
             :to="{
-                path: '/creatorDetail',
+                path: '/' + $route.params.companyId + '/creatorDetail',
                 query: {
                     id: info.minterId
                 }
@@ -270,7 +270,7 @@ export default {
         buy() {
             this.checkLogin().then(() => {
                 this.$router.push({
-                    path: '/submit',
+                    path: '/' + this.$route.params.companyId + '/submit',
                     query: {
                         id: this.$route.query.id
                     }

+ 2 - 2
src/views/product/DetailPre.vue

@@ -65,7 +65,7 @@
             is-link
             class="creator"
             :to="{
-                path: '/creatorDetail',
+                path: '/' + this.$route.params.companyId + '/creatorDetail',
                 query: {
                     id: info.minterId
                 }
@@ -268,7 +268,7 @@ export default {
         buy() {
             this.checkLogin().then(() => {
                 this.$router.push({
-                    path: '/submit',
+                    path: '/' + this.$route.params.companyId + '/submit',
                     query: {
                         id: this.$route.query.id
                     }

+ 5 - 3
src/views/product/HopeMarket.vue

@@ -2,7 +2,7 @@
     <div class="follow">
         <div ref="top" class="list-top" :style="{ top: barShow ? barHeight + 'px' : 0 }">
             <div class="top">
-                <div class="search" @click="$router.push('/productSearch')">
+                <div class="search" @click="$router.push('/' + this.$route.params.companyId + '/productSearch')">
                     <img src="@assets/icon-sosuo.png" alt="" />
                     <span>搜索你要的精彩</span>
                 </div>
@@ -432,7 +432,9 @@ export default {
             if (info.link && info.linkType === 'collections') {
                 let linkContent = encodeURIComponent(info.linkContent);
                 // this.$router.push(`/productSearch?search=${info.linkContent}${props}`);
-                this.$router.push(`/productSearchCorpse?search=${linkContent}${props}`);
+                this.$router.push(
+                    '/' + this.$route.params.companyId + `/productSearchCorpse?search=${linkContent}${props}`
+                );
             }
         },
         hideSetting() {
@@ -498,7 +500,7 @@ export default {
             };
         },
         goSearch() {
-            let url = '/productSearch';
+            let url = '/' + this.$route.params.companyId + '/productSearch';
             if (this.type) {
                 url += '?type=' + this.type;
             }

+ 1 - 1
src/views/product/List.vue

@@ -210,7 +210,7 @@ export default {
             };
         },
         goSearch() {
-            let url = '/productSearch';
+            let url = '/' + this.$route.params.companyId + '/productSearch';
             if (this.type) {
                 url += '?type=' + this.type;
             }

+ 2 - 2
src/views/product/Tasks.vue

@@ -305,7 +305,7 @@ export default {
                             this.$toast.clear();
                             this.$toast.success('助力成功');
                             setTimeout(() => {
-                                this.$router.replace('/home');
+                                this.$router.replace('/' + this.$route.params.companyId + '/home');
                             }, 1000);
                         });
                     } else if (res.status === 'fail') {
@@ -325,7 +325,7 @@ export default {
             }
         },
         goHome() {
-            this.$router.push('/home');
+            this.$router.push('/' + this.$route.params.companyId + '/home');
         }
     }
 };

+ 2 - 2
src/views/user/Address.vue

@@ -67,10 +67,10 @@ export default {
     },
     methods: {
         onAdd() {
-            this.$router.push('/mineAddressEdit');
+            this.$router.push('/' + this.$route.params.companyId + '/mineAddressEdit');
         },
         onEdit(info) {
-            this.$router.push('/mineAddressEdit?id=' + info.id);
+            this.$router.push('/' + this.$route.params.companyId + '/mineAddressEdit?id=' + info.id);
         },
         selectItem(info, index) {
             this.$router.go(-1);

+ 1 - 1
src/views/user/Banks.vue

@@ -72,7 +72,7 @@ export default {
         },
         add() {
             this.checkAuth().then(() => {
-                this.$router.push('/mineBanksAdd');
+                this.$router.push('/' + this.$route.params.companyId + '/mineBanksAdd');
             });
         },
         getNum(No) {

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