混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
6.4 KiB

1 week ago
  1. <template>
  2. <view class="content">
  3. <view class="mt20">
  4. <view class="re-card-p32">
  5. <view class="flex-sb">
  6. <view class="re-from-label">推荐司机</view>
  7. </view>
  8. <view class="re-card-context">
  9. 感谢您为我们推荐司机请您填写下述问题以便我们对您推荐的司机有一个整体的了解
  10. </view>
  11. </view>
  12. <view class="re-card-p32">
  13. <view class="re-from-line">
  14. <view class="re-from-label">您推荐的司机姓名</view>
  15. <view class="b-relative">
  16. <input v-model="form.name" maxlength="8" class="re-from-input" placeholder="请填写真实姓名" />
  17. <image class="re-from-icon" src="/static/icons/icon01.png"></image>
  18. </view>
  19. </view>
  20. <view class="re-from-line">
  21. <view class="re-from-label">司机的手机号码</view>
  22. <view class="b-relative">
  23. <input v-model="form.mobile" type="number" maxlength="11" class="re-from-input" placeholder="请填写TA的常用联系方式" />
  24. <image class="re-from-icon" src="/static/icons/icon02.png"></image>
  25. </view>
  26. </view>
  27. <view class="h44"></view>
  28. <view class="re-from-line">
  29. <view class="re-from-label">您推荐司机责任心强</view>
  30. <view class="b-relative">
  31. <radio-group @change="changeType1">
  32. <radio class="re-radio re-width2" value="1" :checked="+form.type1===1"></radio>
  33. <radio class="re-radio re-width2" value="2" :checked="+form.type1===2"></radio>
  34. </radio-group>
  35. </view>
  36. </view>
  37. <view class="re-from-line">
  38. <view class="re-from-label">您推荐司机操作经验时长</view>
  39. <view class="b-relative">
  40. <radio-group @change="changeType2">
  41. <radio class="re-radio re-width2" value="1" :checked="+form.type2===1">五年以上</radio>
  42. <radio class="re-radio re-width2" value="2" :checked="+form.type2===2">五年以下</radio>
  43. </radio-group>
  44. </view>
  45. </view>
  46. <view class="re-from-line">
  47. <view class="re-from-label">您推荐司机普通话表达能力</view>
  48. <view class="b-relative">
  49. <radio-group @change="changeType3">
  50. <radio class="re-radio re-width2" value="1" :checked="+form.type3===1"></radio>
  51. <radio class="re-radio re-width2" value="2" :checked="+form.type3===2"></radio>
  52. </radio-group>
  53. </view>
  54. </view>
  55. <view class="re-from-line">
  56. <view class="re-from-label">您推荐司机是否出现过重大安全事故</view>
  57. <view class="b-relative">
  58. <radio-group @change="changeType4">
  59. <radio class="re-radio re-width2" value="1" :checked="+form.type4===1"></radio>
  60. <radio class="re-radio re-width2" value="2" :checked="+form.type4===2">没有</radio>
  61. </radio-group>
  62. </view>
  63. </view>
  64. <view class="re-from-line">
  65. <view class="re-from-label">您推荐司机是否身心健康</view>
  66. <view class="b-relative">
  67. <radio-group @change="changeType5">
  68. <radio class="re-radio re-width2" value="1" :checked="+form.type5===1"></radio>
  69. <radio class="re-radio re-width2" value="2" :checked="+form.type5===2">没有</radio>
  70. </radio-group>
  71. </view>
  72. </view>
  73. <view class="re-from-line">
  74. <view class="re-from-label">您推荐司机是否劳务碰瓷</view>
  75. <view class="b-relative">
  76. <radio-group @change="changeType6">
  77. <radio class="re-radio re-width2" value="1" :checked="+form.type6===1"></radio>
  78. <radio class="re-radio re-width2" value="2" :checked="+form.type6===2">没有</radio>
  79. </radio-group>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="re-card-p32">
  84. <view class="re-from-label">您可以在这里进行补充说明选填</view>
  85. <textarea v-model="form.remark" class="re-card-textarea inpit" placeholder="请在此处留言或者备注其他特殊情况。">
  86. </textarea>
  87. </view>
  88. <view class="re-card-p32">
  89. <view class="re-from-label">信息手机说明</view>
  90. <view class="re-card-context">
  91. 感谢您为我们的平台推荐用户无论其是否成为我们平台用户我们都将 <span>保证您上传的信息安全</span>当然您也可以通过线下与其取得联系邀请TA在小程序完成注册
  92. </view>
  93. </view>
  94. <view class="re-end-pand">
  95. <button @click="submit">提交审核</button>
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. export default {
  102. data() {
  103. return {
  104. show: false,
  105. form: {
  106. type: "3",
  107. name: "",
  108. mobile:"",
  109. type1: "",
  110. type2: "",
  111. type3: "",
  112. type4: "",
  113. type5: "",
  114. type6: "",
  115. remark:""
  116. }
  117. }
  118. },
  119. onLoad() {
  120. },
  121. methods: {
  122. clickSwitch(){
  123. uni.navigateTo({ url: `/pages/user/enter`})
  124. },
  125. changeType1(event){
  126. this.form.type1 = event.detail.value
  127. },
  128. changeType2(event){
  129. this.form.type2 = event.detail.value
  130. },
  131. changeType3(event){
  132. this.form.type3 = event.detail.value
  133. },
  134. changeType4(event){
  135. this.form.type4 = event.detail.value
  136. },
  137. changeType5(event){
  138. this.form.type5 = event.detail.value
  139. },
  140. changeType6(event){
  141. this.form.type6 = event.detail.value
  142. },
  143. submit(){
  144. if(!this.form.name){
  145. uni.showToast({ icon: "none", title: "请填写您推荐的司机姓名" })
  146. return
  147. }
  148. if(!this.form.mobile){
  149. uni.showToast({ icon: "none", title: "请填写您推荐的司机常用联系手机" })
  150. return
  151. }
  152. if(!this.form.type1 || !this.form.type2 || !this.form.type3
  153. || !this.form.type4 || !this.form.type5 || !this.form.type6){
  154. uni.showToast({ icon: "none", title: "请勾选问题答案" })
  155. return
  156. }
  157. this.doSubmit()
  158. },
  159. doSubmit(){
  160. uni.showLoading({})
  161. this.form.id = this.$utils.generateUUID()
  162. this.form.status = 0
  163. this.form.area = uni.getStorageSync("area")
  164. this.$httpPost("/api/sells/push", this.form, (res) => {
  165. console.log('[/sells/push]', res);
  166. if(res.data || res.data == 1){
  167. uni.hideLoading({})
  168. uni.showToast({ icon: "none", title: "数据已提交" })
  169. setTimeout(()=>{
  170. uni.navigateBack({ delta: -1 })
  171. }, 1500)
  172. }
  173. })
  174. }
  175. }
  176. }
  177. </script>
  178. <style>
  179. page {
  180. background-color: #F5F5F5;
  181. }
  182. /deep/ uni-radio .uni-radio-input{
  183. background-color: #F40000 !important;
  184. border-color: #F40000 !important;
  185. }
  186. /deep/ uni-radio .uni-radio-input:empty{
  187. background-color: #ffffff !important;
  188. border-color: #888888 !important;
  189. }
  190. </style>