liudan 6 months ago
parent 2e6db10a95
commit fc71d5ae4a
  1. 4
      config/app.js
  2. 2
      manifest.json
  3. 28
      pages.json
  4. 83
      pages/index/component/headerSerch.vue
  5. BIN
      static/images/1-001.png
  6. BIN
      static/images/1-002.png
  7. BIN
      static/images/2-001.png
  8. BIN
      static/images/2-002.png
  9. BIN
      static/images/3-001.png
  10. BIN
      static/images/3-002.png
  11. BIN
      static/images/4-001.png
  12. BIN
      static/images/4-002.png
  13. BIN
      static/images/5-001.png
  14. BIN
      static/images/5-002.png
  15. BIN
      static/images/bg.png
  16. BIN
      static/images/fenlei1.png
  17. BIN
      static/images/fenlei2.png
  18. BIN
      static/images/gwc1.png
  19. BIN
      static/images/gwc2.png
  20. BIN
      static/images/shouye1.png
  21. BIN
      static/images/shouye2.png
  22. BIN
      static/images/wode1.png
  23. BIN
      static/images/wode2.png

@ -15,11 +15,11 @@ let openPlantGrass = '-openPlantGrass-'
// 网络接口修改此字符 小程序域名要求https // 网络接口修改此字符 小程序域名要求https
// let httpApi = 'http://192.168.31.106:8324' //测试 // let httpApi = 'http://192.168.31.106:8324' //测试
let httpApi = 'https://mer1.crmeb.net' //生产 let httpApi = 'http://system.deyouzhenxuan.com' //生产
// 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net // 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer.crmeb.net
// let wsApi = 'ws://192.168.3.20:8324' // let wsApi = 'ws://192.168.3.20:8324'
let wsApi = 'wss://mer1.crmeb.net' let wsApi = 'wss://system.deyouzhenxuan.com'
module.exports = { module.exports = {
// 请求域名 格式: https://您的域名 // 请求域名 格式: https://您的域名

@ -158,7 +158,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx5fb1cc8edb3f8baa", "appid" : "wxe73fdbe0258704a7",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"minified" : true, "minified" : true,

@ -1288,33 +1288,33 @@
{ {
"pagePath": "pages/index/index" "pagePath": "pages/index/index"
, ,
"iconPath": "static/images/1-001.png", "iconPath": "static/images/shouye2.png",
"selectedIconPath": "static/images/1-002.png", "selectedIconPath": "static/images/shouye1.png",
"text": "首页" "text": "首页"
}, },
{ {
"pagePath": "pages/goods_cate/goods_cate" "pagePath": "pages/goods_cate/goods_cate"
, ,
"iconPath": "static/images/2-001.png", "iconPath": "static/images/fenlei2.png",
"selectedIconPath": "static/images/2-002.png", "selectedIconPath": "static/images/fenlei1.png",
"text": "分类" "text": "分类"
}, },
{ // {
"pagePath": "pages/plant_grass/index", // "pagePath": "pages/plant_grass/index",
"iconPath": "static/images/5-001.png", // "iconPath": "static/images/5-001.png",
"selectedIconPath": "static/images/5-002.png", // "selectedIconPath": "static/images/5-002.png",
"text": "逛逛" // "text": "逛逛"
}, // },
{ {
"pagePath": "pages/order_addcart/order_addcart", "pagePath": "pages/order_addcart/order_addcart",
"iconPath": "static/images/3-001.png", "iconPath": "static/images/gwc2.png",
"selectedIconPath": "static/images/3-002.png", "selectedIconPath": "static/images/gwc1.png",
"text": "购物车" "text": "购物车"
}, },
{ {
"pagePath": "pages/user/index", "pagePath": "pages/user/index",
"iconPath": "static/images/4-001.png", "iconPath": "static/images/wode2.png",
"selectedIconPath": "static/images/4-002.png", "selectedIconPath": "static/images/wode1.png",
"text": "我的" "text": "我的"
} }
] ]

@ -1,6 +1,6 @@
<template> <template>
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<view class="header" :style="'background: '+ bgColor +' ;margin-top:'+ mbConfig +'rpx;'"> <view class="header" :style="'margin-top:'+ mbConfig +'rpx;'">
<view class="serch-wrapper acea-row row-between-wrapper" :style="'padding-left:'+prConfig+'rpx;'"> <view class="serch-wrapper acea-row row-between-wrapper" :style="'padding-left:'+prConfig+'rpx;'">
<view v-if="logoConfig" class="logo skeleton-rect"> <view v-if="logoConfig" class="logo skeleton-rect">
<image :src="logoConfig" mode=""></image> <image :src="logoConfig" mode=""></image>
@ -19,17 +19,36 @@
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP || APP-PLUS --> <!-- #ifdef MP || APP-PLUS -->
<view> <view>
<view class="mp-header" :style="'background: '+ bgColor +' ;margin-top:'+ mbConfig +'rpx;'"> <!-- :style="'background: '+ bgColor +' ;margin-top:'+ mbConfig +'rpx;'" -->
<view class="mp-header">
<view class="sys-head skeleton-rect" :style="{ height: statusBarHeight }"></view> <view class="sys-head skeleton-rect" :style="{ height: statusBarHeight }"></view>
<view class="serch-box skeleton-rect" style="height: 43px;"> <view class="serch-box skeleton-rect" style="height: 43px;display: flex;justify-content: space-between;align-items: center;min-width: 550rpx;max-width: 550rpx;">
<view class="serch-wrapper flex" :style="'padding-left:'+prConfig+'rpx;'"> <!-- <view class="serch-wrapper flex" :style="'padding-left:'+prConfig+'rpx;'">
<view v-if="logoConfig" class="logo skeleton-rect"><image :src="logoConfig" mode=""></image></view> <view v-if="logoConfig" class="logo skeleton-rect"><image :src="logoConfig" mode=""></image></view>
<navigator :url="merId ? '/pages/store/list/index?mer_id='+merId : '/pages/columnGoods/goods_search/index'" :class="logoConfig ? 'input' : 'uninput'" <navigator :url="merId ? '/pages/store/list/index?mer_id='+merId : '/pages/columnGoods/goods_search/index'" :class="logoConfig ? 'input' : 'uninput'"
hover-class="none" class="skeleton-rect box" :style="'border-radius:'+boxStyle+'rpx;text-align:'+txtStyle"> hover-class="none" class="skeleton-rect box" :style="'border-radius:'+boxStyle+'rpx;text-align:'+txtStyle">
<text class="iconfont icon-xiazai5"></text> <text class="iconfont icon-xiazai5"></text>
搜索商品 搜索商品
</navigator> </navigator>
</view> -->
<view class="indexTitle">
{{site_name}}
</view> </view>
<image src="/static/images/xiaoxi.png" mode="" @click="goChat" class="xiaoxi"></image>
</view>
<view class="serch-box skeleton-rect" style="height: 110rpx;">
<view class="serch-wrapper flex">
<view v-if="logoConfig" class="logo skeleton-rect"><image :src="logoConfig" mode=""></image></view>
<navigator :url="merId ? '/pages/store/list/index?mer_id='+merId : '/pages/columnGoods/goods_search/index'" :class="logoConfig ? 'input' : 'uninput'"
hover-class="none" class="skeleton-rect box" :style="'border-radius:'+'80'+'rpx;text-align:'+txtStyle">
<text class="iconfont icon-xiazai5"></text>
搜索商品
<view class="searchBtn">搜索</view>
</navigator>
</view>
</view> </view>
</view> </view>
<view :style="'height:'+marTop+'px;'"></view> <view :style="'height:'+marTop+'px;'"></view>
@ -48,6 +67,8 @@
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
let statusBarHeight = uni.getSystemInfoSync().statusBarHeight*2 + 'rpx'; let statusBarHeight = uni.getSystemInfoSync().statusBarHeight*2 + 'rpx';
import { mapGetters } from 'vuex';
import { configMap } from '@/utils/index';
export default { export default {
name: 'headerSerch', name: 'headerSerch',
props: { props: {
@ -101,7 +122,16 @@
}, 300) }, 300)
// #endif // #endif
}, },
methods: {} methods: {
goChat(){
uni.navigateTo({
url:"/pages/huitong/huitongbao/notice"
})
}
},
computed:{
...configMap({login_logo:'',site_name: '',first_avatar_switch: ''}, mapGetters(['isLogin','viewColor'])),
},
} }
</script> </script>
@ -166,11 +196,27 @@
/* #ifdef H5 */ /* #ifdef H5 */
padding-bottom: 20rpx; padding-bottom: 20rpx;
/* #endif */ /* #endif */
background-color: #fff; // background-color: #fff;
background-size: cover;
background-image: url(http://image.deyouzhenxuan.com/def/619d3202405301544182312.png);
// margin-bottom: 24rpx;
.indexTitle{
margin:0 24rpx;
font-family: Alibaba PuHuiTi;
font-weight: bold;
font-size: 36rpx;
color: #222222;
}
.xiaoxi{
width:44rpx;
height:44rpx;
}
.serch-wrapper { .serch-wrapper {
height: 100%; height: 100%;
align-items: center; align-items: center;
padding: 0 50rpx 0 53rpx; // padding: 0 50rpx 0 53rpx;
padding: 0 24rpx;
position: relative;
image { image {
width: 118rpx; width: 118rpx;
height: 42rpx; height: 42rpx;
@ -186,7 +232,7 @@
flex: 1; flex: 1;
width: 500rpx; width: 500rpx;
/* #endif */ /* #endif */
height: 58rpx; height: 80rpx;
padding: 0 0 0 30rpx; padding: 0 0 0 30rpx;
background: rgba(247, 247, 247, 1); background: rgba(247, 247, 247, 1);
border: 1px solid rgba(241, 241, 241, 1); border: 1px solid rgba(241, 241, 241, 1);
@ -199,10 +245,27 @@
} }
.uninput { .uninput {
/* #ifdef MP */ /* #ifdef MP */
min-width: 450rpx; // min-width: 450rpx;
max-width: 480rpx; // max-width: 480rpx;
/* #endif*/ /* #endif*/
width: 100%;
}
} }
.searchBtn{
position: absolute;
z-index:2;
width: 120rpx;
height: 66rpx;
background: linear-gradient(0deg, #89B929, #116636);
border-radius: 33px;
font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 28rpx;
line-height: 66rpx;
text-align: center;
color: #FFFFFF;
right: 31rpx;
} }
} }
/* #endif */ /* #endif */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Loading…
Cancel
Save