浏览代码

fix:修改产品名

liyangbin 1 年之前
父节点
当前提交
684a533113
共有 4 个文件被更改,包括 38 次插入6 次删除
  1. 3 3
      src/views/Dashboard.vue
  2. 1 1
      src/views/Noadmin.vue
  3. 17 1
      src/views/Reseller/License.vue
  4. 17 1
      src/views/Reseller/Product.vue

+ 3 - 3
src/views/Dashboard.vue

@@ -6,7 +6,7 @@ import { userStore } from '@/store/userInfo'
 
 export default {
   beforeRouteEnter(to, from, next) {
-    // 根据需要进行路由守卫逻辑的判断
+    // 判断是不是分销商
     const role = userStore().user.role||''
     if(role.indexOf('4') !== -1){
       next('/reseller-manage-product')
@@ -516,9 +516,9 @@ export default {
 <style lang="scss" scoped>
 .tip-nav{
   position: relative;
-  cursor: pointer;
+  // cursor: pointer;
   &:hover .tip{
-    display: block;
+    // display: block;
   }
   .tip{
     position: absolute;

+ 1 - 1
src/views/Noadmin.vue

@@ -38,7 +38,7 @@ export default {
       </div>
       <div class="flex justify-between mt-16px text-14px">
         <button class="h-32px w-180px bg-[#fff] rounded-4px" @click="Refresh">Reload Page</button>
-        <button type="button" class="h-32px w-180px ml-8px  rounded-4px bg-[#1460F3] text-[#fff]" @click="$router.push('/login')">Sign in with another account</button>
+        <button type="button" class="h-32px w-180px ml-8px  rounded-4px bg-[#1460F3] text-[#fff]" @click="$router.push('/login')">Sign in with Another Account</button>
       </div>
     </div>
   </div>

+ 17 - 1
src/views/Reseller/License.vue

@@ -26,6 +26,8 @@ onMounted(() => {
   }
   pagingQuery()
   getproductList()
+  // com.brother.pdfreaderpro.windows.product_1  PDF Reader Pro Win Premium
+  // com.brother.pdfreaderpro.mac.product_1      PDF Reader Pro Mac Premium
 })
 const pagingQuery = (val) => {
   //初始化表格
@@ -56,7 +58,13 @@ const pagingQuery = (val) => {
       } else if (data[i].validFlag === 7) {
         data[i].validFlag = 'Unactive'
       }
+      if (data[i].productCode === 'com.brother.pdfreaderpro.mac.product_1') {
+        data[i].productName = 'PDF Reader Pro Mac Premium'
+      } else if (data[i].productCode === 'com.brother.pdfreaderpro.windows.product_1'){
+        data[i].productName = 'PDF Reader Pro Win Premium'
+      }
     }
+
     tableData.value = data
     total.value = res.data.result.total
   })
@@ -65,6 +73,14 @@ const pagingQuery = (val) => {
 const getproductList = (val) => {
   get('/pdf-tech/product/listWithAll').then(
     (res) => {
+      const data = res.data.result
+      for (let i = 0; i < data.length; i++) {
+        if (data[i].code === 'com.brother.pdfreaderpro.mac.product_1') {
+          data[i].name = 'PDF Reader Pro Mac Premium'
+        } else if (data[i].code === 'com.brother.pdfreaderpro.windows.product_1'){
+          data[i].name = 'PDF Reader Pro Win Premium'
+        }
+      }
       productList.value = res.data.result
     }
   )
@@ -139,7 +155,7 @@ const searchInfo = (val) => {
         <span>Content</span>
       </div>
       <div class="flex bg-[#fff] pt-32px px-24px rounded-t-8px w-full">
-        <select class="w-140px" v-model="productId" :class="{ '!text-[#232A40]': productId !== '' }">
+        <select class="w-230px" v-model="productId" :class="{ '!text-[#232A40]': productId !== '' }">
           <option value="" selected>Product</option>
           <option
             v-for="item in productList"

+ 17 - 1
src/views/Reseller/Product.vue

@@ -36,6 +36,14 @@ const pagingQuery = () => {
       'code=' +
       code.value
   ).then((res) => {
+    const data = res.data.result.list
+    for (let i = 0; i < data.length; i++) {
+      if (data[i].code === 'com.brother.pdfreaderpro.mac.product_1') {
+        data[i].name = 'PDF Reader Pro Mac Premium'
+      } else if (data[i].code === 'com.brother.pdfreaderpro.windows.product_1'){
+        data[i].name = 'PDF Reader Pro Win Premium'
+      }
+    }
     tableData.value = res.data.result.list
     total.value = res.data.result.total
   })
@@ -44,6 +52,14 @@ const pagingQuery = () => {
 const getproductList = (val) => {
   get('/pdf-tech/product/listWithAll').then(
     (res) => {
+      const data = res.data.result
+      for (let i = 0; i < data.length; i++) {
+        if (data[i].code === 'com.brother.pdfreaderpro.mac.product_1') {
+          data[i].name = 'PDF Reader Pro Mac Premium'
+        } else if (data[i].code === 'com.brother.pdfreaderpro.windows.product_1'){
+          data[i].name = 'PDF Reader Pro Win Premium'
+        }
+      }
       productList.value = res.data.result
     }
   )
@@ -78,7 +94,7 @@ const handleCurrentChange = (value) => {
         <span>Content</span>
       </div>
       <div class="flex bg-[#fff] pt-32px px-24px rounded-t-8px w-full">
-        <select v-model="code" class="w-140px" :class="{ '!text-[#232A40]': code !== '' }">
+        <select v-model="code" class="w-230px" :class="{ '!text-[#232A40]': code !== '' }">
           <option value="" selected>Product</option>
           <option
             v-for="item in productList"