用工小程序前端代码
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.

399 lines
12 KiB

6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
3 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
3 months ago
6 months ago
3 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
3 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
a. 前端小程序部分: ⅰ. 授权登录成功之后,后面点击头像进行个人资料编辑的时候,原来的历史个人资料需要展示在表单上:头像,昵称,手机号码 (已处理) ⅱ. 个人中心手机号码下方,如果做了企业认证则显示企业公司名称 (已处理 展示认证状态) ⅲ. 对接流水钱包的数据,让数据渲染正确,能正常提交以及审核提现,提现需要增加一个用户真实姓名的字段,提现需要一个到账状态,提现功能区看酒布代码或者是真世界代码,确保功能的完整性 提现新增字段 realName (已处理) ⅳ. 我的服务这些设置的小图标需要换成正常的,如果没画的区阿里巴巴矢量图标库找一个合适的(已处理) ⅴ. 企业入驻:公司地址需要吊起地图,记录经纬度,另外审核通过状态的数据,不能再进行修改 (已处理) longitude:"",latitude:"", ⅵ. 个人入住:审核通过状态的数据,不能再进行修改(已处理) ⅶ. 我的简历:审核通过状态的数据,不能再进行修改(没有status 字段) ⅷ. 发布订单:出行方式字段对接一下select_go字段,结算方式说明前端要跟后台数据说明同步 (已处理)selectGo ⅸ. 分类管理:点击分类管理可以只查询当前一级分类数据,另外名称搜索功能需要增加一下 (已处理) X. 工作详情里面的公司地址要能点击到地图中去,另外右边增加一个拨打电话的按钮 (这个是微信组件 不能添加) Xⅰ. 列表数据处理一下下拉刷新数据,每次数据没有更新,没有下啦刷新处理 (已处理)
3 months ago
6 months ago
4 months ago
6 months ago
4 months ago
3 months ago
6 months ago
3 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
a. 前端小程序部分: ⅰ. 授权登录成功之后,后面点击头像进行个人资料编辑的时候,原来的历史个人资料需要展示在表单上:头像,昵称,手机号码 (已处理) ⅱ. 个人中心手机号码下方,如果做了企业认证则显示企业公司名称 (已处理 展示认证状态) ⅲ. 对接流水钱包的数据,让数据渲染正确,能正常提交以及审核提现,提现需要增加一个用户真实姓名的字段,提现需要一个到账状态,提现功能区看酒布代码或者是真世界代码,确保功能的完整性 提现新增字段 realName (已处理) ⅳ. 我的服务这些设置的小图标需要换成正常的,如果没画的区阿里巴巴矢量图标库找一个合适的(已处理) ⅴ. 企业入驻:公司地址需要吊起地图,记录经纬度,另外审核通过状态的数据,不能再进行修改 (已处理) longitude:"",latitude:"", ⅵ. 个人入住:审核通过状态的数据,不能再进行修改(已处理) ⅶ. 我的简历:审核通过状态的数据,不能再进行修改(没有status 字段) ⅷ. 发布订单:出行方式字段对接一下select_go字段,结算方式说明前端要跟后台数据说明同步 (已处理)selectGo ⅸ. 分类管理:点击分类管理可以只查询当前一级分类数据,另外名称搜索功能需要增加一下 (已处理) X. 工作详情里面的公司地址要能点击到地图中去,另外右边增加一个拨打电话的按钮 (这个是微信组件 不能添加) Xⅰ. 列表数据处理一下下拉刷新数据,每次数据没有更新,没有下啦刷新处理 (已处理)
3 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
4 months ago
3 months ago
6 months ago
3 months ago
6 months ago
3 months ago
3 months ago
a. 前端小程序部分: ⅰ. 授权登录成功之后,后面点击头像进行个人资料编辑的时候,原来的历史个人资料需要展示在表单上:头像,昵称,手机号码 (已处理) ⅱ. 个人中心手机号码下方,如果做了企业认证则显示企业公司名称 (已处理 展示认证状态) ⅲ. 对接流水钱包的数据,让数据渲染正确,能正常提交以及审核提现,提现需要增加一个用户真实姓名的字段,提现需要一个到账状态,提现功能区看酒布代码或者是真世界代码,确保功能的完整性 提现新增字段 realName (已处理) ⅳ. 我的服务这些设置的小图标需要换成正常的,如果没画的区阿里巴巴矢量图标库找一个合适的(已处理) ⅴ. 企业入驻:公司地址需要吊起地图,记录经纬度,另外审核通过状态的数据,不能再进行修改 (已处理) longitude:"",latitude:"", ⅵ. 个人入住:审核通过状态的数据,不能再进行修改(已处理) ⅶ. 我的简历:审核通过状态的数据,不能再进行修改(没有status 字段) ⅷ. 发布订单:出行方式字段对接一下select_go字段,结算方式说明前端要跟后台数据说明同步 (已处理)selectGo ⅸ. 分类管理:点击分类管理可以只查询当前一级分类数据,另外名称搜索功能需要增加一下 (已处理) X. 工作详情里面的公司地址要能点击到地图中去,另外右边增加一个拨打电话的按钮 (这个是微信组件 不能添加) Xⅰ. 列表数据处理一下下拉刷新数据,每次数据没有更新,没有下啦刷新处理 (已处理)
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
6 months ago
  1. <template>
  2. <view>
  3. <u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" labelWidth="80">
  4. <view class="se-p-20">
  5. <view class="se-px-20 se-bgc-white se-br-10 se-fs-20">
  6. <!-- @click="showPicker=true" -->
  7. <u-form-item label="请选择地址" class="se-b-b" prop="area" @click="handleAreaChange()">
  8. <u--input readonly v-model="form.area" placeholder="请选择地址" border="none"></u--input>
  9. <u-icon slot="right" name="arrow-right" ></u-icon>
  10. </u-form-item>
  11. <!-- <u-form-item label="详细地址" prop="address">
  12. <u--textarea v-model="form.address" count placeholder="请输入详细地址"></u--textarea>
  13. </u-form-item> -->
  14. <u-form-item label="所属行业" class="se-b-b" prop="industry" @click="handleindustryChange()">
  15. <u--input @click="handleindustryChange" readonly v-model="form.industry" placeholder="请选择行业" border="none"></u--input>
  16. <u-icon @click="handleindustryChange" slot="right" name="arrow-right"></u-icon>
  17. </u-form-item>
  18. <u-form-item label="所属工种" class="se-b-b" prop="typeName" @click="handleTypeChange">
  19. <u--input @click="handleTypeChange" v-model="form.typeName" readonly placeholder="请选择工种"
  20. border="none"></u--input>
  21. <u-icon @click="handleTypeChange" slot="right" name="arrow-right"></u-icon>
  22. </u-form-item>
  23. <!-- <u-form-item label="预约时间" prop="date" @click="show=true">
  24. <u--input v-model="form.date" readonly placeholder="请选择预约时间"
  25. border="none"></u--input>
  26. <u-icon slot="right" name="arrow-right"></u-icon>
  27. </u-form-item> -->
  28. <u-form-item label="出行方式" labelPosition="top" prop="travel">
  29. <view class="se-flex se-flex-ai-c se-flex-ff-rw se-pt-10">
  30. <view class="se-py-10 se-px-30 se-fs-22 se-br-10 se-mr-15 se-mt-10" :class="item.select ? 'se-bgc-orange se-c-white se-b-orange' : 'se-b se-c-text'" @click="handleIntellect(index)" v-for="(item,index) in travelList" :key="index">
  31. {{item.text}}
  32. </view>
  33. </view>
  34. </u-form-item>
  35. <u-form-item label="结算方式" prop="settlement">
  36. <u-radio-group v-model="form.settlement" placement="row">
  37. <u-radio activeColor="#FF7A31" name="1" label="直接支付日薪"></u-radio>
  38. <u-radio activeColor="#FF7A31" class="se-ml-20" name="2" label="试用以后支付"></u-radio>
  39. </u-radio-group>
  40. </u-form-item>
  41. <u-form-item label="薪资区间" prop="salary">
  42. <view class="se-flex se-flex-h-c">
  43. <u--input v-model="form.salaryMin" type="number" class="se-w-200" placeholder="最小值"></u--input>
  44. <text class="se-mx-10">~</text>
  45. <u--input v-model="form.salaryMax" type="number" class="se-w-200" placeholder="最大值"></u--input>
  46. </view>
  47. </u-form-item>
  48. <u-form-item label="日薪" prop="dayMoney">
  49. <view class="se-flex se-flex-h-c">
  50. <u--input v-model="form.dayMoney" type="number" class="se-w-200" placeholder="固定值"></u--input>
  51. </view>
  52. </u-form-item>
  53. <!-- <u-form-item label="时间" prop="date">
  54. <view class="se-flex se-flex-h-c">
  55. <u--input v-model="form.dateMin" class="se-w-200" placeholder="0:00"></u--input>
  56. <text class="se-mx-10">~</text>
  57. <u--input v-model="form.dateMax" class="se-w-200" placeholder="0:00"></u--input>
  58. </view>
  59. </u-form-item>
  60. <u-form-item label="联系电话" prop="mobile">
  61. <u--input v-model="form.mobile" placeholder="请输入联系方式"></u--input>
  62. </u-form-item> -->
  63. <u-form-item label="工作内容" prop="introduce">
  64. <u--textarea v-model="form.introduce" count
  65. placeholder="请选择工作内容"></u--textarea>
  66. </u-form-item>
  67. </view>
  68. </view>
  69. <view class="se-px-20 se-pt-20">
  70. <view class="se-px-20 se-pb-80 se-fs-20 se-flex">
  71. <view @click="submit"
  72. class="se-mx-10 se-flex-1 se-br-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-28 se-c-white se-bgc-orange">
  73. <text>发布订单</text>
  74. </view>
  75. </view>
  76. </view>
  77. </u--form>
  78. <!-- 行业 -->
  79. <u-action-sheet :show="showIndustry" :actions="industryList" title="请选择行业" @close="showIndustry = false" @select="industrySelect">
  80. </u-action-sheet>
  81. <!-- 种类 -->
  82. <u-action-sheet :show="showType" :actions="typeList" title="请选择种类" @close="showType = false" @select="typeSelect">
  83. </u-action-sheet>
  84. </view>
  85. </template>
  86. <script>
  87. import QQMapWX from "@/util/qqmap-wx-jssdk.min.js"
  88. import { industryById,industryList,addTask2,addSeek } from "@/common/api.js"
  89. export default {
  90. components:{
  91. },
  92. data() {
  93. return {
  94. show:false,
  95. showPicker: false,
  96. showIndustry: false,
  97. industryList: [],
  98. showType: false,
  99. typeList: [],
  100. travelList:[
  101. {
  102. text:"出租车",
  103. value:"all",
  104. select:true
  105. },
  106. {
  107. text:"网约车",
  108. value:"all",
  109. select:false
  110. },
  111. {
  112. text:"公交/地铁",
  113. value:"all",
  114. select:false
  115. },
  116. {
  117. text:"无",
  118. value:"all",
  119. select:false
  120. }
  121. ],
  122. dates:[
  123. ['2024','2025','2026','2027','2028'],
  124. ['01','02','03','04','05','06','07','08','09','10','11','12'],
  125. ['01','02','03','04','05','06','07','08','09','10','11','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'],
  126. ],
  127. form: {
  128. title:"",
  129. area:'',
  130. selectGo:"出租车",
  131. address:'',
  132. industryId:"",
  133. industry:"",
  134. settlement:1,
  135. date:"",
  136. dateMin:"",
  137. dateMax:"",
  138. mobile: '',
  139. typeId:"",
  140. typeName: '',
  141. salary:'',
  142. salaryMin: '',
  143. salaryMax: '',
  144. dayMoney:'',
  145. introduce: '',
  146. longitude:'',
  147. latitude:''
  148. },
  149. rules: {
  150. title:[
  151. {
  152. type: 'string',
  153. required: true,
  154. message: '请在此输入标题',
  155. trigger: ['blur', 'change']
  156. }
  157. ],
  158. area:[
  159. {
  160. type: 'string',
  161. required: true,
  162. message: '请选择地址',
  163. trigger: ['blur', 'change']
  164. }
  165. ],
  166. address:[
  167. {
  168. type: 'string',
  169. required: true,
  170. message: '请填写详细地址',
  171. trigger: ['blur', 'change']
  172. }
  173. ],
  174. industry:[
  175. {
  176. type: 'string',
  177. required: true,
  178. message: '请选择行业',
  179. trigger: ['blur', 'change']
  180. }
  181. ],
  182. settlement:[
  183. {
  184. type: 'string',
  185. required: true,
  186. message: '请选择结算方式',
  187. trigger: ['blur', 'change']
  188. }
  189. ],
  190. mobile: [
  191. {
  192. required: true,
  193. message: '请输入手机号',
  194. trigger: ['change','blur'],
  195. },
  196. {
  197. validator: (rule, value, callback) => {
  198. return uni.$u.test.mobile(value);
  199. },
  200. message: '手机号码不正确',
  201. trigger: ['change','blur'],
  202. },
  203. ],
  204. date: [{
  205. type: 'string',
  206. max: 1,
  207. required: true,
  208. message: '请填写时间',
  209. trigger: ['blur', 'change']
  210. }],
  211. salary: [{
  212. type: 'string',
  213. required: true,
  214. message: '请输入试用日薪',
  215. trigger: ['blur', 'change']
  216. }],
  217. introduce: [{
  218. type: 'string',
  219. required: true,
  220. message: '请输入工作内容',
  221. trigger: ['blur', 'change']
  222. }],
  223. },
  224. }
  225. },
  226. watch: {
  227. 'form.salaryMin': {
  228. handler(newVal, oldVal) {
  229. if (!uni.$u.test.isEmpty(newVal) && !uni.$u.test.isEmpty(this.form.salaryMax)) {
  230. this.form.salary = '有'
  231. } else {
  232. this.form.salary = ''
  233. }
  234. },
  235. immediate: true
  236. },
  237. 'form.salaryMax': {
  238. handler(newVal, oldVal) {
  239. if (!uni.$u.test.isEmpty(newVal) && !uni.$u.test.isEmpty(this.form.salaryMin)) {
  240. this.form.salary = '有'
  241. } else {
  242. this.form.salary = ''
  243. }
  244. },
  245. immediate: true
  246. },
  247. 'form.dateMin': {
  248. handler(newVal, oldVal) {
  249. if (!uni.$u.test.isEmpty(newVal) && !uni.$u.test.isEmpty(this.form.dateMax)) {
  250. this.form.date = '有'
  251. } else {
  252. this.form.date = ''
  253. }
  254. },
  255. immediate: true
  256. },
  257. 'form.dateMax': {
  258. handler(newVal, oldVal) {
  259. if (!uni.$u.test.isEmpty(newVal) && !uni.$u.test.isEmpty(this.form.dateMin)) {
  260. this.form.date = '有'
  261. } else {
  262. this.form.date = ''
  263. }
  264. },
  265. immediate: true
  266. },
  267. },
  268. mounted() {
  269. industryList({}).then(response=>{
  270. this.industryList = response.result
  271. }).catch(error=>{
  272. })
  273. },
  274. methods: {
  275. dateConfirm(event){
  276. this.form.date = event.value[0]+"-"+event.value[1]+"-"+event.value[2]
  277. console.info(event.value)
  278. this.show = false
  279. },
  280. handleIntellect(index){
  281. this.travelList.forEach((items)=>{
  282. items.select=false
  283. })
  284. this.travelList[index].select = !this.travelList[index].select
  285. this.form.selectGo = this.travelList[index].text
  286. },
  287. handleAreaChange(){
  288. const that = this;
  289. wx.chooseLocation({
  290. // type: 'wgs84',
  291. success: function (res) {
  292. const qqmapsdk = new QQMapWX({
  293. key: 'TT7BZ-Z3LW4-KOAUB-KWHOA-SBJJ6-Y5B6R' // 必填
  294. });
  295. uni.showLoading({
  296. title:"获取中...."
  297. })
  298. qqmapsdk.reverseGeocoder({
  299. location: {
  300. latitude: res.latitude,
  301. longitude: res.longitude
  302. },
  303. success: function(response) {
  304. console.log('逆地理编码结果:', response);
  305. uni.hideLoading()
  306. that.form.longitude = response.result.location.lng
  307. that.form.latitude = response.result.location.lat
  308. that.form.area = response.result.address
  309. },
  310. fail: function(error) {
  311. uni.hideLoading()
  312. console.error('逆地理编码失败:', error);
  313. }
  314. });
  315. }
  316. })
  317. },
  318. handleindustryChange() {
  319. this.showIndustry = true
  320. },
  321. industrySelect(e) {
  322. console.info(e)
  323. this.form.industryId = e.id
  324. this.form.industry = e.name
  325. this.form.typeId = ""
  326. this.form.type = ""
  327. industryById({pid:e.id}).then(response=>{
  328. this.typeList=response.result
  329. }).catch(error=>{
  330. })
  331. this.$refs.uForm.validateField('industry')
  332. },
  333. handleTypeChange() {
  334. this.showType = true
  335. },
  336. typeSelect(e) {
  337. this.form.typeId = e.id
  338. this.form.typeName = e.name
  339. this.$refs.uForm.validateField('type')
  340. },
  341. submit() {
  342. let that = this
  343. that.$refs.uForm.validate().then(res => {
  344. that.onAddTask()
  345. }).catch(errors => {
  346. // uni.$u.toast('校验失败')
  347. })
  348. },
  349. onAddTask(){
  350. let that = this
  351. let params ={
  352. "phone": that.form.mobile,//招聘方联系方式
  353. "dayMoney": that.form.dayMoney,//期望日薪
  354. "selectGo": that.form.selectGo,//出行方式
  355. // "endTime": that.form.dateMax,
  356. "categoryOne": that.form.industryId,
  357. "categoryTwo": that.form.typeId,
  358. "latitude": that.form.latitude,
  359. "longitude": that.form.longitude,
  360. "salaryMax": that.form.salaryMax,//期望薪资最大值
  361. "salaryMin": that.form.salaryMin,//期望薪资最小值
  362. "payType": that.form.settlement,//结算方式 0提前支付 1 试用后支付
  363. // "startTime": that.form.dateMin,
  364. // "title": that.form.title,//工作标题
  365. "address": that.form.area,//工作地址
  366. "workDetail": that.form.introduce,
  367. // "workPic": that.form.fileList.map(item => item.url).join(','),//照片
  368. }
  369. // let p={"bossPhone":"13189698115","dayMoney":"500","endTime":"2016-01-01 00:00:00","industryId":"1865299999310622721","industryName":"木工","latitude":28.23529,"longitude":112.93134,"moneymax":"15000","moneymin":"12000","payType":"1","startTime":"2015-01-01 00:00:00","title":"木工师傅","workAddress":"湖南省长沙市岳麓区金星北路一段517号","workDetail":"阿萨法大多数发斯蒂芬撒旦法撒旦法阿斯蒂芬撒旦法撒旦法撒旦法三大法师打","workPic":"https://tennis-oss.xzaiyp.top/2025-02-19/341d669a-ef66-4abb-8b98-ac71c08814c9.jpg"}
  370. addSeek(params).then(response=>{
  371. // console.info("response",response)
  372. uni.$u.toast("提交成功!")
  373. setTimeout(()=>{
  374. uni.navigateBack({
  375. delta:1
  376. })
  377. },1500)
  378. }).catch(error=>{
  379. })
  380. },
  381. },
  382. onReady() {
  383. this.$refs.uForm.setRules(this.rules)
  384. },
  385. }
  386. </script>
  387. <style>
  388. </style>