瀏覽代碼

bug修改

喻文俊 3 年之前
父節點
當前提交
295b29fa11

+ 2 - 2
src/main/resources/static/css/supplier-center/encyclopedia/edit-page.css

@@ -227,9 +227,9 @@
         display: flex;
         justify-content: center;
         align-items: center;
-        height: 9.6vw;
+        height: 19.6vw;
         box-sizing: border-box;
-        padding: 0 8vw;
+        padding: 0 2.4vw;
         text-align: center;
         font-size: 2.8vw;
         line-height: 3.6vw;

+ 1 - 0
src/main/resources/static/css/supplier-center/encyclopedia/form-component-style.css

@@ -176,6 +176,7 @@
   padding: 8px 0;
   max-height: 200px;
   overflow-y: auto;
+  background: #fff;
 }
 .cm.select .options::-webkit-scrollbar {
   width: 4px;

+ 2 - 2
src/main/resources/static/js/supplier-center/encyclopedia/instrument-edit.js

@@ -370,7 +370,7 @@ new Vue({
         // 返回文章列表页面
         handleBack: function handleBack() {
             localStorage.removeItem('target-name');
-            window.open('/supplier/encyclopedia/product-list.html', 'supplier-instrument-list');
+            window.open('/supplier/encyclopedia/instrument-list.html', 'supplier-instrument-list');
             window.close();
         },
 
@@ -511,7 +511,7 @@ new Vue({
         },
         // 移除问题
         handleRemoveQuestion(question) {
-            this.formData.paramList.splice(question.index, 1);
+            this.formData.questionList.splice(question.index, 1);
         },
         // 添加问题
         handleAddQuestion() {

+ 3 - 3
src/main/resources/static/js/supplier-center/encyclopedia/instrument-list.js

@@ -170,7 +170,7 @@ var productList = new Vue({
         handleDelete: function handleDelete(product) {
             var that = this;
             var params = {
-                content: '确认删除该商品信息?',
+                content: '确认删除该仪器信息?',
                 cancelBtnText: '取消',
                 confitmBtnText: '删除'
             };
@@ -186,9 +186,9 @@ var productList = new Vue({
             }, function (res) {
                 if (res.code === 0) {
                     that.getArticleList();
-                    CAIMEI.dialog('删除文章成功!');
+                    CAIMEI.dialog('删除成功!');
                 } else {
-                    CAIMEI.dialog('删除文章失败!');
+                    CAIMEI.dialog('删除失败!');
                 }
             });
         },

+ 20 - 2
src/main/resources/static/js/supplier-center/encyclopedia/product-edit.js

@@ -368,10 +368,28 @@ new Vue({
             this.validFormData(this.formData, this.rules).then(res => {
                 that.saveFormData()
             }).catch(() => {
-                CAIMEI.dialog('必填项不能为空', false)
+                // CAIMEI.dialog('必填项不能为空', false);
+                // console.log(this.validMessage)
+                this.scorllToValid(this.validMessage);
             })
         },
 
+        scorllToValid: function(validData){
+            var currentKey = '';
+            for(var key in validData){
+                var validValue = validData[key];
+                if(!validValue.valid) {
+                    currentKey = key;
+                    continue;
+                }
+            }
+
+            $('html, body').animate({
+                scrollTop: $(`[props=${currentKey}]`).offset().top - $('#globalHead').height() - 40
+            }, 1000);
+        },
+
+
         // 上传封面图片
         handleUploadProductImage(files) {
             this.uploadImage(files[0]).then(res => {
@@ -479,7 +497,7 @@ new Vue({
         },
         // 移除问题
         handleRemoveQuestion(question) {
-            this.formData.paramList.splice(question.index, 1);
+            this.formData.questionList.splice(question.index, 1);
         },
         // 添加问题
         handleAddQuestion() {

+ 2 - 2
src/main/resources/static/js/supplier-center/encyclopedia/product-list.js

@@ -186,9 +186,9 @@ var productList = new Vue({
             }, function (res) {
                 if (res.code === 0) {
                     that.getArticleList();
-                    CAIMEI.dialog('删除文章成功!');
+                    CAIMEI.dialog('删除成功!');
                 } else {
-                    CAIMEI.dialog('删除文章失败!');
+                    CAIMEI.dialog('删除失败!');
                 }
             });
         },

+ 1 - 1
src/main/resources/templates/encyclopedia/components/footer.html

@@ -8,7 +8,7 @@
             <span class="br">互联网药品信息服务资格证编号(粤)-非经营性-2021-0339</span>
             <span class="br">中华人民共和国增值电信业务经营许可证</span>
         </p>
-        <p>Copyright © 2015-2020 CAIMEI365.com All Rights Reserved 深圳市采美网络信息有限公司</p>
+        <p>Copyright © 2015-2021 CAIMEI365.com All Rights Reserved 深圳市采美网络信息有限公司</p>
     </div>
 </footer>
 <!-- 底部公共js -->

+ 1 - 1
src/main/resources/templates/encyclopedia/instrument.html

@@ -5,7 +5,7 @@
     <meta charset="UTF-8"/>
     <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
-    <title>采美百科-产品百科</title>
+    <title>采美百科-仪器百科</title>
     <link rel="stylesheet" th:href="@{/css/encyclopedia/normalize.css(v=${version})}"/>
     <link rel="stylesheet" th:href="@{/css/encyclopedia/base.css(v=${version})}"/>
     <link rel="stylesheet" th:href="@{/css/encyclopedia/common.css(v=${version})}"/>

+ 1 - 1
src/main/resources/templates/supplier-center/article/article-edit.html

@@ -2,7 +2,7 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
-    <title>采美365网-编辑文章</title>
+    <title>采美365网-文章管理-编辑文章</title>
     <template th:replace="components/head-link"></template>
     <link th:href="@{/css/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
     <link th:if="${pageId==1026}" th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">

+ 1 - 1
src/main/resources/templates/supplier-center/article/article-list.html

@@ -2,7 +2,7 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
-    <title>采美365网-文章列表</title>
+    <title>采美365网-文章管理-文章列表</title>
     <template th:replace="components/head-link"></template>
     <link th:href="@{/css/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
     <link th:if="${pageId==1026}" th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">

+ 2 - 2
src/main/resources/templates/supplier-center/encyclopedia/instrument-edit.html

@@ -2,7 +2,7 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
-    <title>采美365网-编辑文章</title>
+    <title>采美365网-百科文库-添加仪器百科</title>
     <template th:replace="components/head-link"></template>
     <link th:href="@{/css/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
     <link th:if="${pageId==1026}" th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">
@@ -193,7 +193,7 @@
                         </div>
 
                         <div class="form-item vertical btns">
-                            <button class="btn break">返回</button>
+                            <button class="btn break" @click.prevent="handleBack">返回</button>
                             <button class="btn submit" @click.prevent="handleSave">保存</button>
                         </div>
                     </form>

+ 4 - 4
src/main/resources/templates/supplier-center/encyclopedia/instrument-list.html

@@ -2,7 +2,7 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
-    <title>采美365网-文章列表</title>
+    <title>采美365网-百科文库-仪器百科列表</title>
     <template th:replace="components/head-link"></template>
     <link th:href="@{/css/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
     <link th:if="${pageId==1026}" th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">
@@ -20,9 +20,9 @@
             <div class="crumbs">
                 <span>我的采美</span>
                 <span>&gt;</span>
-                <span>文章管理</span>
+                <span>百科文库</span>
                 <span>&gt;</span>
-                <span>文章列表</span>
+                <span>仪器百科列表</span>
             </div>
             <div class="hot-tip">温馨提示:多发布文章,有利于曝光您的店铺商品,提高成交量(发布并且审核通过后,可在信息中心搜索您的文章)</div>
         </div>
@@ -97,7 +97,7 @@
                                 <td class="time">
                                     <div class="time">{{ productInfo.publishTime | formatDate }}</div>
                                 </td>
-                                <td class="time" v-if="productInfo.createDate">
+                                <td class="time">
                                     <div class="time">{{ productInfo.addTime | formatDate}}</div>
                                 </td>
                                 <td>

+ 2 - 2
src/main/resources/templates/supplier-center/encyclopedia/product-edit.html

@@ -2,7 +2,7 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
-    <title>采美365网-编辑文章</title>
+    <title>采美365网-百科文库-添加产品百科</title>
     <template th:replace="components/head-link"></template>
     <link th:href="@{/css/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
     <link th:if="${pageId==1026}" th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">
@@ -179,7 +179,7 @@
                         </div>
 
                         <div class="form-item vertical btns">
-                            <button class="btn break">返回</button>
+                            <button class="btn break" @click.prevent="handleBack">返回</button>
                             <button class="btn submit" @click.prevent="handleSave">保存</button>
                         </div>
                     </form>

+ 4 - 4
src/main/resources/templates/supplier-center/encyclopedia/product-list.html

@@ -2,7 +2,7 @@
 <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="https://www.thymeleaf.org ">
 <head>
-    <title>采美365网-文章列表</title>
+    <title>采美365网-百科文库-产品百科列表</title>
     <template th:replace="components/head-link"></template>
     <link th:href="@{/css/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
     <link th:if="${pageId==1026}" th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">
@@ -20,9 +20,9 @@
             <div class="crumbs">
                 <span>我的采美</span>
                 <span>&gt;</span>
-                <span>文章管理</span>
+                <span>百科文库</span>
                 <span>&gt;</span>
-                <span>文章列表</span>
+                <span>产品百科列表</span>
             </div>
             <div class="hot-tip">温馨提示:多发布文章,有利于曝光您的店铺商品,提高成交量(发布并且审核通过后,可在信息中心搜索您的文章)</div>
         </div>
@@ -97,7 +97,7 @@
                                 <td class="time">
                                     <div class="time">{{ productInfo.publishTime | formatDate }}</div>
                                 </td>
-                                <td class="time" v-if="productInfo.createDate">
+                                <td class="time">
                                     <div class="time">{{ productInfo.addTime | formatDate}}</div>
                                 </td>
                                 <td>