Commit 42494f7915b20e60070702a6702a9ab72e922370

Authored by 前端开发-罗建龙
1 parent 688038a3

OA单

components/diy_goodsGroup/diy_goodsGroup.js
@@ -9,7 +9,7 @@ var regeneratorRuntime = require('../../utils/runtime.js'); @@ -9,7 +9,7 @@ var regeneratorRuntime = require('../../utils/runtime.js');
9 var g_filter = require('./filter'); 9 var g_filter = require('./filter');
10 10
11 Component({ 11 Component({
12 - properties: { 12 + properties: {
13 // 这里定义了innerText属性,属性值可以在组件使用时指定 13 // 这里定义了innerText属性,属性值可以在组件使用时指定
14 object: { 14 object: {
15 type: Object, 15 type: Object,
@@ -62,6 +62,7 @@ Component({ @@ -62,6 +62,7 @@ Component({
62 is_get:0, 62 is_get:0,
63 63
64 is_retail_price:0, //是否显示零售价 64 is_retail_price:0, //是否显示零售价
  65 + swiperHeight:0
65 // action_index:0, //选中的tab项 66 // action_index:0, //选中的tab项
66 }, 67 },
67 68
@@ -606,9 +607,21 @@ Component({ @@ -606,9 +607,21 @@ Component({
606 }); 607 });
607 } 608 }
608 } 609 }
609 - 610 + if (th.data.object.style==6) {
  611 + th.setSwiper_h()
  612 + }
610 }, 613 },
611 - 614 + setSwiper_h(){
  615 + var th=this
  616 + wx.createSelectorQuery().in(this).select('.swiper_h').boundingClientRect(rect => {
  617 + if (rect && rect.height) {
  618 + var sumHeigth=(rect.height+13)+'px'
  619 + th.setData({
  620 + swiperHeight: sumHeigth
  621 + })
  622 + }
  623 + }).exec();
  624 + },
612 re_show: function () { 625 re_show: function () {
613 if (this.data.object.goodscount * this.data.page < this.data.total) { 626 if (this.data.object.goodscount * this.data.page < this.data.total) {
614 this.setLoading() 627 this.setLoading()