Browse Source

fix: 全局样式调整

周玉环 2 days ago
parent
commit
9b980a7c1c

+ 2 - 2
xinkeaboard-web/assets/style/forgetPassword.scss

@@ -7,8 +7,8 @@
       display: flex;
       padding: 20px 0;
       align-items: center;
-      width: 1200px;
-      margin: auto;
+      width: 1440px;
+      margin: 0 auto;
 
       .l_logo {
         cursor: pointer;

+ 2 - 2
xinkeaboard-web/assets/style/login.scss

@@ -7,8 +7,8 @@
             display: flex;
             padding: 20px 0;
             align-items: center;
-            width: 1200px;
-            margin: auto;
+            width: 1440px;
+            margin: 0 auto;
 
             .l_logo {
                 cursor: pointer;

+ 2 - 2
xinkeaboard-web/assets/style/register.scss

@@ -10,8 +10,8 @@
       display: flex;
 
       align-items: center;
-      width: 1200px;
-      margin: auto;
+      width: 1440px;
+      margin: 0 auto;
 
       .l_logo {
         height: 100%;

+ 1 - 1
xinkeaboard-web/assets/style/storeList.scss

@@ -180,7 +180,7 @@
                 margin-top: 10px;
             }
             .sld_rate {
-                margin-top: 8px;
+                // margin-top: 8px;
                 text-align: center;
                 i {
                     float: left;

+ 59 - 3
xinkeaboard-web/components/Store/HeaderCat.vue

@@ -46,6 +46,20 @@
       <div class="search_wrap clearfix">
         <div class="search_wrap-content">
           <form class="fl" action="javascript:void(0)" method="get">
+          <el-select 
+             v-model="searchType" 
+             placeholder="Select" 
+             popper-class="select-search-type"
+             style="width: 140px; 
+             height: 100%"
+            >
+              <el-option
+                v-for="item in searchTypeOptions"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
+              />
+            </el-select>
             <input
               type="text"
               v-model="keyword"
@@ -58,15 +72,15 @@
               @input="inputChange"
               @blur="inputBlur"
             />
-            <input type="submit" :value="L['搜索']" class="button" @click="search" />
+            <input type="submit" :value="L['搜索']" class="button" @click="unifySearch" />
           </form>
-          <input
+          <!-- <input
             type="submit"
             :value="L['搜本店']"
             class="button fl"
             @click="searchStore('keyword')"
             style="background: #333"
-          />
+          /> -->
         </div>
         
 
@@ -202,6 +216,17 @@ const storeData = reactive({
   cat: [ ],
   info: {}
 }); //店铺数据,cat:店铺分类,info:店铺基本信息
+const searchType = ref('store');
+const searchTypeOptions = [
+  {
+    value: 'store',
+    label: 'In This Store',
+  },
+  {
+    value: 'site',
+    label: 'Full Site',
+  },
+]
 const otherMenuData = reactive({data:[]})
 const { proxy } = getCurrentInstance();
 const keyword = ref(
@@ -302,6 +327,13 @@ watchEffect(() => {
 
 });
 
+const unifySearch = () => {
+  if (searchType.value === 'store') {
+    searchStore('keyword')
+  } else {
+    search()
+  }
+}
 
 //搜索事件(搜全站)
 const search = () => {
@@ -374,9 +406,33 @@ const inputBlur = () => {
 };
 </script>
 
+
+<style lang="scss">
+.select-search-type {
+  .el-select-dropdown__item {
+    &.is-selected { 
+          color: #036EB8;
+    }
+  }
+}
+</style>
 <style lang="scss" scoped>
 @import "@/assets/style/store/storeHeader.scss";
 
+:deep(.el-select) {
+  border-right: 1px solid $colorMain;
+}
+
+:deep(.el-select__wrapper) {
+  position: relative;
+  top: 2px;
+  box-shadow: none;
+
+  &:hover {
+      box-shadow: none;
+  }
+}
+
 .kefu {
   img {
     width: 16px;

+ 1 - 0
xinkeaboard-web/pages/goods/Category.vue

@@ -1,6 +1,7 @@
 <template>
   <div>
     <SldHomeTopSearch />
+    <NavTopBar />
     <NavCatHeader />
     <div class="bottom_line"></div>
     <div class="goods_sort">

+ 1 - 1
xinkeaboard-web/pages/member/login/forget.vue

@@ -25,7 +25,7 @@
     <div class="sld_login_content">
       <img
         class="bg"
-        :src="ImgBG ? ImgBG : configInfo.main_user_forget_password_bg + ''"
+        :src="ImgBG"
         :onerror="defaultBgImg"
         alt
       />