Browse Source

ross文案修改

yuwenjun1997 2 years ago
parent
commit
6d4105b2ff

+ 2 - 2
layouts/app.vue

@@ -104,8 +104,8 @@ export default {
       // 保存用户AppId
       // 保存用户AppId
       this.$store.commit('user/SET_AUTH_USER_ID', authUserId)
       this.$store.commit('user/SET_AUTH_USER_ID', authUserId)
 
 
-      // 设置页面主题
-      if (authUserId === parseInt(12)) {
+      // 设置页面主题12
+      if (authUserId === parseInt(114)) {
         this.$store.commit('app/SET_PAGE_THEME', 'ross')
         this.$store.commit('app/SET_PAGE_THEME', 'ross')
       }
       }
 
 

+ 13 - 11
pages/_template/app/approve/index.vue

@@ -30,9 +30,15 @@ export default {
       list: [],
       list: [],
     }
     }
   },
   },
-  asyncData() {
-    return {
-      list: [
+  computed: {
+    ...mapGetters(['supplierInfo', 'routePrefix', 'themeName']),
+  },
+  created() {
+    this.list = this.generateList()
+  },
+  methods: {
+    generateList() {
+      return [
         {
         {
           id: 1,
           id: 1,
           name: '机构认证',
           name: '机构认证',
@@ -45,16 +51,12 @@ export default {
         },
         },
         {
         {
           id: 3,
           id: 3,
-          name: '医师认证',
+          name: this.themeName === 'ross' ? '理疗师认证' : '医师认证',
           path: '/approve/personnel/operate',
           path: '/approve/personnel/operate',
         },
         },
-      ],
-    }
-  },
-  computed: {
-    ...mapGetters(['supplierInfo', 'routePrefix']),
-  },
-  methods: {
+      ]
+    },
+
     toDetail(item) {
     toDetail(item) {
       const url = this.routePrefix + item.path
       const url = this.routePrefix + item.path
       this.$router.push(url)
       this.$router.push(url)

+ 10 - 5
pages/_template/app/approve/personnel/operate/index.vue

@@ -10,8 +10,7 @@
       <div class="page-top flex flex-col justify-center items-center">
       <div class="page-top flex flex-col justify-center items-center">
         <img class="logo" :src="supplierInfo.logo" />
         <img class="logo" :src="supplierInfo.logo" />
         <div class="mt-2 name">
         <div class="mt-2 name">
-          <span v-text="supplierInfo.shopName"></span>
-          <span>官方医师认证</span>
+          <span v-text="supplierInfo.shopName"></span><span v-if="themeName === 'ross'">官方理疗师认证</span><span v-else>官方医师认证</span>
         </div>
         </div>
       </div>
       </div>
       <div class="page-content">
       <div class="page-content">
@@ -20,12 +19,14 @@
           <SimpleSearch
           <SimpleSearch
             v-model="listQuery.doctorName"
             v-model="listQuery.doctorName"
             @search="onSearch"
             @search="onSearch"
-            placeholder="搜索医师"
+            :placeholder="searchPlaceholder"
           />
           />
         </div>
         </div>
         <!-- 标题 -->
         <!-- 标题 -->
         <div class="title px-4 pt-12 pb-6">
         <div class="title px-4 pt-12 pb-6">
-          共<span v-text="total"></span>位医师
+          共<span v-text="total"></span>位{{
+            themeName === 'ross' ? '理疗师' : '医师'
+          }}
         </div>
         </div>
         <!-- 列表 -->
         <!-- 列表 -->
         <div class="list">
         <div class="list">
@@ -79,13 +80,17 @@ export default {
     }
     }
   },
   },
   computed: {
   computed: {
-    ...mapGetters(['supplierInfo', 'authUserId', 'routePrefix']),
+    ...mapGetters(['supplierInfo', 'authUserId', 'routePrefix', 'themeName']),
     isEmpty() {
     isEmpty() {
       return this.list.length === 0
       return this.list.length === 0
     },
     },
     emptyList() {
     emptyList() {
       return 3 - (this.list.length % 3)
       return 3 - (this.list.length % 3)
     },
     },
+
+    searchPlaceholder() {
+      return this.themeName === 'ross' ? '搜索理疗师' : '搜索医师'
+    },
   },
   },
   mounted() {
   mounted() {
     this.fetchList()
     this.fetchList()

+ 1 - 0
views/RossHomePage.vue

@@ -273,6 +273,7 @@ export default {
 @media screen and (max-width: 768px) {
 @media screen and (max-width: 768px) {
   .page {
   .page {
     min-height: calc(100vh - 12.8vw - 12.4vw);
     min-height: calc(100vh - 12.8vw - 12.4vw);
+    padding-bottom: 16vw;
     @include themify($themes) {
     @include themify($themes) {
       background: themed('h5-banner-home') no-repeat center;
       background: themed('h5-banner-home') no-repeat center;
       background-size: cover;
       background-size: cover;