瀏覽代碼

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

傅行帆 5 年之前
父節點
當前提交
fac40459d1
共有 2 個檔案被更改,包括 10 行新增6 行删除
  1. 5
    5
      src/pages/carouselFigure/editAdvertising.jsx
  2. 5
    1
      src/pages/carouselFigure/editCarousel.jsx

+ 5
- 5
src/pages/carouselFigure/editAdvertising.jsx 查看文件

@@ -177,10 +177,6 @@ import SelectH5 from './SelectH5';
177 177
           label: '资讯',
178 178
           value: 'news'
179 179
         },
180
-        {
181
-          label: '其他',
182
-          value: 'other'
183
-        },
184 180
         {
185 181
           label: '拼团',
186 182
           value: 'group'
@@ -263,7 +259,11 @@ import SelectH5 from './SelectH5';
263 259
     const handleSubmit = val => {
264 260
       val.showType = 'screen'
265 261
       if(!val.isHaveActive&&val.targetId) {
266
-        val.contentType='h5'
262
+        if(val.contentType){
263
+            console.log(1)
264
+        }else{
265
+          val.contentType='h5'
266
+        }
267 267
       }
268 268
       if(contentId){
269 269
         request({ ...apis.carsuseFigure.updataExtendContent,urlData:{id: contentId}, data: val,}).then((data) => {

+ 5
- 1
src/pages/carouselFigure/editCarousel.jsx 查看文件

@@ -292,7 +292,11 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
292 292
       const handleSubmit = val => {
293 293
         val.showType = 'banner'
294 294
         if(!val.isHaveActive&&val.targetId) {
295
-          val.contentType='h5'
295
+          if(val.contentType){
296
+              console.log(1)
297
+          }else{
298
+            val.contentType='h5'
299
+          }
296 300
         }
297 301
         if (contentId) {
298 302
           request({ ...apis.carsuseFigure.updataExtendContent, urlData: { id: contentId }, data: val }).then(data => {