Przeglądaj źródła

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

傅行帆 5 lat temu
rodzic
commit
e974420776

+ 1
- 2
src/pages/activity/groupActivity/detailActivity.jsx Wyświetl plik

@@ -153,7 +153,7 @@ const BasicForm = props => {
153 153
           <img src={detailData.bannerListImg} height="125px" width="375px" />
154 154
         </Form.Item>
155 155
         <Form.Item label="活动时间">
156
-          <span>{`${moment(detailData.startDate).format('YYYY-MM-DD')} —— ${moment(detailData.endDate).format('YYYY-MM-DD')}`}</span>
156
+          <span>{`${moment(detailData.startDate).format('YYYY-MM-DD HH:mm:ss')} —— ${moment(detailData.endDate).format('YYYY-MM-DD HH:mm:ss')}`}</span>
157 157
         </Form.Item>
158 158
         <Form.Item label="成团人数">
159 159
             <span>{detailData.groupBuyPeople}</span>
@@ -171,7 +171,6 @@ const BasicForm = props => {
171 171
           <AuthButton name="admin.SignList.get" noRight={null}>
172 172
           {(detailData.activityStatus === 0 || detailData.activityStatus === 2) && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={getSignList.bind(this, detailData.groupActivityId)}><Button>拼团记录</Button></span>}
173 173
           </AuthButton>
174
-          {(detailData.activityStatus === 0 || detailData.activityStatus === 2) &&<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={newQrcode.bind(this, detailData)}>{<Button>下载二维码</Button>}</span>}
175 174
           <Button onClick={() => cancelPage()}>
176 175
             取消
177 176
           </Button>

+ 3
- 4
src/pages/activity/helpActivity/detailActivity.jsx Wyświetl plik

@@ -160,14 +160,14 @@ const BasicForm = props => {
160 160
         <Form.Item label="助力封面图2">
161 161
           <img src={detailData.bannerListImg} height="125px" width="375px" />
162 162
         </Form.Item>
163
-        <Form.Item label="助力邀请数">
163
+        <Form.Item label="助力邀请数">
164 164
           <span>{detailData.personNum}</span>
165 165
         </Form.Item>
166
-        <Form.Item label="助力发起次数">
166
+        <Form.Item label="助力次数">
167 167
           <span>{detailData.helpNum === 0 ? '不限' : detailData.helpNum}</span>
168 168
         </Form.Item>
169 169
         <Form.Item label="活动时间">
170
-          <span>{`${moment(detailData.startDate).format('YYYY-MM-DD')} —— ${moment(detailData.endDate).format('YYYY-MM-DD')}`}</span>
170
+          <span>{`${moment(detailData.startDate).format('YYYY-MM-DD HH:mm:ss')} —— ${moment(detailData.endDate).format('YYYY-MM-DD HH:mm:ss')}`}</span>
171 171
         </Form.Item>
172 172
         <Form.Item label="活动说明">
173 173
           <img src={detailData.activityInstructions} height="300px" width="375px" />
@@ -179,7 +179,6 @@ const BasicForm = props => {
179 179
           <AuthButton name="admin.SignList.get" noRight={null}>
180 180
           {(detailData.activityStatus === 0 || detailData.activityStatus === 2) && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={getSignList.bind(this, detailData.helpActivityId)}><Button>助力记录</Button></span>}
181 181
           </AuthButton>
182
-          {(detailData.activityStatus === 0 || detailData.activityStatus === 2) &&<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={newQrcode.bind(this, detailData)}>{<Button>下载二维码</Button>}</span>}
183 182
           <Button onClick={() => cancelPage()}>
184 183
             取消
185 184
           </Button>

+ 1
- 1
src/pages/building/list/add/components/base.jsx Wyświetl plik

@@ -441,7 +441,7 @@ function AddBuilding(props) {
441 441
               <ImageUpload />,
442 442
             )}
443 443
           </Form.Item> */}
444
-          <Form.Item label="排序" >
444
+          <Form.Item label="排序" help="数值越大,楼盘在列表页中展示越靠前">
445 445
             {getFieldDecorator('orderNo')(<Input />)}
446 446
           </Form.Item>
447 447
           {/* <Form.Item label="优惠信息" >

+ 6
- 3
src/pages/carouselFigure/carouselFigureList.jsx Wyświetl plik

@@ -59,13 +59,14 @@ const toEditCarouse = (contentId) => () => {
59 59
       dataIndex: 'buildingName',
60 60
       key: 'buildingName',
61 61
       align: 'center',
62
+      render: (buildingName) => <span>{ buildingName === null ? '无' : buildingName }</span>
62 63
     },
63 64
     {
64 65
       title: '关联内容类型',
65 66
       dataIndex: 'contentType',
66 67
       key: 'contentType',
67 68
       align: 'center',
68
-      render: (contentType) => <span>{ contentType === 'project' ? '项目' : contentType === 'activity' ? '活动' : contentType === 'news' ? '资讯' : contentType === 'other' ? '其他' : contentType === 'help' ? '助力' : contentType === 'group' ? '拼团' : contentType === 'h5' ? 'H5活动' : '' }</span>
69
+      render: (contentType) => <span>{ contentType === 'project' ? '项目' : contentType === 'activity' ? '活动' : contentType === 'news' ? '资讯' : contentType === 'other' ? '其他' : contentType === 'help' ? '助力' : contentType === 'group' ? '拼团' : contentType === 'h5' ? 'H5活动' : '' }</span>
69 70
     },
70 71
     {
71 72
       title: '发布位置',
@@ -145,12 +146,13 @@ const deleteCarouse = (contentId) => () =>{
145 146
   const changeStatus = (row) => () => {
146 147
       console.log(row)
147 148
       if(row.status === 0) {
148
-        row.status = 1
149
+        
149 150
         Modal.confirm({
150 151
           title: '确认发布此数据?',
151 152
           okText: '确定',
152 153
           cancelText: '取消',
153 154
           onOk() {
155
+            row.status = 1
154 156
             request({ ...apis.carsuseFigure.updataExtendContent,urlData:{id: row.contentId}, data: row,}).then((data) => {
155 157
                   message.info('操作成功!')
156 158
                   getList({ pageNum: 1, pageSize: 10, showType: 'banner' })
@@ -161,12 +163,13 @@ const deleteCarouse = (contentId) => () =>{
161 163
           },
162 164
         });
163 165
       }else if(row.status === 1){
164
-        row.status = 0
166
+        
165 167
         Modal.confirm({
166 168
           title: '停用后不会再显示在小程序端',
167 169
           okText: '确定',
168 170
           cancelText: '取消',
169 171
           onOk() {
172
+            row.status = 0
170 173
             request({ ...apis.carsuseFigure.updataExtendContent,urlData:{id: row.contentId}, data: row,}).then((data) => {
171 174
                   message.info('操作成功!')
172 175
                   getList({ pageNum: 1, pageSize: 10, showType: 'banner' })