issue.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <template>
  2. <view>
  3. <u-navbar back-text="发布" back-icon-size="0" :customBack="customBack" back-icon-color="#ffffff" :background="{backgroundColor: '#2795FD',}"
  4. :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <view class="main">
  6. <view class="title">
  7. 选择您要发布的信息
  8. </view>
  9. <view class="headline">
  10. 您好,欢迎来到荆开零工驿站
  11. </view>
  12. <view class="card" @click="toMyJobInformation">
  13. <view class="icon">
  14. <img src="@/assets/img/issue1@1x.png" alt="">
  15. </view>
  16. <view class="card-title">
  17. <view class="title1">
  18. 求职信息
  19. </view>
  20. <view class="title2">
  21. 坐等好工作来找你
  22. </view>
  23. </view>
  24. <view class="right">
  25. <u-icon name="arrow-right" color="#D6D6D6"></u-icon>
  26. </view>
  27. </view>
  28. <view class="card" @click="toLaborManagement">
  29. <view class="icon">
  30. <img src="@/assets/img/issue2@1x.png" alt="">
  31. </view>
  32. <view class="card-title">
  33. <view class="title1">
  34. 招工信息
  35. </view>
  36. <view class="title2">
  37. 精准满足用工需求
  38. </view>
  39. </view>
  40. <view class="right">
  41. <u-icon name="arrow-right" color="#D6D6D6"></u-icon>
  42. </view>
  43. </view>
  44. <view class="card" @click="toPostMessage">
  45. <view class="icon">
  46. <img src="@/assets/img/issue3@1x.png" alt="">
  47. </view>
  48. <view class="card-title">
  49. <view class="title1">
  50. 共享用工
  51. </view>
  52. <view class="title2">
  53. 发布共享公共信息
  54. </view>
  55. </view>
  56. <view class="right">
  57. <u-icon name="arrow-right" color="#D6D6D6"></u-icon>
  58. </view>
  59. </view>
  60. </view>
  61. <tabbar :current="2"></tabbar>
  62. </view>
  63. </template>
  64. <script>
  65. import * as API from '@/apis/pagejs/tab.js'
  66. import tabbar from "@/components/Tabbar.vue"
  67. export default {
  68. components: {
  69. tabbar
  70. },
  71. data() {
  72. return {
  73. }
  74. },
  75. methods: {
  76. customBack(){
  77. },
  78. ck1(){
  79. var user = this.carhelp.getPersonInfo();
  80. if (!user) {
  81. uni.showModal({
  82. title: '提示',
  83. content: '当前操作需要登录',
  84. confirmText: "前往登录",
  85. showCancel: true,
  86. success: function(res) {
  87. if (res.confirm) {
  88. uni.navigateTo({
  89. url: '/pages/tab/mine/mine'
  90. })
  91. } else if (res.cancel) {
  92. console.log('用户点击取消');
  93. }
  94. }
  95. });
  96. return false
  97. }
  98. return true
  99. },
  100. ck2(){
  101. var user = this.carhelp.getPersonInfo();
  102. if (user.status != 1) {
  103. uni.showModal({
  104. title: '提示',
  105. content: '当前操作需要实名认证',
  106. confirmText: "实名认证",
  107. showCancel: true,
  108. success: function(res) {
  109. if (res.confirm) {
  110. uni.navigateTo({
  111. url: '/pages/packages/mine/otherServices/authentication'
  112. })
  113. } else if (res.cancel) {
  114. console.log('用户点击取消');
  115. }
  116. }
  117. });
  118. return false
  119. }
  120. return true
  121. },
  122. ck3(){
  123. var enterpriseInfo=this.carhelp.getPersonInfoPlus().enterpriseInfo;
  124. if (!enterpriseInfo||enterpriseInfo.status!=1) {
  125. uni.showModal({
  126. title: '提示',
  127. content: '当前操作需要进行企业认证',
  128. confirmText:"企业认证",
  129. showCancel: true,
  130. success: function(res) {
  131. if (res.confirm) {
  132. uni.navigateTo({
  133. url:'/pages/packages/mine/otherServices/authentication'
  134. })
  135. } else if (res.cancel) {
  136. console.log('用户点击取消');
  137. }
  138. }
  139. });
  140. return false
  141. }
  142. return true
  143. },
  144. toMyJobInformation() {
  145. if(this.ck1()&&this.ck2()){
  146. }else{
  147. return
  148. }
  149. uni.navigateTo({
  150. url: '/pages/packages/mine/myJobInformation/myJobInformation'
  151. })
  152. },
  153. toLaborManagement() {
  154. if(this.ck1()&&this.ck3()){
  155. }else{
  156. return
  157. }
  158. uni.navigateTo({
  159. url: '/pages/packages/mine/employmentService/laborManagement/postMessage'
  160. })
  161. },
  162. toPostMessage() {
  163. if(this.ck1()&&this.ck3()){
  164. }else{
  165. return
  166. }
  167. uni.navigateTo({
  168. url: '/pages/packages/mine/employmentService/postMessage'
  169. })
  170. },
  171. }
  172. }
  173. </script>
  174. <style>
  175. page {
  176. padding-bottom: 100px;
  177. }
  178. </style>
  179. <style scoped lang="scss">
  180. .main {
  181. padding: 96rpx 32rpx;
  182. .title {
  183. color: rgba(16, 16, 16, 1);
  184. font-size: 48rpx;
  185. font-family: 'PingFangSC-medium';
  186. line-height: 48rpx;
  187. }
  188. .headline {
  189. margin-top: 12rpx;
  190. line-height: 48rpx;
  191. color: rgba(119, 119, 119, 1);
  192. margin-bottom: 60rpx;
  193. }
  194. .card {
  195. display: flex;
  196. align-items: center;
  197. padding: 32rpx;
  198. border-radius: 12px;
  199. margin-bottom: 40rpx;
  200. background-color: rgba(245, 250, 255, 1);
  201. .icon {
  202. width: 136rpx;
  203. height: 136rpx;
  204. img {
  205. width: 100%;
  206. height: 100%;
  207. }
  208. }
  209. .card-title {
  210. margin-left: 40rpx;
  211. .title1 {
  212. color: rgba(16, 16, 16, 1);
  213. font-size: 36rpx;
  214. font-family: 'PingFangSC-medium';
  215. }
  216. .title2 {
  217. color: rgba(119, 119, 119, 1);
  218. margin-top: 8rpx;
  219. }
  220. }
  221. .right {
  222. margin-left: auto;
  223. }
  224. }
  225. }
  226. </style>