fmui-base 2.0.76 → 2.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,8 +112,9 @@ var MyGrid = function (_React$Component) {
112
112
  } else if (item.portletCode == 'image') {
113
113
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
114
114
  } else if (item.portletCode == 'cyyy') {
115
+ var cyyyCols = JSON.parse(item.personalSetting).cols;
115
116
  t.getShoucangAppInfo(item.id);
116
- t.getOftenList(item.id);
117
+ t.getOftenList(item.id, cyyyCols);
117
118
  _this.getRemindCount();
118
119
  } else if (item.portletCode !== 'tbgl') {
119
120
  var _params = {
@@ -161,10 +162,10 @@ var MyGrid = function (_React$Component) {
161
162
  }).catch(function (error) {});
162
163
  };
163
164
 
164
- _this.getOftenList = function (id) {
165
+ _this.getOftenList = function (id, cyyyCols) {
165
166
  var data = getLoginUserInfo();
166
167
  var thirdMenuType = data.thirdMenuType;
167
- var params = { code: "cyyy" };
168
+ var params = { code: "cyyy", cols: cyyyCols };
168
169
  if (thirdMenuType == null || thirdMenuType == 'null' || thirdMenuType == undefined || thirdMenuType == 'undefined') {
169
170
  thirdMenuType = 'DING';
170
171
  }
@@ -637,11 +638,11 @@ var MyGrid = function (_React$Component) {
637
638
  }
638
639
  componentContent = _react2.default.createElement(
639
640
  'div',
640
- { className: 'react-grid-banner' },
641
+ { className: personalSetting.styleType == '1' ? "react-grid-banner react-grid-banner-type1" : "react-grid-banner react-grid-banner-type2" },
641
642
  _react2.default.createElement(
642
643
  'div',
643
- { className: 'react-grid-banner-img' },
644
- _react2.default.createElement('img', { src: pathUrl })
644
+ { className: 'react-grid-banner-img ' },
645
+ _react2.default.createElement('img', { src: pathUrl, onerror: 'this.src=\'../../../fmui/images/defaultHome.png\';this.onerror=null' })
645
646
  ),
646
647
  _react2.default.createElement(
647
648
  'div',
@@ -679,7 +680,7 @@ var MyGrid = function (_React$Component) {
679
680
  var todoInfo = projectMenuUrl.todoInfo[item];
680
681
  return _react2.default.createElement(
681
682
  'div',
682
- { className: 'react-grid-banner-type1', onClick: t.skip2Project.bind(this, todoInfo.moduleCode, todoInfo.url) },
683
+ { className: personalSetting.styleType == '1' ? "react-grid-banner react-grid-banner-type1" : "react-grid-banner react-grid-banner-type2", onClick: t.skip2Project.bind(this, todoInfo.moduleCode, todoInfo.url) },
683
684
  _react2.default.createElement(
684
685
  'div',
685
686
  { className: 'react-grid-banner-item' },
@@ -721,7 +722,7 @@ var MyGrid = function (_React$Component) {
721
722
  if (item.portletCode === 'cyyy') {
722
723
  componentContent = _react2.default.createElement(
723
724
  'div',
724
- { className: 'react-app-collect' },
725
+ { className: personalSetting.styleType == '1' ? 'react-app-collect react-app-collect-type1' : 'react-app-collect react-app-collect-type2' },
725
726
  _react2.default.createElement(
726
727
  _Tab2.default,
727
728
  { activeKey: '0' },
@@ -843,14 +844,9 @@ var MyGrid = function (_React$Component) {
843
844
  } },
844
845
  _react2.default.createElement(
845
846
  'div',
846
- { className: 'title t-omit' },
847
+ { className: 'title' },
847
848
  item.name
848
849
  ),
849
- _react2.default.createElement(
850
- 'div',
851
- { className: 'describe t-omit' },
852
- item.categoryName
853
- ),
854
850
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' bg' }),
855
851
  _react2.default.createElement('i', { className: 'iconfont-ywtb icon-ywtb-' + item.icon + ' ic' })
856
852
  );
@@ -1676,21 +1672,13 @@ var MyGrid = function (_React$Component) {
1676
1672
  _carouselItem = t.state[item.portletCode + '_' + item.id].map(function (item) {
1677
1673
  var imgUrlPath = localStorage.getItem('context') + '/api/m/plugin/attachment/mobile/viewImage?token=' + localStorage.getItem('token') + '&fid=' + item.imgUrl;
1678
1674
 
1679
- return _react2.default.createElement(
1680
- _Carousel2.default.Item,
1681
- { title: '\u6807\u9898', code: item.code, className: 't-image-slide-item t-R10', style: { backgroundImage: 'url(' + imgUrlPath + ')' } },
1682
- _react2.default.createElement(
1683
- 'p',
1684
- { className: 't-FS20 t-PT20 t-MB10', style: { textAlign: 'center' } },
1685
- item.name
1686
- )
1687
- );
1675
+ return _react2.default.createElement(_Carousel2.default.Item, { title: '\u6807\u9898', code: item.code, className: 't-image-slide-item t-R10', style: { backgroundImage: 'url(' + imgUrlPath + ')' } });
1688
1676
  });
1689
1677
  }
1690
1678
  if (t.state[item.portletCode + '_' + item.id] && t.state[item.portletCode + '_' + item.id].length > 0) {
1691
1679
  componentContent = _react2.default.createElement(
1692
1680
  _Carousel2.default,
1693
- { showNav: true, height: '91px', auto: false, className: 'jxzt-content', onSlideClick: function onSlideClick(option) {
1681
+ { showNav: true, auto: false, className: 'jxzt-content', onSlideClick: function onSlideClick(option) {
1694
1682
  t.skip2Zhuanti(option);
1695
1683
  } },
1696
1684
  _carouselItem
@@ -1803,7 +1791,7 @@ var MyGrid = function (_React$Component) {
1803
1791
  width: window.innerWidth,
1804
1792
  isDraggable: this.state.isDraggable,
1805
1793
  margin: [0, 15],
1806
- containerPadding: [8, 8]
1794
+ containerPadding: [8, 0]
1807
1795
  },
1808
1796
  this.state.data.map(function (item) {
1809
1797
  return t.portalContent(item) || null;
@@ -101,11 +101,16 @@ var MyGrid = function (_React$Component) {
101
101
  var t = _this;
102
102
  // 部件的初始化信息
103
103
  _db2.default.reactGrid.getPortalPage({ id: t.state.portalId, module: t.state.module }).then(function (res) {
104
- if (res && res.length > 0) {
104
+ if (res) {
105
+ var pageTitle = res.portalTitle;
106
+ if (!pageTitle || pageTitle == '') {
107
+ pageTitle = '一网通办管理平台';
108
+ }
109
+ setPageTitle(pageTitle);
105
110
  _this.setState({
106
- data: res
111
+ data: res.portlet
107
112
  });
108
- res.map(function (item) {
113
+ res.portlet.map(function (item) {
109
114
  if (item.portletCode == 'banner') {
110
115
  _this.setState(_defineProperty({}, item.portletCode + '_' + item.id, JSON.parse(item.personalSetting)));
111
116
  _this.getRemindCount();
@@ -146,11 +151,6 @@ var MyGrid = function (_React$Component) {
146
151
  var openModule = content.hpOpenModule ? content.hpOpenModule : "";
147
152
  localStorage.setItem('hpOpenModule', openModule);
148
153
  // let todoData = content.todoData != null ? content.todoData.entity : {};
149
- // let pageTitle = todoData.pageTitle;
150
- // if (!pageTitle || pageTitle == '') {
151
- // pageTitle = '一网通办管理平台'
152
- // }
153
- // setPageTitle(pageTitle);
154
154
  });
155
155
  };
156
156
 
@@ -1276,7 +1276,7 @@ var MyGrid = function (_React$Component) {
1276
1276
  }
1277
1277
  componentContent = _react2.default.createElement(
1278
1278
  'div',
1279
- null,
1279
+ { 'class': 'component-bssx' },
1280
1280
  t.state['activeIndex_ggyj_' + item.id] && t.state['activeIndex_ggyj_' + item.id] === true ? _react2.default.createElement(
1281
1281
  'p',
1282
1282
  { className: styleSetting.titleSet.titleStatus == 1 && styleSetting.otherSet.toolbarShow == 1 ? "rightMore" : 't-DN', onClick: t.skip2More.bind(this, 'ggyj') },
@@ -108,7 +108,7 @@
108
108
  position: absolute;
109
109
  // width: 114%;
110
110
  width: calc(100% + 16px);
111
- height: 130px;
111
+ height: 120px;
112
112
  // left: -14%;
113
113
  left: -8px;
114
114
  right: 0;
@@ -118,7 +118,7 @@
118
118
  // width: 114%;
119
119
  width: 100%;
120
120
  height: 100%;
121
- border-radius: 0 0 39% 39%;
121
+ border-radius: 0 0 42% 42%;
122
122
  }
123
123
  }
124
124
 
@@ -1305,7 +1305,7 @@
1305
1305
  }
1306
1306
 
1307
1307
  .t-grid {
1308
- margin: 0 8px;
1308
+ margin: 0;
1309
1309
  border-top: none !important;
1310
1310
 
1311
1311
  .t-grid-row {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.76",
3
+ "version": "2.0.78",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",