weichaochao 5 år sedan
förälder
incheckning
19db92d860

+ 9
- 1
src/pages/activity/liveActivity/add/index.jsx Visa fil

@@ -31,6 +31,12 @@ const header = props => {
31 31
     });
32 32
   }
33 33
 
34
+   //打开新页面
35
+   const openIndexImg = () => {
36
+    const newWin=window.open('about:blank');
37
+    newWin.location.href="http://njcj.oss-cn-shanghai.aliyuncs.com/%E6%95%99%E7%A8%8B.png"
38
+  }
39
+
34 40
   function highlightsTypeChange(e) {
35 41
     console.log(e.target.value,"ee")
36 42
     setTypeState(e.target.value)
@@ -46,6 +52,8 @@ const header = props => {
46 52
     props.form.validateFields((err, values) => {
47 53
       if (!err){
48 54
         let {liveTime, ...submitValue} = values
55
+        submitValue.liveStartDate = moment(submitValue.liveStartDate._d).format('YYYY-MM-DD HH:mm:ss')
56
+        submitValue.liveEndDate = moment(submitValue.liveEndDate._d).format('YYYY-MM-DD HH:mm:ss')
49 57
         request({ ...apis.taliveActivity.addTaLiveActivity, data: { ...submitValue },}).then((data) => {
50 58
           message.info("保存成功")
51 59
           console.log(data,"datattttttt")
@@ -111,7 +119,7 @@ const header = props => {
111 119
         <Form.Item label="房间参数">
112 120
           {getFieldDecorator('liveRoomParam', {
113 121
             rules: [{ required: true, message: '请输入房间参数' }],
114
-          })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}<a href="http://njcj.oss-cn-shanghai.aliyuncs.com/%E7%9B%B4%E6%92%AD%E6%88%BF%E9%97%B4%E5%8F%B7%E8%8E%B7%E5%8F%96%E6%95%99%E7%A8%8B(1).docx" style={{ color: 'blue' }}> 不知道怎么填?查看说明</a>
122
+          })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}<a onClick={openIndexImg} style={{ color: 'blue' }}> 不知道怎么填?查看说明</a>
115 123
         </Form.Item>
116 124
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
117 125
               {getFieldDecorator('listImg', {

+ 8
- 1
src/pages/activity/liveActivity/edit/components/base.jsx Visa fil

@@ -46,6 +46,12 @@ const header = props => {
46 46
     });
47 47
   }
48 48
 
49
+  //打开新页面
50
+  const openIndexImg = () => {
51
+    const newWin=window.open('about:blank');
52
+    newWin.location.href="http://njcj.oss-cn-shanghai.aliyuncs.com/%E6%95%99%E7%A8%8B.png"
53
+  }
54
+
49 55
   function highlightsTypeChange(e) {
50 56
     console.log(e.target.value,"ee")
51 57
     setTypeState(e.target.value)
@@ -142,7 +148,8 @@ const header = props => {
142 148
           {getFieldDecorator('liveRoomParam', {
143 149
             initialValue: liveActivityData.liveRoomParam,
144 150
             rules: [{ required: true, message: '请输入房间参数' }],
145
-          })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}<a href="http://njcj.oss-cn-shanghai.aliyuncs.com/%E7%9B%B4%E6%92%AD%E6%88%BF%E9%97%B4%E5%8F%B7%E8%8E%B7%E5%8F%96%E6%95%99%E7%A8%8B(1).docx" style={{ color: 'blue' }}> 不知道怎么填?查看说明</a>
151
+          })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}
152
+          <a onClick={openIndexImg} style={{ color: 'blue' }}> 不知道怎么填?查看说明</a>
146 153
         </Form.Item>
147 154
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
148 155
               {getFieldDecorator('listImg', {

+ 1
- 1
src/pages/activity/liveActivity/list/index.jsx Visa fil

@@ -68,7 +68,7 @@ const header = props => {
68 68
       return
69 69
     }
70 70
     Modal.confirm({
71
-      title: '确定删除直播活动吗',
71
+      title: '删除后当前直播活动关联的小程序端开屏图、banner图等也会自动下架',
72 72
       okText: '确定',
73 73
       cancelText: '取消',
74 74
       onOk () {