lxf il y a 1 semaine
Parent
commit
2142d43660

+ 34 - 14
src/view/copyTrade/marketview/find/components/applyBox.vue

@@ -1,24 +1,41 @@
 <template>
   <div class="section">
-    <div class="title">
-      <!-- 成为交易专家 -->
-      {{ $t('follow.l4') }}
-    </div>
-    <div class="lab">
-      <!-- 赚取 10 % 分润 -->
-      {{ $t('follow.l5') }}
-    </div>
-    <div class="flex">
-      <div class="btn" @click="$router.push('/copy')">
-        <!-- 立即申请 -->
-        {{ $t('join.l12') }}
+    <template v-if="expertInfo.status == 1">
+      <div class="title title1">
+        <!-- 交易专家主页 -->
+        {{ $t('follow.l167') }}
       </div>
-    </div>
+      <div class="flex">
+        <div class="btn" @click="$router.push('/my-copy')">
+          <!-- 进入管理 -->
+          {{ $t('follow.l168') }}
+        </div>
+      </div>
+    </template>
+    <template v-else>
+      <div class="title">
+        <!-- 成为交易专家 -->
+        {{ $t('follow.l4') }}
+      </div>
+      <div class="lab">
+        <!-- 赚取 10 % 分润 -->
+        {{ $t('follow.l5') }}
+      </div>
+      <div class="flex">
+        <div class="btn" @click="$router.push('/copy')">
+          <!-- 立即申请 -->
+          {{ $t('join.l12') }}
+        </div>
+      </div>
+    </template>
   </div>
 </template>
 <script>
+import { mapGetters } from "vuex";
 export default {
-  
+  computed: {
+    ...mapGetters(['expertInfo']),
+  },
 }
 </script>
 <style lang="less" scoped>
@@ -32,6 +49,9 @@ export default {
   font-weight: 600;
   font-size: 20px;
   margin-bottom: 6px;
+  &.title1 {
+    margin-bottom: 28px;
+  }
 }
 .lab {
   font-size: 12px;

+ 1 - 1
src/view/copyTrade/marketview/find/index.vue

@@ -28,7 +28,7 @@
     <userList :list="stockList" market="stock" v-if="stockList.length" />
     <userList :list="cfdList" market="cfd" v-if="cfdList.length" />
     <swipeList />
-    <applyBox v-if="expertInfo.status != 1" />
+    <applyBox/>
   </div>
 </template>
 <script>