Browse Source

上传代码

master
前端-胡立永 10 months ago
parent
commit
a884e9e095
3 changed files with 39 additions and 5 deletions
  1. +8
    -0
      api/api.js
  2. +1
    -1
      config.js
  3. +30
    -4
      pages_mine/mine/help.vue

+ 8
- 0
api/api.js View File

@ -247,6 +247,14 @@ const config = {
auth: true, auth: true,
showLoading : true, showLoading : true,
}, },
// 提交反馈接口
submitFeedback: {
url: '/api/info/submitFeedback',
method: 'POST',
auth: true,
limit : 3000,
showLoading : true,
},
//小程序-登录相关接口 //小程序-登录相关接口


+ 1
- 1
config.js View File

@ -5,7 +5,7 @@ import utils from './utils/utils.js'
// 当前环境 // 当前环境
const type = 'prod'
const type = 'dev'
// 环境配置 // 环境配置


+ 30
- 4
pages_mine/mine/help.vue View File

@ -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;
} }


Loading…
Cancel
Save