特易招,招聘小程序
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.

182 lines
3.2 KiB

8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="在线简历"
  4. leftClick
  5. @leftClick="$utils.navigateBack"/>
  6. <view class="box">
  7. <view class="list">
  8. <view class="item"
  9. v-for="(item, index) in list"
  10. :key="index">
  11. <view class="title">
  12. {{ item.title }}
  13. </view>
  14. <view class="tagList">
  15. <view :class="{act : i == item.index}"
  16. @click="clickTag(item, i)" v-for="(t, i) in item.tag"
  17. :key="t.id">
  18. {{ t.name || t.adress }}
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="form-sheet-cell">
  24. <view class="label">
  25. 您的年龄
  26. </view>
  27. <input placeholder="请输入年龄"
  28. type="number"
  29. v-model="form.age" />
  30. </view>
  31. <view class="form-sheet-cell">
  32. <view class="label">
  33. 您的性别
  34. </view>
  35. <uv-radio-group v-model="form.sex">
  36. <view class="price">
  37. <uv-radio
  38. :customStyle="{margin: '8px'}"
  39. v-for="(item, index) in sexList"
  40. :key="index"
  41. iconSize="30rpx"
  42. size="40rpx"
  43. labelSize="26rpx"
  44. :label="item.name"
  45. :name="item.id">
  46. </uv-radio>
  47. </view>
  48. </uv-radio-group>
  49. </view>
  50. <uv-textarea
  51. v-model="form.content"
  52. count
  53. :maxlength="300"
  54. autoHeight
  55. placeholder="请输入详细介绍"></uv-textarea>
  56. <view class="uni-color-btn">
  57. 发布
  58. </view>
  59. </view>
  60. </view>
  61. </template>
  62. <script>
  63. import { mapState } from 'vuex'
  64. export default {
  65. data() {
  66. return {
  67. list: [
  68. {
  69. title: '您希望从事的工种',
  70. tag: [],
  71. index: 0,
  72. },
  73. {
  74. title: '您希望从事的工作区域',
  75. tag: [],
  76. index: 0,
  77. },
  78. {
  79. title: '您希望从事的工作性质',
  80. tag: [],
  81. index: 0,
  82. },
  83. ],
  84. form : {
  85. sex : '男',
  86. },
  87. sexList : [
  88. {
  89. name : '男',
  90. },
  91. {
  92. name : '女',
  93. },
  94. ],
  95. }
  96. },
  97. computed : {
  98. ...mapState(['natureList', 'jobTypeList', 'addressList']),
  99. },
  100. onLoad() {
  101. this.list[0].tag = this.jobTypeList
  102. this.list[1].tag = this.addressList
  103. this.list[2].tag = this.natureList
  104. },
  105. methods: {
  106. clickTag(item, index){
  107. item.index = index
  108. },
  109. },
  110. }
  111. </script>
  112. <style scoped lang="scss">
  113. .page{
  114. background-color: #fff;
  115. min-height: 100vh;
  116. .box{
  117. padding: 30rpx;
  118. .list {
  119. .item {
  120. margin-top: 20rpx;
  121. .title {
  122. font-weight: 900;
  123. font-size: 30rpx;
  124. }
  125. .tagList {
  126. display: flex;
  127. flex-wrap: wrap;
  128. padding: 10rpx 0;
  129. view {
  130. background: rgba($uni-color, 0.1);
  131. padding: 10rpx 20rpx;
  132. margin: 10rpx;
  133. border-radius: 10rpx;
  134. font-size: 26rpx;
  135. }
  136. .act {
  137. color: #fff;
  138. background: $uni-color;
  139. }
  140. }
  141. }
  142. }
  143. .form-sheet-cell{
  144. display: flex;
  145. background-color: #fff;
  146. padding: 20rpx;
  147. align-items: center;
  148. .label{
  149. width: 160rpx;
  150. }
  151. input{
  152. flex: 1;
  153. background-color: rgba($uni-color, 0.1);
  154. padding: 10rpx 20rpx;
  155. border-radius: 10rpx;
  156. }
  157. .right-icon{
  158. margin-left: auto;
  159. }
  160. }
  161. /deep/ .uv-textarea{
  162. background-color: rgba($uni-color, 0.1) !important;
  163. min-height: 400rpx;
  164. }
  165. }
  166. }
  167. </style>