|
@@ -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', {
|