editcomplete.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <view class="content">
  3. <view class="zdyNav">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="nav">
  6. <view @click="back"><image src="../../../static/img/baiheiback.png" mode="" class="baiheiback" @click="back"></image></view>
  7. <view >修改完成</view>
  8. <view style="width:70px;"></view>
  9. </view>
  10. </view>
  11. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  12. <view style="height: 44px;"></view>
  13. <view class="top">
  14. <view class="toptop">
  15. <image src="../../../static/img/icon_select_per@2x.png" mode="" class="toptopIMg"></image>
  16. <view class="topTitle">修改完成</view>
  17. </view>
  18. <view class="topCont">
  19. <view class="topContBtn" @click="goHome">回到首页</view>
  20. <view class="topContBtn" @click="godetail">查看详情</view>
  21. </view>
  22. </view>
  23. <view class="competeCont">
  24. <view class="competeContTitle">对运营经理的服务评价</view>
  25. <view class="xxBox">
  26. <uni-rate :max="5" v-model="xx" @change="onXXChange"/>
  27. </view>
  28. <view>
  29. <textarea placeholder-style="color:#CCCCCC" placeholder="请填写十字以上的评价内容~" v-model="userEvaContent" class="textareaCont"/>
  30. </view>
  31. <view class="submitBox">
  32. <view class="submit" @click="submit">提交</view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. sheetID:'',
  42. userEvaContent:'',
  43. userEvaStar:0,
  44. xx:0,
  45. iStatusBarHeight:'',
  46. }
  47. },
  48. onLoad(opt) {
  49. this.sheetID=opt.sheetID
  50. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  51. },
  52. onShow() {
  53. },
  54. methods: {
  55. back(){
  56. uni.navigateBack({
  57. delta:1
  58. })
  59. },
  60. godetail(){
  61. uni.navigateTo({
  62. url:'../../reportManage/reportDetail?id='+this.sheetID
  63. })
  64. },
  65. goHome(){
  66. uni.navigateTo({
  67. url:'index'
  68. })
  69. },
  70. onXXChange(e){
  71. console.log(e)
  72. this.userEvaStar=e.value
  73. },
  74. submit(){
  75. if(this.userEvaStar <= 4){
  76. if(this.userEvaContent.length <= 10){
  77. uni.showToast({
  78. title: '请填写十字以上的评价内容',
  79. icon:'none',
  80. duration: 2000,
  81. })
  82. return false;
  83. }
  84. }
  85. uni.showLoading({ });
  86. this.$http('accompany/SuperCheckSheet/userEva', {
  87. sheetID:this.sheetID,
  88. userEvaStar:this.userEvaStar,
  89. userEvaContent:this.userEvaContent
  90. }, 'POST').then(res => {
  91. //this.submitSuperCheckSheet()
  92. uni.showToast({
  93. title: '提交成功',
  94. icon:'none',
  95. duration: 2000,
  96. });
  97. uni.navigateTo({
  98. url:'index'
  99. })
  100. })
  101. }
  102. }
  103. }
  104. </script>
  105. <style scoped>
  106. .content {
  107. background: #F4F5F7;
  108. min-height: 100vh;
  109. }
  110. /* #ifdef H5 */
  111. .content {
  112. background: #F4F5F7;
  113. }
  114. /* #endif */
  115. .status_bar{
  116. background: #FFFFFF;
  117. }
  118. .nav{
  119. width: 100vw;
  120. height: 44px;
  121. background: #FFFFFF;
  122. display: flex;
  123. justify-content: space-between;
  124. font-size: 34rpx;
  125. line-height: 44px;
  126. }
  127. .baiheiback{
  128. width: 70px;
  129. height: 44px;
  130. }
  131. .zdyNav{
  132. position: fixed;
  133. left: 0;
  134. top: 0;
  135. background: #FFFFFF;
  136. z-index: 11;
  137. }
  138. .top{
  139. background: #FFFFFF;
  140. }
  141. .toptop{
  142. display: flex;
  143. justify-content: center;
  144. padding-top: 20rpx;
  145. }
  146. .toptopIMg{
  147. width: 44rpx;height: 44rpx;
  148. }
  149. .topTitle{
  150. font-size: 36rpx;
  151. padding-left: 10rpx;
  152. color: #3C3C3C;
  153. }
  154. .topCont{
  155. display: flex;
  156. justify-content: space-around;
  157. padding: 40rpx;
  158. }
  159. .topContBtn{
  160. width: 150rpx;
  161. height: 56rpx;
  162. border-radius: 34rpx;
  163. border: 2rpx solid #DDDDDD;
  164. line-height: 56rpx;
  165. text-align: center;
  166. font-size: 28rpx;
  167. color: #3C3C3C;
  168. }
  169. .competeCont{
  170. margin-top: 20rpx;
  171. background: #FFFFFF;
  172. padding: 40rpx 24rpx;
  173. }
  174. .competeContTitle{
  175. font-size: 30rpx;
  176. color: #3C3C3C;
  177. text-align: center;
  178. }
  179. .textareaCont{
  180. width: 662rpx;
  181. height: 200rpx;
  182. background: #F4F5F7;
  183. border-radius: 10rpx;
  184. padding: 20rpx;
  185. margin-top: 20rpx;
  186. font-size: 28rpx;
  187. }
  188. .submit{
  189. width: 420rpx;
  190. height: 74rpx;
  191. background: #FF4F00;
  192. border-radius: 50rpx;
  193. line-height: 74rpx;
  194. text-align: center;
  195. font-size: 30rpx;
  196. color: #FFFFFF;
  197. }
  198. .submitBox{
  199. display: flex;
  200. justify-content: center;
  201. padding-top: 40rpx;
  202. }
  203. .xxBox{
  204. display: flex;
  205. justify-content: center;
  206. padding-top: 20rpx;
  207. padding-bottom: 20rpx;
  208. }
  209. </style>