|
@@ -1,30 +1,33 @@
|
|
|
<template>
|
|
|
- <view class="wrap">
|
|
|
- <view class="content">
|
|
|
- <view class="row row-bottom">
|
|
|
- <view class="left">姓名</view>
|
|
|
- <input v-model="personInfo.name" class="right-bottom" placeholder="请输入姓名"></input>
|
|
|
- </view>
|
|
|
- <view class="row row-bottom">
|
|
|
- <view class="left">电话</view>
|
|
|
- <input class="right-bottom" v-model="personInfo.mobilePhone" placeholder="请输入电话"></input>
|
|
|
- </view>
|
|
|
- <view class="row no-boder">
|
|
|
- <view class="left">留言</view>
|
|
|
- </view>
|
|
|
- <view class="row no-boder">
|
|
|
- <u-input v-model="personInfo.message" :type="type" :border="border" :height="height"
|
|
|
- :auto-height="autoHeight" />
|
|
|
- </view>
|
|
|
- <view class="bottom">
|
|
|
- <u-button type="primary" class="submit" hover-class="none" @click="submit">提交</u-button>
|
|
|
+ <view>
|
|
|
+ <view class="wrap">
|
|
|
+ <view class="content">
|
|
|
+ <view class="row row-bottom">
|
|
|
+ <view class="left">姓名</view>
|
|
|
+ <input v-model="personInfo.name" class="right-bottom" placeholder="请输入姓名"></input>
|
|
|
+ </view>
|
|
|
+ <view class="row row-bottom">
|
|
|
+ <view class="left">电话</view>
|
|
|
+ <input class="right-bottom" v-model="personInfo.mobilePhone" placeholder="请输入电话"></input>
|
|
|
+ </view>
|
|
|
+ <view class="row no-boder">
|
|
|
+ <view class="left">留言</view>
|
|
|
+ </view>
|
|
|
+ <view style='position:relative;' class="row no-boder">
|
|
|
+ <u-input class='textarea' v-model="personInfo.message" :type="type" :border="border" :height="height"
|
|
|
+ :auto-height="autoHeight" />
|
|
|
+ <view style='position:absolute;right:10px;bottom:20px;color:#AFB3BF;'>{{personInfo.message.length}}/150个字</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
- <u-toast ref="uToast" />
|
|
|
- <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
|
|
|
- :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='登录提示'
|
|
|
- showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
|
|
|
+ <view class="bottom">
|
|
|
+ <u-button type="primary" class="submit" hover-class="none" @click="submit">提交</u-button>
|
|
|
+ </view>
|
|
|
+ <u-toast ref="uToast" />
|
|
|
</view>
|
|
|
+
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
@@ -37,7 +40,6 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
isShowAlert: false,
|
|
|
content: '当前登入信息验证失败,是否重新登录?',
|
|
|
personInfo: {
|
|
@@ -140,7 +142,6 @@
|
|
|
})
|
|
|
}
|
|
|
this.$api.doRequest('post', '/openServiceInfo/api/addInfo', this.personInfo).then(res => {
|
|
|
-
|
|
|
if (res.data.code == 200) {
|
|
|
this.$refs.uToast.show({
|
|
|
title: '提交成功,客服人员会及时与您取得联系。!',
|
|
@@ -171,24 +172,26 @@
|
|
|
border-radius: 20rpx;
|
|
|
background: white;
|
|
|
padding: 20rpx;
|
|
|
-
|
|
|
+
|
|
|
.row {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- border-bottom: 1px solid #EEEEEE;
|
|
|
+ width:100%;
|
|
|
padding: 21rpx 0;
|
|
|
-
|
|
|
- .right,
|
|
|
+
|
|
|
input {
|
|
|
+ background:#F9F9FA;
|
|
|
font-size: 28rpx;
|
|
|
color: #333333;
|
|
|
+ border:1px solid #EEEEEE;
|
|
|
+ width:100%;
|
|
|
+ padding:21px;
|
|
|
+ border-radius:3px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.row-bottom {
|
|
|
.right-bottom {
|
|
|
- width: 300rpx;
|
|
|
- text-align: right;
|
|
|
+ width: 100%;
|
|
|
+ margin-top:10px;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -198,8 +201,13 @@
|
|
|
}
|
|
|
|
|
|
.submit {
|
|
|
- margin-top: 200rpx;
|
|
|
+ margin:20px;
|
|
|
+ margin-top: 160rpx;
|
|
|
background: #22C572;
|
|
|
- border-radius: 10rpx;
|
|
|
+ border-radius: 60rpx;
|
|
|
+ }
|
|
|
+ .textarea{
|
|
|
+ background:#F9F9FA;
|
|
|
+ border:1px solid #EEEEEE;
|
|
|
}
|
|
|
</style>
|