diff --git a/config/app.js b/config/app.js index 29070a6..adddc06 100644 --- a/config/app.js +++ b/config/app.js @@ -9,8 +9,8 @@ let httpApiThree // 网络接口修改此字符 小程序域名要求https // let httpApi = 'http://192.168.31.110:8324' // 测试 if (process.env.NODE_ENV === "development") { - httpApi = 'https://shop.lihaink.cn' // 生产 - // httpApi = "https://crmeb-test.shop.lihaink.cn" + // httpApi = 'https://shop.lihaink.cn' // 生产 + httpApi = "https://crmeb-test.shop.lihaink.cn" // httpApi = "http://192.168.0.222" // httpApi = "http://192.168.0.108:8325" // httpApi = 'http://192.168.0.108:8325' diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue index d2a0cb2..585f919 100644 --- a/pages/nongKe/cloud_entrepot/index.vue +++ b/pages/nongKe/cloud_entrepot/index.vue @@ -17,8 +17,9 @@ --> + - + @@ -59,7 +60,7 @@ 全部 - + @@ -75,7 +76,7 @@ :circular="true" previous-margin='0rpx' next-margin='0rpx' :current="current" :disable-touch="true"> - @@ -97,15 +98,15 @@ - - - {{item.tit}} - - + - + + + {{item.tit}} + + @@ -280,8 +281,9 @@ showtit: true, cartList: [], activeClass: 'activeClass', - headtop: "", + headtop: 0, page_num: 1, + act_img: "", actList: [{ tit: '综合', act: "", @@ -338,13 +340,15 @@ .select('.content') .boundingClientRect(rect => { // console.log(rect) - if (rect.top <= this.headtop) { + if (rect.top <= (this.headtop + 16)) { this.pocls = 'fixed' this.act_swiper = 'act_swiper' + this.act_img = 'act_img' } else { this.pocls = '' this.act_swiper = '' + this.act_img = '' } }) @@ -352,11 +356,20 @@ if (this.headtop) return uni.createSelectorQuery() .in(this) - .select('.flag') + .select('.flags') .boundingClientRect(rect => { this.headtop = rect.top + console.log(rect.top) }) .exec(); + // uni.createSelectorQuery() + // .in(this) + // .select('.content_sift') + // .boundingClientRect(rect => { + // // this.headtop += rect.height + // console.log(this.headtop) + // }) + // .exec(); }, onPullDownRefresh() { uni.stopPullDownRefresh() @@ -478,6 +491,11 @@