add pic upload service
This commit is contained in:
@@ -79,6 +79,7 @@ export class Comment extends Component {
|
||||
showAddBtn={this.state.files.length !== 3}
|
||||
count={3}
|
||||
files={this.state.files}
|
||||
sizeType={['compressed']}
|
||||
onChange={this.handlePicChange.bind(this)}
|
||||
/>
|
||||
</View>
|
||||
|
||||
@@ -11,11 +11,13 @@ export function submitComment(that: Comment) {
|
||||
isLoading: true,
|
||||
});
|
||||
Taro.request({
|
||||
url: getUrl('/report'),
|
||||
url: getUrl('/ticket/addnote'),
|
||||
method: 'POST',
|
||||
data: {
|
||||
token: wechatUser.getToken(),
|
||||
comment: that.state.comment,
|
||||
content: that.state.comment,
|
||||
id: that.props.id,
|
||||
pic: that.state.files,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user