123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <template>
- <view class="content">
- <view class="online_box">
- <view class="online">
- <view class="tit">申诉理由</view>
- <view class="text_box" style="margin-top: 20rpx;">
- <u-input v-model="value" height="300" :type="type" :border="border" :clearable="false" placeholder="请描述问题发生的情况" />
- </view>
- </view>
- </view>
- <view class="btn" @click="bindorder">立即提交</view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- value: '',
- type: 'textarea',
- border: true,
- indentNumber:'',
- complaintType:'',
- complaintName:'',
- complaintId: '',
- }
- },
- onLoad(options) {
- console.log(options)
- this.indentNumber =options.indentNumber
- this.complaintId =options.complaintId
- },
- methods: {
- bindorder(){
- if(this.value==''){
- uni.showToast({
- title:'请输入申诉理由',
- icon:'none'
- })
- return
- }
- this.$Request.postJson('/app/indent/appealIndent',
- {
- indentNumber:this.indentNumber,
- // appealType:this.complaintType,
- appealMessage:this.value,
- complaintId: this.complaintId
- }).then(res => {
- if(res.code==0){
- uni.showToast({
- title:'提交成功',
- icon:'none'
- })
- setTimeout(function(){
- uni.redirectTo({
- url:'/my/appeal/index'
- })
- },1500)
- }else{
- console.log('失败:',res.data)
- }
-
- });
- }
- }
- }
- </script>
- <style>
- body {
- background-color: #F5F5F5;
- }
- .content {
- width: 100%;
- }
- .online_box {
- width: 90%;
- margin: 0 auto;
- background: #FFFFFF;
- border-radius: 20rpx;
- margin-top: 30rpx;
- padding-top: 20rpx;
- padding-bottom: 40rpx;
- }
- .part1 {
- width: 90%;
- margin: 0 auto;
- height: 80rpx;
- display: flex;
- align-items: center;
- }
- .online_left {
- flex: 1;
- font-size: 27rpx;
- font-weight: bold;
- letter-spacing: 2rpx;
- }
- .online_right {
- color: #999999;
- font-size: 22rpx;
- flex: 1;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- }
- .online_right image {
- width: 12rpx;
- height: 21rpx;
- margin-left: 10rpx;
- }
- .online_title {
- font-size: 28rpx;
- font-weight: bold;
- letter-spacing: 2rpx;
- width: 90%;
- margin: 0 auto;
- line-height: 80rpx;
- }
- .online {
- width: 90%;
- margin: 0 auto;
- padding-bottom: 34rpx;
- }
- .tit {
- font-size: 27rpx;
- font-weight: bold;
- letter-spacing: 2rpx;
- margin-top: 19rpx;
- }
- .u-input--border {
- border: none !important;
- background: #F5F5F5 !important;
- }
- .btn {
- width: 90%;
- margin: 0 auto;
- background: #346EF6;
- line-height: 90rpx;
- text-align: center;
- color: white;
- border-radius: 15rpx;
- margin-top: 20rpx;
- font-size: 28rpx;
- }
- </style>
|