|
@@ -16,16 +16,16 @@
|
|
|
</view>
|
|
|
<!--找工作-->
|
|
|
<view class="tab">
|
|
|
- <u-tabs :list="tab" :current="current"></u-tabs>
|
|
|
+ <u-tabs :scrollable="false" :inactiveStyle="{fontSize:'17px'}" :activeStyle="{color:'#3c9cff',fontSize:'17px'}" :list="tab" :current="current" @click="click"></u-tabs>
|
|
|
</view>
|
|
|
- <view class="jobs">
|
|
|
- <view class="full_time" v-for="(item, index) in jobs" :key="index">
|
|
|
+ <view class="jobs" v-if="current==0">
|
|
|
+ <view class="full_time" v-for="(item, index) in jobs" :key="index" @click="detail(item)">
|
|
|
<view class="out">
|
|
|
<view class="int">
|
|
|
<image :src="item.url" mode="aspectFill"></image>
|
|
|
<view class="title omit">{{ item.name }}</view>
|
|
|
<view class="desc">{{ item.job }}</view>
|
|
|
- <view class="price">{{ item.price }}元/日</view>
|
|
|
+ <view class="price">{{ item.price }}/月</view>
|
|
|
<view class="address">
|
|
|
<text class="icon"></text>
|
|
|
<text>南宁青秀山</text>
|
|
@@ -34,6 +34,33 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="jobs" v-if="current==1">
|
|
|
+ <view class="full_time" v-for="(item, index) in jobs" :key="index" @click="detail(item)">
|
|
|
+ <view class="out">
|
|
|
+ <view class="int">
|
|
|
+ <image :src="item.url" mode="aspectFill"></image>
|
|
|
+ <view class="title omit">{{ item.name }}</view>
|
|
|
+ <view class="desc">{{ item.job }}</view>
|
|
|
+ <view class="price">{{ item.price }}元/月</view>
|
|
|
+ <view class="address">
|
|
|
+ <text class="icon"></text>
|
|
|
+ <text>距你2km</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="jobs" v-if="current==2">
|
|
|
+ <view class="part_time" v-for="(item, index) in jobs" :key="index" @click="detail(item)">
|
|
|
+ <view class="title omit">兼职{{ item.job }}</view>
|
|
|
+ <view class="price">300/天<text class="icon"></text>日结</view>
|
|
|
+ <text class="date">4.16-4.17</text>
|
|
|
+ <view class="address">
|
|
|
+ <text @click.stop="company()">{{ item.name }}</text>
|
|
|
+ <text class="add">申请</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -94,6 +121,19 @@
|
|
|
this.getData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ detail() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/clsd/job/detail'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ company() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/clsd/job/company'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ click(e) {
|
|
|
+ this.current = e.index;
|
|
|
+ },
|
|
|
getUserInfo() {
|
|
|
this.http.request({
|
|
|
url: '/app/user/info',
|