Ver código fonte

首页与微信注册修改

tudc 4 anos atrás
pai
commit
aeadb87f46
2 arquivos alterados com 3 adições e 9 exclusões
  1. 3 3
      front-vue/src/views/home.vue
  2. 0 6
      front-vue/src/views/register.vue

+ 3 - 3
front-vue/src/views/home.vue

@@ -4,7 +4,7 @@
         <div v-if="company.scyType == '00'">
 
             <!-- 数据 -->
-            <div v-if="companyData">
+            <div v-hasPermi="['system:home:companyData']">
                 <div class="zap-home__title">平台数据统计</div>
                 <el-row :gutter="20">
                     <!-- 第一行 -->
@@ -98,7 +98,7 @@
             </div>
 
            <!-- 平台待办 -->
-            <el-card class="box-card" style="margin-bottom: 20px" v-if="companyWork">
+            <el-card class="box-card" style="margin-bottom: 20px" v-hasPermi="['system:home:companyWork']">
                 <div class="text item">
                     <el-tabs v-model="activeName">
                         <el-tab-pane label="我的待办" name="first" style="height:400px">
@@ -156,7 +156,7 @@
             </el-card>
 
             <!-- 平台统计图 -->
-            <div v-if="companyChart">
+            <div v-hasPermi="['system:home:companyChart']">
                 <!-- 平台资金统计扇形图 -->
                 <el-row class="zap-home-chart">
                     <el-col>

+ 0 - 6
front-vue/src/views/register.vue

@@ -154,7 +154,6 @@ export default {
     created() {
         this.getCode();
         this.getCookie();
-        this.getWeChatImg();
         // this.getlistDomain();
     },
     methods: {
@@ -250,11 +249,6 @@ export default {
       getUrlKey(name) {
           return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
       },
-      getWeChatImg(){
-          wxImg().then((res) => {
-            this.wxSrc = res;
-          })
-      },
       changeLoginType(e){
 
           if (this.activeName === 'login_password') {