my-requiredetail.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <template>
  2. <view class="contain">
  3. <uni-row>
  4. <view style="height: 20rpx;"></view>
  5. </uni-row>
  6. <uni-row>
  7. <uni-col :push="1">
  8. <view class="contain-item"><text class="contain-text">需求号:</text>{{item.requireId}}</view>
  9. </uni-col>
  10. </uni-row>
  11. <uni-row>
  12. <uni-col :push="1">
  13. <view class="contain-item"><text class="contain-text">学员ID:</text>{{item.uid}}</view>
  14. </uni-col>
  15. </uni-row>
  16. <uni-row>
  17. <uni-col :span="12" :push="1">
  18. <view class="contain-item"><text class="contain-text">学员:</text>{{item.name}}</view>
  19. </uni-col>
  20. </uni-row>
  21. <uni-row>
  22. <uni-col :span="12" :push="1">
  23. <view class="contain-item"><text class="contain-text">学员性别:</text>{{item.sex}}</view>
  24. </uni-col>
  25. </uni-row>
  26. <view class="stuImgWrapper">
  27. <image v-if="item.profilePhoto" class="stuImg" :src="item.profilePhoto"></image>
  28. <image v-else class="stuImg" src="../../static/boy.png"></image>
  29. </view>
  30. <uni-row>
  31. <uni-col :push="1" :span="18">
  32. <view class="contain-item"><text class="contain-text">需求科目:</text>{{item.subjectBig}}/{{item.subjectSmall}}</view>
  33. </uni-col>
  34. <uni-col :span="6" v-if="isShowCollect">
  35. <uni-fav :checked="collect" class="favBtn" :circle="true" bg-color="#dd524d"
  36. bg-color-checked="#007aff" fg-color="#ffffff" fg-color-checked="#ffffff" @click="collecting" />
  37. </uni-col>
  38. </uni-row>
  39. <uni-row>
  40. <view class="contain-item">
  41. <map :longitude="location[1]" :latitude="location[0]" :markers="marker" class="map"></map>
  42. </view>
  43. </uni-row>
  44. <uni-row>
  45. <uni-col :push="1">
  46. <view class="contain-addr-item"><text class="contain-text">学员地址:</text>{{item.locationStr}}</view>
  47. </uni-col>
  48. </uni-row>
  49. <uni-row>
  50. <uni-col :push="1">
  51. <text class="contain-text">课程时间:</text>
  52. </uni-col>
  53. </uni-row>
  54. <view class="tr-container">
  55. <view class="tr_1">
  56. <text class="th_0" decode="true">&ensp;&ensp;&ensp;&ensp;</text>
  57. <text class="th_1">周一</text>
  58. <text class="th_1">周二</text>
  59. <text class="th_1">周三</text>
  60. <text class="th_1">周四</text>
  61. <text class="th_1">周五</text>
  62. <text class="th_1">周六</text>
  63. <text class="th_1">周日</text>
  64. </view>
  65. <view class="tr_2">
  66. <checkbox-group>
  67. <view class="th2_0">上午</view>
  68. <label v-for="item in timeAM" :key="item.value">
  69. <checkbox class="th2_1" :value="item.value" :checked="item.checked" disabled></checkbox>
  70. </label>
  71. </checkbox-group>
  72. </view>
  73. <view class="tr_2">
  74. <checkbox-group>
  75. <view class="th2_0">下午</view>
  76. <label v-for="item in timePM" :key="item.value">
  77. <checkbox class="th2_1" :value="item.value" :checked="item.checked" disabled></checkbox>
  78. </label>
  79. </checkbox-group>
  80. </view>
  81. <view class="tr_2">
  82. <checkbox-group>
  83. <view class="th2_0">晚上</view>
  84. <label v-for="item in timeEvening" :key="item.value">
  85. <checkbox class="th2_1" :value="item.value" :checked="item.checked" disabled></checkbox>
  86. </label>
  87. </checkbox-group>
  88. </view>
  89. </view>
  90. <uni-row>
  91. <uni-col :span="12" :push="1">
  92. <view class="contain-item"><text class="contain-text">教员类型:</text>{{item.teacherType}}</view>
  93. </uni-col>
  94. <uni-col :span="12">
  95. <view><text class="contain-text">教员学历:</text>{{item.teacherEdu}}</view>
  96. </uni-col>
  97. </uni-row>
  98. <uni-row>
  99. <uni-col :span="12" :push="1">
  100. <view class="contain-item"><text class="contain-text">教员性别:</text>{{item.teacherGender}}</view>
  101. </uni-col>
  102. <uni-col :span="12">
  103. <view><text class="contain-text">上课方式:</text>{{item.mode}}</view>
  104. </uni-col>
  105. </uni-row>
  106. <uni-row>
  107. <uni-col :span="12" :push="1">
  108. <view class="contain-item"><text class="contain-text">教员头像:</text>{{item.teacherProfilePhoto}}</view>
  109. </uni-col>
  110. <uni-col :span="12">
  111. <view><text class="contain-text">需求金额:</text>{{item.salary}}元</view>
  112. </uni-col>
  113. </uni-row>
  114. <uni-row>
  115. <uni-col :push="1">
  116. <view class="contain-expect-item"><text class="contain-text">期望目标:</text>{{item.goal}}</view>
  117. </uni-col>
  118. </uni-row>
  119. <uni-row>
  120. <uni-col :push="1">
  121. <view class="contain-extra-item"><text class="contain-text">额外要求:</text>{{item.teacherDemanded}}</view>
  122. </uni-col>
  123. </uni-row>
  124. <view v-if="isShowPrivate">
  125. <uni-row>
  126. <uni-col :push="1">
  127. <view class="contain-item"><text class="contain-text">审核不通过原因:</text>{{item.verifyRefuseReason || '暂无'}}</view>
  128. </uni-col>
  129. </uni-row>
  130. <uni-row>
  131. <uni-col :push="1">
  132. <view class="contain-item"><text class="contain-text">本需求发布日期:</text>{{item.datetime}}</view>
  133. </uni-col>
  134. </uni-row>
  135. <uni-row>
  136. <uni-col :push="1">
  137. <view class="contain-item"><text class="contain-text">手机号:</text>{{item.phone}}</view>
  138. </uni-col>
  139. </uni-row>
  140. <uni-row>
  141. <uni-col :push="1">
  142. <view class="contain-item"><text class="contain-text">微信号:</text>{{item.wxid}}</view>
  143. </uni-col>
  144. </uni-row>
  145. </view>
  146. <view class="publish-button-wrapper">
  147. <button class="publish-button" @click="publishButton">{{buttonMessage}}</button>
  148. </view>
  149. </view>
  150. </template>
  151. <script>
  152. import { mapState } from 'vuex';
  153. export default {
  154. name: 'my-requiredetail',
  155. data() {
  156. return {
  157. };
  158. },
  159. props: {
  160. item: {
  161. type: Object
  162. },
  163. location: {
  164. type: Array
  165. },
  166. marker: {
  167. type: Array
  168. },
  169. timeAM: {
  170. type: Array
  171. },
  172. timePM: {
  173. type: Array
  174. },
  175. timeEvening: {
  176. type: Array
  177. },
  178. collect: {
  179. type: Boolean,
  180. default: false
  181. },
  182. isShowCollect: {
  183. type: Boolean,
  184. default: false
  185. },
  186. isShowPrivate: {
  187. type: Boolean,
  188. default: false
  189. },
  190. buttonMessage: {
  191. type: String
  192. }
  193. },
  194. methods: {
  195. // 点击收藏
  196. collecting() {
  197. // 触发外界通过 @click 绑定的 click 事件处理函数
  198. this.$emit('collecting')
  199. },
  200. publishButton() {
  201. this.$emit('publishButton')
  202. }
  203. },
  204. }
  205. </script>
  206. <!-- 设置页面背景 -->
  207. <style lang="scss">
  208. page{
  209. height: 100%;
  210. background-color: #FFF;
  211. }
  212. </style>
  213. <style lang="scss" scoped>
  214. .contain {
  215. //background-color: #FFF2CC;
  216. background-color: #F0F0F0;
  217. border-radius: 20rpx;
  218. height: 100%;
  219. .contain-item {
  220. margin-bottom: 20rpx;
  221. }
  222. .contain-addr-item,
  223. .contain-expect-item,
  224. .contain-extra-item{
  225. margin-bottom: 20rpx;
  226. width:94%
  227. }
  228. .contain-text {
  229. font-weight: 700;
  230. color: #bbb;
  231. }
  232. .map {
  233. width: 100%;
  234. }
  235. }
  236. .tr-container{
  237. display: flex;
  238. position: relative;
  239. width: 96%;
  240. flex-direction: column;
  241. font-size: 26rpx;
  242. /* border: 1rpx solid gray; */
  243. margin: -10px 20rpx;
  244. margin-bottom: 20px;
  245. }
  246. .tr_1 {
  247. display: flex;
  248. position: relative;
  249. height: 80rpx;
  250. line-height: 80rpx;
  251. }
  252. .tr_2{
  253. display: block;
  254. height: 80rpx;
  255. line-height: 80rpx;
  256. }
  257. .th_0,
  258. .th_1,
  259. .th_2,
  260. .th2_0,
  261. .th2_1,
  262. .th2_2{
  263. width: 12%;
  264. height: 80rpx;
  265. line-height: 80rpx;
  266. border-right: 1rpx solid gray;
  267. border-bottom: 1rpx solid gray;
  268. text-align: center;
  269. }
  270. .th_0,
  271. .th_1,
  272. .th_2{
  273. border-top: 1rpx solid gray;
  274. }
  275. .th_0,
  276. .th2_0{
  277. border-left: 1rpx solid gray;
  278. }
  279. .th2_0{
  280. float: left;
  281. width: 12%;
  282. height: 80rpx;
  283. line-height: 80rpx;
  284. text-align: center;
  285. /* background-color: greenyellow; */
  286. }
  287. // 底部按钮
  288. .publish-button-wrapper{
  289. margin-top: 10rpx;
  290. height: 130rpx;
  291. }
  292. .publish-button {
  293. //background-color: #E2F0D9;
  294. // background-color: #3ED598;
  295. background-color: #35b882;
  296. width: 200rpx;
  297. border-radius: 50rpx;
  298. color: white;
  299. }
  300. // 学员头像
  301. .stuImgWrapper{
  302. position: absolute;
  303. width:220rpx;
  304. height: 220rpx;
  305. top: 50rpx;
  306. right: 30rpx;
  307. }
  308. .stuImg{
  309. width: 100%;
  310. height: 100%;
  311. border-radius: 20rpx;
  312. }
  313. </style>