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