weichaochao 5 jaren geleden
bovenliggende
commit
19db92d860

+ 9
- 1
src/pages/activity/liveActivity/add/index.jsx Bestand weergeven

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
   function highlightsTypeChange(e) {
40
   function highlightsTypeChange(e) {
35
     console.log(e.target.value,"ee")
41
     console.log(e.target.value,"ee")
36
     setTypeState(e.target.value)
42
     setTypeState(e.target.value)
46
     props.form.validateFields((err, values) => {
52
     props.form.validateFields((err, values) => {
47
       if (!err){
53
       if (!err){
48
         let {liveTime, ...submitValue} = values
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
         request({ ...apis.taliveActivity.addTaLiveActivity, data: { ...submitValue },}).then((data) => {
57
         request({ ...apis.taliveActivity.addTaLiveActivity, data: { ...submitValue },}).then((data) => {
50
           message.info("保存成功")
58
           message.info("保存成功")
51
           console.log(data,"datattttttt")
59
           console.log(data,"datattttttt")
111
         <Form.Item label="房间参数">
119
         <Form.Item label="房间参数">
112
           {getFieldDecorator('liveRoomParam', {
120
           {getFieldDecorator('liveRoomParam', {
113
             rules: [{ required: true, message: '请输入房间参数' }],
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
         </Form.Item>
123
         </Form.Item>
116
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
124
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
117
               {getFieldDecorator('listImg', {
125
               {getFieldDecorator('listImg', {

+ 8
- 1
src/pages/activity/liveActivity/edit/components/base.jsx Bestand weergeven

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
   function highlightsTypeChange(e) {
55
   function highlightsTypeChange(e) {
50
     console.log(e.target.value,"ee")
56
     console.log(e.target.value,"ee")
51
     setTypeState(e.target.value)
57
     setTypeState(e.target.value)
142
           {getFieldDecorator('liveRoomParam', {
148
           {getFieldDecorator('liveRoomParam', {
143
             initialValue: liveActivityData.liveRoomParam,
149
             initialValue: liveActivityData.liveRoomParam,
144
             rules: [{ required: true, message: '请输入房间参数' }],
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
         </Form.Item>
153
         </Form.Item>
147
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
154
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
148
               {getFieldDecorator('listImg', {
155
               {getFieldDecorator('listImg', {

+ 1
- 1
src/pages/activity/liveActivity/list/index.jsx Bestand weergeven

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