|
@ -16,7 +16,7 @@ |
|
|
<view> |
|
|
<view> |
|
|
<view class="help-issue"> |
|
|
<view class="help-issue"> |
|
|
<text>问题截图</text> |
|
|
<text>问题截图</text> |
|
|
<text style="color: #BD3624;">*</text> |
|
|
|
|
|
|
|
|
<!-- <text style="color: #BD3624;">*</text> --> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="help-screenshot"> |
|
|
<view class="help-screenshot"> |
|
@ -47,7 +47,7 @@ |
|
|
</uv-input> |
|
|
</uv-input> |
|
|
</view> --> |
|
|
</view> --> |
|
|
<view class="help-button"> |
|
|
<view class="help-button"> |
|
|
<view>确认</view> |
|
|
|
|
|
|
|
|
<view @click="submitFeedback">确认</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -78,6 +78,32 @@ |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
submitFeedback(){ |
|
|
|
|
|
|
|
|
|
|
|
if(!this.value){ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: '请输入你的问题和意见', |
|
|
|
|
|
icon:'none' |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$api('submitFeedback', { |
|
|
|
|
|
content : this.value, |
|
|
|
|
|
image : this.fileList.map((item) => item.url).join(","), |
|
|
|
|
|
}, res => { |
|
|
|
|
|
if(res.code == 200){ |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: res.message, |
|
|
|
|
|
icon:'none' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
uni.navigateBack(-1) |
|
|
|
|
|
}, 2000) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
@ -105,12 +131,12 @@ |
|
|
.help-button { |
|
|
.help-button { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
font-size: 24rpx; |
|
|
|
|
|
|
|
|
font-size: 26rpx; |
|
|
flex-shrink: 0; |
|
|
flex-shrink: 0; |
|
|
margin-top: 60rpx; |
|
|
margin-top: 60rpx; |
|
|
|
|
|
|
|
|
view { |
|
|
view { |
|
|
padding: 14rpx 120rpx; |
|
|
|
|
|
|
|
|
padding: 25rpx 260rpx; |
|
|
border-radius: 38rpx; |
|
|
border-radius: 38rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|