lifanagju_citu 8 mēneši atpakaļ
vecāks
revīzija
5bb4f45f20

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 11 - 6
components/PositionList/index.vue


+ 2 - 1
pages.json

@@ -15,7 +15,8 @@
 		{
 			"path": "pages/index/position",
 			"style": {
-				"navigationBarTitleText": "职位"
+				"navigationBarTitleText": "职位",
+				"enablePullDownRefresh": true
 			}
 		},
 		{

+ 10 - 1
pages/index/position.vue

@@ -27,6 +27,8 @@ import { positionList, swiperAdListTest } from '@/utils/testData'
 import { dealDictObjData } from '@/utils/position'
 import { getJobAdvertisedSearch } from '@/api/position';
 import { ref, reactive } from 'vue'
+import { onPullDownRefresh } from '@dcloudio/uni-app';
+
 
 let searchContent = ''
 const swiperAdList = ref(swiperAdListTest)
@@ -73,10 +75,17 @@ const loadingMore = () => { // 加载更多
   getData()
 }
 
-const refresh = () => {  // 下拉刷新
+const refresh = () => { // 下拉刷新
   onSearch(searchContent)
 }
 
+
+//下拉刷新
+onPullDownRefresh(() => { // 下拉刷新
+  // debugger
+  onSearch(searchContent)
+})
+
 </script>
 
 <style scoped lang="scss">

+ 43 - 4
pagesB/positionDetail/index.vue

@@ -1,10 +1,49 @@
 <template>
-  <div>position</div>
+  <view>
+    <view v-if="loading" class="vertical-center">{{ loadingText }}</view>
+    <view v-else>
+      {{ loadingText }}
+    </view>
+  </view>
 </template>
-
 <script setup>
-</script>
+// import { commissionCalculation } from '@/utils/position'
+// import loginPage from '@/views/common/loginDialog.vue'
+// import simplePage from './sendResume/simple.vue'
+// import selectPage from './sendResume/select.vue'
+import { reactive, ref } from 'vue';
+// import { getPositionDetails, jobCvRelCheckSend, getPersonJobUnfavorite, getPersonJobFavorite, getJobFavoriteCheck } from '@/api/position'
+import { dealDictObjData } from '@/utils/position'
+// import { getToken } from '@/utils/auth'
+// import Snackbar from '@/plugins/snackbar'
+import { onLoad } from '@dcloudio/uni-app';
 
-<style scoped lang="scss">
+const loading = ref(false)
+const loadingText = ref('加载中 . . . ')
+
+
+// 职位详情
+const info = ref({})
+const positionInfo = ref({})
+const getPositionDetail = async () => {
+  const data = await getPositionDetails({ id: jobId })
+  info.value = data
+  positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
+}
 
+let jobId = ''
+onLoad((options) => {
+  jobId = options?.id || ''
+  if (jobId) {
+    loading.value = true
+    loadingText.value = '加载中 . . . '
+    getPositionDetail()
+  } else {
+    loadingText.value = '加载失败 . . . '
+  }
+})
+
+
+</script>
+<style scoped lang="scss">
 </style>

+ 2 - 64
static/style/index.scss

@@ -25,6 +25,7 @@
 .cursor-pointer { cursor: pointer; }
 .font-weight-bold { font-weight: bold; }
 .text-center { text-align: center; }
+.vertical-center { text-align: center; line-height: 80vh; } // 左右居中,高度80居中
 .d-flex { display: flex; }
 .flex-column { flex-direction: column; }
 .align-center { align-items: center; }
@@ -84,71 +85,8 @@
 	justify-content: center;
 	align-items: center;
 	flex-direction: row;
-	margin:5rpx;
+	margin: 5rpx;
 }
-/* 列表触底暂无更多 */
-.noMore{
-	text-align:center;
-	color:grey;
-}
-.salary-text {
-	float: right;
-	color: #ff770d;
-}
-.list-shape {
-	padding: 10px 30rpx 10px;
-  margin-top: 10px;
-  background-color: #fff;
-}
-.tag-gap{
-	margin: 10rpx 10rpx 10rpx 0;
-}
-.tag-gap1{
-	margin: 10rpx;
-}
-.viewider{
-	margin: 0 10rpx;
-}
-.mt{
-	margin-top: 10rpx;
-}
-.mb{
-	margin-bottom: 10rpx;
-}
-.ml{
-	margin-left: 20rpx;
-}
-.mr {
-	margin-right: 20rpx;
-}
-//公司名称
-.cer-end{
-  position: absolute;
-  top: 85%;
-  right: 16%;
-}
-.cer-text{
-  text-decoration: underline;
-  margin: 0 5rpx;
-}
-//一行展示不全...
-.dis{
-	display: flex;
-	align-items: center;
-}
-.show-more{
-	width: 26vw;
-	white-space: nowrap;
-	overflow: hidden;
-	text-overflow: ellipsis;
-}
-.mr-10{
-	margin-right: 10rpx;
-}
-.divider {
-	color:#e4d4d2;
-}
-
 
 // 高亮
 .default-active {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 0
static/svg/pin.svg


+ 3 - 1
utils/config.js

@@ -4,4 +4,6 @@ export const baseUrl = 'http://menduner.citupro.com:7878'
 // 租户id
 export const tenantId = '155'
 
-export const apiPath = '/app-api'
+export const apiPath = '/app-api'
+
+export const adminPath = '/admin-api'

+ 1 - 1
utils/position.js

@@ -88,7 +88,7 @@ const list = ['headhuntRate', 'recommendRate', 'cvRate'] // 平台、推荐人
 const getRation = async () => {
   data = await getPublicRatio()
 }
-// getRation()
+getRation()
 
 export const rechargeRatio = () => { return 10 }
 

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels