混凝土运输管理微信小程序、替班
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.

176 lines
5.3 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 class="re-card-show" @click="clickSwitch">我要推荐司机</view>
  8. </view>
  9. <view class="re-card-context">
  10. 感谢您为我们推荐老板请您填写下述问题以便我们对您推荐的老板有一个整体的了解
  11. </view>
  12. </view>
  13. <view class="re-card-p32">
  14. <view class="re-from-line">
  15. <view class="re-from-label">您推荐的老板姓名</view>
  16. <view class="b-relative">
  17. <input v-model="form.name" maxlength="8" class="re-from-input" placeholder="请填写真实姓名" />
  18. <image class="re-from-icon" src="/static/icons/icon01.png"></image>
  19. </view>
  20. </view>
  21. <view class="re-from-line">
  22. <view class="re-from-label">您推荐的老板手机号码</view>
  23. <view class="b-relative">
  24. <input v-model="form.mobile" type="number" maxlength="11" class="re-from-input" placeholder="请填写TA的常用联系方式" />
  25. <image class="re-from-icon" src="/static/icons/icon02.png"></image>
  26. </view>
  27. </view>
  28. <view class="h44"></view>
  29. <view class="re-from-line">
  30. <view class="re-from-label">您推荐的老板是否恶意拖欠工资</view>
  31. <view class="b-relative">
  32. <radio-group @change="changeType1">
  33. <radio class="re-radio re-width2" value="1" :checked="+form.type1===1"></radio>
  34. <radio class="re-radio re-width2" value="2" :checked="+form.type1===2"></radio>
  35. </radio-group>
  36. </view>
  37. </view>
  38. <view class="re-from-line">
  39. <view class="re-from-label">您推荐的老板是否随意苛扣工资</view>
  40. <view class="b-relative">
  41. <radio-group @change="changeType2">
  42. <radio class="re-radio re-width2" value="1" :checked="+form.type2===1"></radio>
  43. <radio class="re-radio re-width2" value="2" :checked="+form.type2===2"></radio>
  44. </radio-group>
  45. </view>
  46. </view>
  47. <view class="re-from-line">
  48. <view class="re-from-label">您推荐的老板人品如何</view>
  49. <view class="b-relative">
  50. <radio-group @change="changeType3">
  51. <radio class="re-radio re-width3" style="margin-left:-28rpx" value="1" :checked="+form.type3===1"></radio>
  52. <radio class="re-radio re-width3" style="margin-left:-28rpx" value="2" :checked="+form.type3===2"></radio>
  53. <radio class="re-radio re-width3" style="margin-left:-28rpx" value="3" :checked="+form.type3===3"></radio>
  54. </radio-group>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="re-card-p32">
  59. <view class="re-from-label">您可以在这里进行补充说明选填</view>
  60. <textarea v-model="form.remark" class="re-card-textarea inpit" placeholder="请在此处留言或者备注其他特殊情况。">
  61. </textarea>
  62. </view>
  63. <view class="re-card-p32">
  64. <view class="re-from-label">信息手机说明</view>
  65. <view class="re-card-context">
  66. 感谢您为我们的平台推荐用户无论其是否成为我们平台用户我们都将 <span>保证您上传的信息安全</span>当然您也可以通过线下与其取得联系邀请TA在小程序完成注册
  67. </view>
  68. </view>
  69. <view class="re-end-pand">
  70. <button @click="submit">提交审核</button>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. export default {
  77. data() {
  78. return {
  79. show: false,
  80. form: {
  81. type: "2",
  82. name: "",
  83. mobile:"",
  84. type1: "",
  85. type2: "",
  86. type3: "",
  87. type4: "",
  88. type5: "",
  89. remark:""
  90. }
  91. }
  92. },
  93. onLoad() {
  94. },
  95. methods: {
  96. clickSwitch(){
  97. uni.navigateTo({ url: `/pages/user/driver`})
  98. },
  99. changeType1(event){
  100. this.form.type1 = event.detail.value
  101. },
  102. changeType2(event){
  103. this.form.type2 = event.detail.value
  104. },
  105. changeType3(event){
  106. this.form.type3 = event.detail.value
  107. },
  108. changeType4(event){
  109. this.form.type4 = event.detail.value
  110. },
  111. changeType5(event){
  112. this.form.type5 = event.detail.value
  113. },
  114. submit(){
  115. if(!this.form.name){
  116. uni.showToast({ icon: "none", title: "请填写您推荐的老板的姓名" })
  117. return
  118. }
  119. if(!this.form.mobile){
  120. uni.showToast({ icon: "none", title: "请填写您推荐的老板常用联系手机" })
  121. return
  122. }
  123. if(!this.form.type1 || !this.form.type2 || !this.form.type3 ){
  124. uni.showToast({ icon: "none", title: "请勾选问题答案" })
  125. return
  126. }
  127. this.doSubmit()
  128. },
  129. doSubmit(){
  130. uni.showLoading({})
  131. this.form.id = this.$utils.generateUUID()
  132. this.form.status = 0
  133. this.form.area = uni.getStorageSync("area")
  134. this.$httpPost("/api/sells/push", this.form, (res) => {
  135. console.log('[/sells/push]', res);
  136. if(res.data || res.data == 1){
  137. uni.hideLoading({})
  138. uni.showToast({ icon: "none", title: "提交成功" })
  139. setTimeout(()=>{
  140. uni.navigateBack({ delta: -1 })
  141. }, 1500)
  142. }
  143. })
  144. }
  145. }
  146. }
  147. </script>
  148. <style>
  149. page {
  150. background-color: #F5F5F5;
  151. }
  152. /deep/ uni-radio .uni-radio-input{
  153. background-color: #F40000 !important;
  154. border-color: #F40000 !important;
  155. }
  156. /deep/ uni-radio .uni-radio-input:empty{
  157. background-color: #ffffff !important;
  158. border-color: #888888 !important;
  159. }
  160. </style>