页面修改

This commit is contained in:
THK3121 2023-08-21 11:35:12 +08:00
parent a6614b7f90
commit 64f7189963
34 changed files with 1506 additions and 1633 deletions

View File

@ -480,7 +480,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.cards_head { .cards_head {
padding: 28rpx; padding: 28rpx;

View File

@ -1,10 +1,13 @@
<template> <template>
<view class="card" @click="goDetil(goodsInfo.id)"> <view class="card">
<view class="tit"> <view class="tit">
<view v-if="goodsInfo.status==0">取货点:&nbsp;&nbsp;{{goodsInfo.shop_name}}</view> <view v-if="goodsInfo.status==0">取货点:&nbsp;&nbsp;{{goodsInfo.shop_name}}</view>
<view v-else>收货人:&nbsp;&nbsp;{{ fuzzyName(goodsInfo.receiver_name) }}</view> <view v-else>收货人:&nbsp;&nbsp;{{ fuzzyName(goodsInfo.receiver_name) }}</view>
<view style="float: right;">
<u-icon name="arrow-right" color="black" size="20"></u-icon>
</view> </view>
<view class="content"> </view>
<view class="content" @click="callFn(goodsInfo.shop_phone)">
<view v-if="goodsInfo.status==0"> <view v-if="goodsInfo.status==0">
<view class="address">店主姓名:&nbsp;&nbsp;{{goodsInfo.shop_user}}</view> <view class="address">店主姓名:&nbsp;&nbsp;{{goodsInfo.shop_user}}</view>
<view @click.stop="callFn(goodsInfo.shop_phone)" class="address"> <view @click.stop="callFn(goodsInfo.shop_phone)" class="address">
@ -24,12 +27,12 @@
</view> </view>
</view> </view>
<view class="qh_btn" v-if='goodsInfo.status==0'> <view class="qh_btn" v-if='goodsInfo.status==0' @click.stop="goDetil(goodsInfo.id)">
<u-button type="primary" class="custom-style" style="background-color: #0122C7;border: 0;"> <u-button type="primary" class="custom-style" style="background-color: #0122C7;border: 0;">
<u-icon name="scan" color="white" size="25" style="margin-right: 10rpx;"></u-icon> <u-icon name="scan" color="white" size="25" style="margin-right: 10rpx;"></u-icon>
待取货/点击查看</u-button> 待取货/点击查看</u-button>
</view> </view>
<view class="" v-if='goodsInfo.status==1'> <view class="" v-if='goodsInfo.status==1' @click.stop="goDetil(goodsInfo.id)">
<u-button type="primary" style="background-color: #FF7C32; border: 0;"><u-icon name="car-fill" color="white" <u-button type="primary" style="background-color: #FF7C32; border: 0;"><u-icon name="car-fill" color="white"
size="25" style="margin-right: 10rpx;"></u-icon> 待配送/点击查看</u-button> size="25" style="margin-right: 10rpx;"></u-icon> 待配送/点击查看</u-button>
</view> </view>
@ -88,6 +91,8 @@
font-size: 30rpx; font-size: 30rpx;
font-weight: bold; font-weight: bold;
padding: 20rpx 15rpx; padding: 20rpx 15rpx;
display: flex;
justify-content: space-between
} }
.content { .content {

View File

@ -383,7 +383,7 @@
overflow: hidden; overflow: hidden;
margin: 2vh 2vw; margin: 2vh 2vw;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); */
/* padding: 2vh 2vw; */ /* padding: 2vh 2vw; */
.tit { .tit {

View File

@ -29,7 +29,8 @@
<text>完成时间 :</text> <text>完成时间 :</text>
<text>{{datas.end_time}}</text> <text>{{datas.end_time}}</text>
</view> </view>
<text v-if="datas.status==2||datas.status==1" style="background-color: #ff7c32;" class="status">进行中</text> <text v-if="datas.status==2||datas.status==1" style="background-color: #ff7c32;"
class="status">进行中</text>
<text v-if="datas.status==3" style="background-color: #488F00;" class="status">已完成</text> <text v-if="datas.status==3" style="background-color: #488F00;" class="status">已完成</text>
<text v-if="datas.status==5" style="background-color: #ccc;" class="status">已关闭</text> <text v-if="datas.status==5" style="background-color: #ccc;" class="status">已关闭</text>
</view> </view>
@ -232,7 +233,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.cards_head { .cards_head {
padding: 28rpx; padding: 28rpx;

View File

@ -105,6 +105,7 @@
export default { export default {
data() { data() {
return { return {
is_captain: 0,
mapClass: 'custom-map', mapClass: 'custom-map',
showLoading: true, showLoading: true,
showPop: false, showPop: false,
@ -290,6 +291,7 @@
}, },
}, },
onLoad(options) { onLoad(options) {
console.log(JSON.parse(uni.getStorageSync("USER_INFO")).is_captain)
getDetil({ getDetil({
logistics_id: options.id logistics_id: options.id
}).then(res => { }).then(res => {

View File

@ -346,7 +346,7 @@
overflow: hidden; overflow: hidden;
margin: 2vh 2vw; margin: 2vh 2vw;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); */
/* padding: 2vh 2vw; */ /* padding: 2vh 2vw; */
.tit { .tit {

View File

@ -5,12 +5,12 @@
<view class="home_header" :class="!ApproveList.length > 0 ? 'home_header_no_data' : ''"> <view class="home_header" :class="!ApproveList.length > 0 ? 'home_header_no_data' : ''">
<!-- #ifdef APP-PLUS||H5 --> <!-- #ifdef APP-PLUS||H5 -->
<view style="height: var(--status-bar-height)"></view> <view style="height: var(--status-bar-height)"></view>
<view style="height: 100rpx"></view> <view style="height: 30rpx"></view>
<!-- #endif --> <!-- #endif -->
<view class="my_info"> <view class="my_info">
<view class="head_img"> <view class="head_img">
<view class="img_box"> <view class="img_box">
<u--image :showLoading="true" width="131.43rpx" height="131.43rpx" <u--image :showLoading="true" width="131.43rpx" height="131.43rpx" class="img_box_img"
:src="myOaInfo.avatar || '../../static/img/public/avatar.png'" shape="circle"></u--image> :src="myOaInfo.avatar || '../../static/img/public/avatar.png'" shape="circle"></u--image>
</view> </view>
@ -67,7 +67,7 @@
:key="index" @click="clickNotice(item.id)"> :key="index" @click="clickNotice(item.id)">
<view class="text"> <view class="text">
<text class="text_time">{{ <text class="text_time">{{
item.create_time.substring(0, 10) item.create_time.substring(0, 10).replace(/-/g, ".")
}}</text> }}</text>
{{ item.title }} {{ item.title }}
</view> </view>
@ -95,7 +95,8 @@
<view class="fast_track"> <view class="fast_track">
<block v-for="(item, index) in oaHomeData" :key="index"> <block v-for="(item, index) in oaHomeData" :key="index">
<view class="track_item" @click="navTwo(item.url, index)"> <view class="track_item" @click="navTwo(item.url, index)">
<u--image :showLoading="true" :src="item.icon" width="77.19rpx" height="77.19rpx"></u--image> <u--image :showLoading="true" :src="iconList[index]" mode="widthFix" width="77.19rpx"
height="77.19rpx"></u--image>
<view class="title">{{ item.text }}</view> <view class="title">{{ item.text }}</view>
</view> </view>
</block> </block>
@ -194,6 +195,15 @@
}, },
data() { data() {
return { return {
iconList: [
"../../static/img/home/GSXX.png",
"../../static/img/home/RYGL.png",
"../../static/img/home/HTGL.png",
"../../static/img/home/RWGL.png",
"../../static/img/home/DAGL.png",
"../../static/img/home/GRCW.png",
],
notArr: [], notArr: [],
orderList: [], orderList: [],
oaHomeData: [], oaHomeData: [],
@ -421,7 +431,7 @@
<style lang="scss"> <style lang="scss">
.oa_home { .oa_home {
padding-bottom: 120rpx; // padding-bottom: rpx;
} }
.header_bg { .header_bg {
@ -457,12 +467,22 @@
box-sizing: border-box; box-sizing: border-box;
.img_box { .img_box {
width: 131.43rpx;
height: 131.43rpx;
position: absolute; position: absolute;
left: -10rpx; left: -10rpx;
top: -15rpx; top: -15rpx;
width: 140rpx;
height: 140rpx;
background-color: white;
border-radius: 140rpx;
.img_box_img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
} }
// font-we // font-we

View File

@ -1,9 +1,6 @@
<template> <template>
<view class="login"> <view class="login">
<image <!-- <image class="bg-iamge" src="../../static/img/login/login_back_img.png"></image> -->
class="bg-iamge"
src="../../static/img/login/login_back_img.png"
></image>
<!-- #ifdef APP-PLUS||H5 --> <!-- #ifdef APP-PLUS||H5 -->
<view style="height: var(--status-bar-height)"></view> <view style="height: var(--status-bar-height)"></view>
<!-- #endif --> <!-- #endif -->
@ -12,49 +9,17 @@
<view class="login-card"> <view class="login-card">
<view class="top"> <view class="top">
<view class="text item"> <view class="text item">
<u-tabs <u-tabs :list="tabList" @click="changeTabs" lineColor="#0122c7"
:list="tabList" itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;font-size: 32rpx;"></u-tabs>
@click="changeTabs"
lineColor="#0122c7"
itemStyle="padding-left: 15px; padding-right: 15px; height: 34px;font-size: 32rpx;"
></u-tabs>
</view> </view>
<input <input v-if="current == 0" @click="getId" class="mobile item" v-model="formData.account"
v-if="current == 0" placeholder="输入账号" />
@click="getId" <input v-if="current == 0" @click="getId" class="mobile item" v-model="formData.password"
class="mobile item" maxlength="26" placeholder="输入密码" password type="safe-password" />
v-model="formData.account" <input v-if="current == 1" class="mobile item" v-model="formData.account" placeholder="输入手机号" />
placeholder="输入账号"
/>
<input
v-if="current == 0"
@click="getId"
class="mobile item"
v-model="formData.password"
maxlength="26"
placeholder="输入密码"
password
type="safe-password"
/>
<input
v-if="current == 1"
class="mobile item"
v-model="formData.account"
placeholder="输入手机号"
/>
<view v-if="current == 1" class="code item"> <view v-if="current == 1" class="code item">
<input <input placeholder="输入验证码" v-model="formData.code" maxlength="6" />
placeholder="输入验证码" <u-code :seconds="seconds" @end="end" @start="start" ref="uCode" @change="codeChange"></u-code>
v-model="formData.code"
maxlength="6"
/>
<u-code
:seconds="seconds"
@end="end"
@start="start"
ref="uCode"
@change="codeChange"
></u-code>
<view class="get-code" @click="getCode">{{ tips }}</view> <view class="get-code" @click="getCode">{{ tips }}</view>
</view> </view>
<view class="btn"> <view class="btn">
@ -69,21 +34,21 @@
</template> </template>
<script> <script>
import { import {
loginAccount, loginAccount,
userInfo, userInfo,
test test
} from "@/api/oaUser.js" } from "@/api/oaUser.js"
import { import {
Toast Toast
} from "../../libs/uniApi"; } from "../../libs/uniApi";
// #ifdef APP-PLUS // #ifdef APP-PLUS
var jpushModule = uni.requireNativePlugin("JG-JPush"); var jpushModule = uni.requireNativePlugin("JG-JPush");
// #endif // #endif
export default { export default {
data () { data() {
return { return {
tabList: [{ tabList: [{
@ -106,12 +71,12 @@ export default {
}; };
}, },
methods: { methods: {
changeTabs (e) { changeTabs(e) {
this.current = e.index; this.current = e.index;
this.formData.scene = e.index + 1; this.formData.scene = e.index + 1;
}, },
// id // id
getId () { getId() {
// #ifdef APP-PLUS // #ifdef APP-PLUS
if (this.formData.register_id) return if (this.formData.register_id) return
jpushModule.initJPushService() jpushModule.initJPushService()
@ -123,7 +88,7 @@ export default {
}) })
// #endif // #endif
}, },
async login () { async login() {
if (!this.formData.account) return Toast('账号不能为空'); if (!this.formData.account) return Toast('账号不能为空');
if (this.formData.scene == 1 && !this.formData.password) return Toast('密码不能为空'); if (this.formData.scene == 1 && !this.formData.password) return Toast('密码不能为空');
if (this.formData.scene == 2 && !this.formData.code) return Toast('验证码不能为空'); if (this.formData.scene == 2 && !this.formData.code) return Toast('验证码不能为空');
@ -160,7 +125,7 @@ export default {
url: '/pages/updatePasswprd/updatePasswprd' url: '/pages/updatePasswprd/updatePasswprd'
}); });
}, },
initTerminal () { initTerminal() {
// #ifndef APP-PLUS // #ifndef APP-PLUS
this.formData.terminal = 6; this.formData.terminal = 6;
// #endif // #endif
@ -183,10 +148,10 @@ export default {
this.formData.terminal = 1; this.formData.terminal = 1;
// #endif // #endif
}, },
codeChange (text) { codeChange(text) {
this.tips = text; this.tips = text;
}, },
getCode () { getCode() {
if (this.$refs.uCode.canGetCode) { if (this.$refs.uCode.canGetCode) {
// //
uni.showLoading({ uni.showLoading({
@ -203,40 +168,42 @@ export default {
uni.$u.toast('倒计时结束后再发送'); uni.$u.toast('倒计时结束后再发送');
} }
}, },
end () { end() {
// uni.$u.toast(''); // uni.$u.toast('');
}, },
start () { start() {
// uni.$u.toast(''); // uni.$u.toast('');
}, },
// //
forgetPWD () { forgetPWD() {
Toast('暂未开放') Toast('暂未开放')
} }
}, },
mounted () { mounted() {
this.initTerminal(); this.initTerminal();
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.login { .login {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
position: relative; position: relative;
background-color: $theme-oa-color;
/* #ifdef H5 */ /* #ifdef H5 */
background-image: url("../../static/img/login/login_back_img.png"); // background-image: url("../../static/img/login/login_back_img.png");
background-color: $theme-oa-color;
/* #endif */ /* #endif */
.bg-iamge { // .bg-iamge {
width: 100vw; // width: 100vw;
height: 100vh; // height: 100vh;
position: absolute; // position: absolute;
z-index: -99; // z-index: -99;
} // }
.body { .body {
display: flex; display: flex;
@ -333,5 +300,5 @@ export default {
} }
} }
} }
} }
</style> </style>

View File

@ -178,9 +178,11 @@
padding: 28rpx; padding: 28rpx;
width: 100vw; width: 100vw;
margin-bottom: 30rpx; margin-bottom: 30rpx;
background-image: url('../../static/img/home/my_bg.png'); // background-image: url('../../static/img/home/my_bg.png');
background-size: 100% 100%; background-color: $theme-oa-color;
background-repeat: no-repeat; border-radius: 0 0 30rpx 30rpx;
// background-size 100% 100%;
// background-repeat: no-repeat;
// .head_img { // .head_img {
// position: absolute; // position: absolute;
@ -326,7 +328,7 @@
margin-top: 84.21rpx; margin-top: 84.21rpx;
width: 614.04rpx; width: 614.04rpx;
height: 84.21rpx; height: 84.21rpx;
background: #3274F9; background: $theme-oa-color;
box-shadow: 0px 9px 26px 1px #E9EFF5; box-shadow: 0px 9px 26px 1px #E9EFF5;
} }
</style> </style>

BIN
static/img/company/DAGL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

BIN
static/img/home/DAGL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
static/img/home/DAGL2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
static/img/home/GRCW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/img/home/GSXX.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/img/home/HTGL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
static/img/home/RWGL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

BIN
static/img/home/RYGL.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -65,7 +65,7 @@
<view class="left"> <view class="left">
<view class="cir"> <view class="cir">
<u--image class="u_avatar" :showLoading="true" :src=" '../../static/img/public/man.png'" <u--image class="u_avatar" :showLoading="true" :src=" '../../static/img/company/DAGL.png'"
width="112.28rpx" height="112.28rpx" shape="circle"></u--image> width="112.28rpx" height="112.28rpx" shape="circle"></u--image>
</view> </view>
</view> </view>
@ -221,14 +221,13 @@
res = await taskInformationgist({ res = await taskInformationgist({
id: this.task_id id: this.task_id
}); });
} } else {
else {
let params = { let params = {
page: this.loadConfig.page, page: this.loadConfig.page,
limit: this.loadConfig.limit, limit: this.loadConfig.limit,
user_id: that.user_id, user_id: that.user_id,
}; };
this.task_id > 0 ? params.is_update = this.current:null; this.task_id > 0 ? params.is_update = this.current : null;
res = await informationList(params); res = await informationList(params);
} }
this.loadConfig.status = "loadmore" this.loadConfig.status = "loadmore"
@ -279,7 +278,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.card_head { .card_head {
padding: 28rpx; padding: 28rpx;
@ -302,7 +301,7 @@
width: 160rpx; width: 160rpx;
background-color: $theme-oa-color; // background-color: $theme-oa-color;
color: white; color: white;
border-radius: 40rpx; border-radius: 40rpx;

View File

@ -459,7 +459,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.card_head { .card_head {
padding: 28rpx; padding: 28rpx;

View File

@ -198,7 +198,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.card_head { .card_head {
padding: 28rpx; padding: 28rpx;

View File

@ -3,8 +3,12 @@
<company :id="id" type="company"></company> <company :id="id" type="company"></company>
<view class="need_contract" v-if="!company.contract||!company.contract.status||!company.company.is_contract"> <view class="need_contract" v-if="!company.contract||!company.contract.status||!company.company.is_contract">
<view class="title">电子合同</view> <view class="title">电子合同</view>
<picker v-if="company.contract&&company.contract.check_status==0||!company.contract" :range="contractTypeList" range-key="name" @change="changeType"> <picker v-if="company.contract&&company.contract.check_status==0||!company.contract"
<button class="btn">生成合同</button> :range="contractTypeList" range-key="name" @change="changeType">
<button class="btn">
<image src="../../static/img/contract/FQHT.png" width="35rpx" height="35rpx" mode="widthFix">
</image> 发起合同
</button>
<!-- <mybtn text="生成合同" position="false"></mybtn> --> <!-- <mybtn text="生成合同" position="false"></mybtn> -->
</picker> </picker>
<view v-if="company.contract&&company.contract.check_status==1"> <view v-if="company.contract&&company.contract.check_status==1">
@ -61,10 +65,21 @@
</template> </template>
<script> <script>
import { companyView, initiateContract, Draftingcontracts, postsms } from "@/api/company.js" import {
import { dictDataLists } from "@/api/oaPbulic.js" companyView,
import { Toast } from "../../libs/uniApi"; initiateContract,
import {companyContractType} from "@/static/server/contract.js"; Draftingcontracts,
postsms
} from "@/api/company.js"
import {
dictDataLists
} from "@/api/oaPbulic.js"
import {
Toast
} from "../../libs/uniApi";
import {
companyContractType
} from "@/static/server/contract.js";
export default { export default {
data() { data() {
return { return {
@ -83,12 +98,12 @@
this.initCompany(); this.initCompany();
this.initContractTypeList(); this.initContractTypeList();
let time = uni.getStorageSync('ctime' + this.id); let time = uni.getStorageSync('ctime' + this.id);
if(time>0&&(time - Date.now())/1000>0){ if (time > 0 && (time - Date.now()) / 1000 > 0) {
this.startTimer((time - Date.now())/1000); this.startTimer((time - Date.now()) / 1000);
} }
}, },
onUnload() { onUnload() {
if(this.timerCount>0) uni.setStorageSync('ctime'+this.id, this.timerCount*1000+Date.now()); if (this.timerCount > 0) uni.setStorageSync('ctime' + this.id, this.timerCount * 1000 + Date.now());
}, },
computed: { computed: {
cTimerCount() { cTimerCount() {
@ -101,7 +116,8 @@
id: this.id, id: this.id,
}) })
this.company = res.data; this.company = res.data;
if (this.company.contract == [] || this.company.contract == {} || this.company.contract.length == 0) this if (this.company.contract == [] || this.company.contract == {} || this.company.contract.length == 0)
this
.company.contract = null; .company.contract = null;
}, },
changeType(e) { changeType(e) {
@ -123,8 +139,8 @@
let res = await dictDataLists({ let res = await dictDataLists({
type_id: 7 type_id: 7
}) })
res.data = res.data.filter(item=>{ res.data = res.data.filter(item => {
return companyContractType.find(t=>item.id==t); return companyContractType.find(t => item.id == t);
}) })
this.contractTypeList = res.data; this.contractTypeList = res.data;
}, },
@ -138,7 +154,7 @@
success: async (e) => { success: async (e) => {
if (e.confirm) { if (e.confirm) {
uni.showLoading({ uni.showLoading({
title:'合同生成中', title: '合同生成中',
mask: true mask: true
}) })
let res = await initiateContract({ let res = await initiateContract({
@ -163,9 +179,9 @@
confirmColor: '#3175f9', confirmColor: '#3175f9',
success: async (e) => { success: async (e) => {
if (e.confirm) { if (e.confirm) {
try{ try {
uni.showLoading({ uni.showLoading({
title:'合同发送中', title: '合同发送中',
mask: true mask: true
}) })
let res = await Draftingcontracts({ let res = await Draftingcontracts({
@ -176,9 +192,9 @@
uni.hideLoading(); uni.hideLoading();
Toast('合同已发送'); Toast('合同已发送');
// this.navTo('/subpkg/submit/submit'); // this.navTo('/subpkg/submit/submit');
}catch(e){ } catch (e) {
uni.hideLoading(); uni.hideLoading();
Toast(e.msg||'合同发送失败'); Toast(e.msg || '合同发送失败');
} }
} }
} }
@ -205,7 +221,7 @@
} }
}, },
// //
startTimer(time=60){ startTimer(time = 60) {
this.timerCount = time.toFixed(0); this.timerCount = time.toFixed(0);
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.timerCount--; this.timerCount--;
@ -231,7 +247,8 @@
<style lang="scss"> <style lang="scss">
.need_contract { .need_contract {
padding-bottom: 30rpx; padding-bottom: 30rpx;
.title{
.title {
font-size: 35rpx; font-size: 35rpx;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;

View File

@ -182,7 +182,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.cards_head { .cards_head {
padding: 28rpx; padding: 28rpx;

View File

@ -10,7 +10,8 @@
</view> </view>
</view> --> </view> -->
<view class="contract_list"> <view class="contract_list">
<view class="item" v-for="(item,index) in list" :key="item.id" @click="navTo('/subpkg/contractDetail/contractDetail?id='+item.id)"> <view class="item" v-for="(item,index) in list" :key="item.id"
@click="navTo('/subpkg/contractDetail/contractDetail?id='+item.id)">
<view class="personnel_list"> <view class="personnel_list">
<view class="cards"> <view class="cards">
<view class="cards_head"> <view class="cards_head">
@ -25,7 +26,8 @@
<view class=""> <view class="">
<text>乙方 :</text> <text>乙方 :</text>
<text v-if="item.party_b_info">{{item.party_b_info.company_name}}</text> <text v-if="item.party_b_info">{{item.party_b_info.company_name}}</text>
<text v-else-if="item.party_b==$store.state.app.userInfo.id">{{$store.state.app.userInfo.nickname}}</text> <text
v-else-if="item.party_b==$store.state.app.userInfo.id">{{$store.state.app.userInfo.nickname}}</text>
</view> </view>
<view class=""> <view class="">
<text>合同类型 :</text> <text>合同类型 :</text>
@ -153,7 +155,7 @@
url: url url: url
}) : Toast('暂未开放') }) : Toast('暂未开放')
}, },
navToContract (contract_no) { navToContract(contract_no) {
download_file({ download_file({
applyNo: contract_no applyNo: contract_no
}).then(res => { }).then(res => {
@ -250,7 +252,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.cards_head { .cards_head {
padding: 28rpx; padding: 28rpx;

View File

@ -202,7 +202,7 @@
// console.log(this.userInfo); // console.log(this.userInfo);
if (this.user_id == 0) { if (this.user_id == 0) {
// this.userInfo = this.$store.state.app.userInfo; // this.userInfo = this.$store.state.app.userInfo;
userInfo().then((res)=>{ userInfo().then((res) => {
this.$store.commit('setUserInfo', res.data); this.$store.commit('setUserInfo', res.data);
this.userInfo = res.data; this.userInfo = res.data;
}) })
@ -299,7 +299,7 @@
// background-color: red; // background-color: red;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
vertical-align: bottom; width: 24vw;
line-height: 44px; line-height: 44px;
} }

View File

@ -58,7 +58,7 @@
<view class="personnel_list"> <view class="personnel_list">
<view class="card" v-for="(item, index) in userList" :key="item.id"> <view class="card" v-for="(item, index) in userList" :key="item.id">
<view class="card_head"> <view class="card_head">
<text style="font-size: 32rpx;">创建时间: {{creTime(item.create_time)}} <text>创建时间: {{creTime(item.create_time)}}
</text> </text>
<text @click="navTo('/subpkg/finance/finance?id='+item.id)">财务查看</text> <text @click="navTo('/subpkg/finance/finance?id='+item.id)">财务查看</text>
<text @click="navTo('/subpkg/personnelDetails/personnelDetails?id='+item.id)">信息查看</text> <text @click="navTo('/subpkg/personnelDetails/personnelDetails?id='+item.id)">信息查看</text>
@ -223,7 +223,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.card_head { .card_head {
padding: 28rpx; padding: 28rpx;

View File

@ -1,31 +1,22 @@
<template> <template>
<view class="page"> <view class="page">
<view class="basic"> <view class="basic">
<u-skeleton <u-skeleton :loading="skeleton" :animate="true" title rows="1" rows-width="100%" rowsHeight="56">
:loading="skeleton"
:animate="true"
title
rows="1"
rows-width="100%"
rowsHeight="56"
>
</u-skeleton> </u-skeleton>
<block v-if="!skeleton"> <block v-if="!skeleton">
<view class="title">人员基本信息</view>
<view class="tit">人员基本信息</view>
<view class="card"> <view class="card">
<view class="basic_top"> <view class="basic_top">
<image class="avatar" :src="userInfo.avatar"></image> <image class="avatar" :src="userInfo.avatar"></image>
<view class="text"> <view class="text">
<view class="basic_name"> <view class="basic_name">
<view class="name">{{ userInfo.name }}</view> <view class="name">{{ userInfo.name }}</view>
<image <image class="icon" :src="
class="icon"
:src="
userInfo.sex == 1 userInfo.sex == 1
? '../../static/icons/man.png' ? '../../static/icons/man.png'
: '../../static/icons/woman.png' : '../../static/icons/woman.png'
" ">
>
</image> </image>
<!-- <view class="role" v-if="userInfo.roles">{{userInfo.roles[0]}}</view> --> <!-- <view class="role" v-if="userInfo.roles">{{userInfo.roles[0]}}</view> -->
</view> </view>
@ -38,32 +29,16 @@
<view class="phone"> 联系电话{{ userInfo.phone }} </view> <view class="phone"> 联系电话{{ userInfo.phone }} </view>
</view> </view>
</view> </view>
<view <view class="bottom" style="margin-bottom: 10rpx; display: flex; align-items: center">
class="bottom"
style="margin-bottom: 10rpx; display: flex; align-items: center"
>
是否为小队长 是否为小队长
<u-radio-group <u-radio-group v-model="userInfo.is_captain" style="margin-left: 16rpx" disabled>
v-model="userInfo.is_captain" <u-radio :customStyle="{ marginRight: '16px' }" v-for="(item, index) in [
style="margin-left: 16rpx"
disabled
>
<u-radio
:customStyle="{ marginRight: '16px' }"
v-for="(item, index) in [
{ value: 1, label: '是' }, { value: 1, label: '是' },
{ value: 0, label: '否' }, { value: 0, label: '否' },
]" ]" :key="index" :label="item.label" :name="item.value">
:key="index"
:label="item.label"
:name="item.value"
>
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
<view <view class="update" @click="updateShow(userInfo.is_captain, 'is_captain')">
class="update"
@click="updateShow(userInfo.is_captain, 'is_captain')"
>
<uni-icons type="compose" color="#F9AA32"></uni-icons> <uni-icons type="compose" color="#F9AA32"></uni-icons>
</view> </view>
</view> </view>
@ -79,20 +54,11 @@
<view class="p_title">修改信息</view> <view class="p_title">修改信息</view>
<view class="p_body"> <view class="p_body">
是否为小队长 是否为小队长
<u-radio-group <u-radio-group v-model="updateForm.is_captain" style="margin: 16rpx">
v-model="updateForm.is_captain" <u-radio :customStyle="{ marginRight: '16px' }" v-for="(item, index) in [
style="margin: 16rpx"
>
<u-radio
:customStyle="{ marginRight: '16px' }"
v-for="(item, index) in [
{ value: 1, label: '是' }, { value: 1, label: '是' },
{ value: 0, label: '否' }, { value: 0, label: '否' },
]" ]" :key="index" :label="item.label" :name="item.value">
:key="index"
:label="item.label"
:name="item.value"
>
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
</view> </view>
@ -106,15 +72,8 @@
<view class="popup"> <view class="popup">
<view class="p_title">修改信息</view> <view class="p_title">修改信息</view>
<u--form style="padding: 0 28rpx"> <u--form style="padding: 0 28rpx">
<u-form-item <u-form-item label="身份证号:" labelWidth="auto" labelPosition="top">
label="身份证号:" <u--input style="border: 1px solid #3175f9" v-model="updateForm.id_card"></u--input>
labelWidth="auto"
labelPosition="top"
>
<u--input
style="border: 1px solid #3175f9"
v-model="updateForm.id_card"
></u--input>
</u-form-item> </u-form-item>
</u--form> </u--form>
<view class="p_button"> <view class="p_button">
@ -127,29 +86,15 @@
</block> </block>
</view> </view>
<view class="certification"> <view class="certification">
<u-skeleton <u-skeleton :loading="skeleton" :animate="true" title rows="3" rows-width="100%" rowsHeight="56">
:loading="skeleton"
:animate="true"
title
rows="3"
rows-width="100%"
rowsHeight="56"
>
</u-skeleton> </u-skeleton>
<block v-if="!skeleton"> <block v-if="!skeleton">
<view class="title">资质信息</view> <view class="tit">资质信息</view>
<view class="c_item"> <view class="c_item">
<uni-section <uni-section style="background-color: transparent" title="身份证" titleFontSize="32rpx" type="line">
style="background-color: transparent"
title="身份证"
titleFontSize="32rpx"
type="line"
>
</uni-section> </uni-section>
<view class="card_box"> <view class="card_box">
<image <image :src="userInfo.qualification && userInfo.qualification.id_card" @click="
:src="userInfo.qualification && userInfo.qualification.id_card"
@click="
previewImg( previewImg(
[ [
userInfo.qualification && userInfo.qualification.id_card, userInfo.qualification && userInfo.qualification.id_card,
@ -157,12 +102,9 @@
], ],
0 0
) )
" ">
>
</image> </image>
<image <image :src="userInfo.qualification && userInfo.qualification.id_card_b" @click="
:src="userInfo.qualification && userInfo.qualification.id_card_b"
@click="
previewImg( previewImg(
[ [
userInfo.qualification && userInfo.qualification.id_card, userInfo.qualification && userInfo.qualification.id_card,
@ -170,25 +112,17 @@
], ],
1 1
) )
" ">
>
</image> </image>
</view> </view>
</view> </view>
<view class="c_item"> <view class="c_item">
<uni-section <uni-section style="background-color: transparent" title="银行卡照片" titleFontSize="32rpx" type="line">
style="background-color: transparent"
title="银行卡照片"
titleFontSize="32rpx"
type="line"
>
</uni-section> </uni-section>
<view class="card_box"> <view class="card_box">
<image <image :src="
:src="
userInfo.qualification && userInfo.qualification.bank_account userInfo.qualification && userInfo.qualification.bank_account
" " @click="
@click="
previewImg( previewImg(
[ [
userInfo.qualification && userInfo.qualification &&
@ -198,14 +132,11 @@
], ],
0 0
) )
" ">
>
</image> </image>
<image <image :src="
:src="
userInfo.qualification && userInfo.qualification.bank_account_b userInfo.qualification && userInfo.qualification.bank_account_b
" " @click="
@click="
previewImg( previewImg(
[ [
userInfo.qualification && userInfo.qualification &&
@ -215,30 +146,19 @@
], ],
1 1
) )
" ">
>
</image> </image>
</view> </view>
</view> </view>
<view <view class="c_item" v-if="
class="c_item"
v-if="
(userInfo.qualification && userInfo.qualification.car_card) || (userInfo.qualification && userInfo.qualification.car_card) ||
(userInfo.qualification && userInfo.qualification.car_card) (userInfo.qualification && userInfo.qualification.car_card)
" ">
> <uni-section style="background-color: transparent" title="驾驶证" titleFontSize="32rpx" type="line">
<uni-section
style="background-color: transparent"
title="驾驶证"
titleFontSize="32rpx"
type="line"
>
</uni-section> </uni-section>
<view class="card_box"> <view class="card_box">
<image <image v-if="userInfo.qualification && userInfo.qualification.car_card"
v-if="userInfo.qualification && userInfo.qualification.car_card" :src="userInfo.qualification && userInfo.qualification.car_card" @click="
:src="userInfo.qualification && userInfo.qualification.car_card"
@click="
previewImg( previewImg(
[ [
userInfo.qualification && userInfo.qualification.car_card, userInfo.qualification && userInfo.qualification.car_card,
@ -246,13 +166,10 @@
], ],
0 0
) )
" ">
>
</image> </image>
<image <image v-if="userInfo.qualification && userInfo.qualification.car_card"
v-if="userInfo.qualification && userInfo.qualification.car_card" :src="userInfo.qualification && userInfo.qualification.car_card_b" @click="
:src="userInfo.qualification && userInfo.qualification.car_card_b"
@click="
previewImg( previewImg(
[ [
userInfo.qualification && userInfo.qualification.car_card, userInfo.qualification && userInfo.qualification.car_card,
@ -260,69 +177,39 @@
], ],
1 1
) )
" ">
>
</image> </image>
</view> </view>
</view> </view>
</block> </block>
</view> </view>
<view class="contract"> <view class="contract">
<u-skeleton <u-skeleton :loading="skeleton" :animate="true" title rows="2" rows-width="100%" rowsHeight="56">
:loading="skeleton"
:animate="true"
title
rows="2"
rows-width="100%"
rowsHeight="56"
>
</u-skeleton> </u-skeleton>
<block v-if="!skeleton"> <block v-if="!skeleton">
<view class="title">电子合同</view> <view class="tit">电子合同</view>
<view <view v-if="
v-if="
userInfo.contract && userInfo.contract &&
userInfo.is_contract && userInfo.is_contract &&
userInfo.contract.status userInfo.contract.status
" " class="card" style="font-size: 17px;">
class="card" <uni-section style="background-color: transparent" :title="userInfo.name" titleFontSize="32rpx"
> type="line"></uni-section>
<uni-section <view class="c_text">性别{{ userInfo.sex == 1 ? "男" : "女" }}</view>
style="background-color: transparent"
:title="userInfo.name"
titleFontSize="32rpx"
type="line"
></uni-section>
<view class="c_text"
>性别{{ userInfo.sex == 1 ? "男" : "女" }}</view
>
<view class="c_text">身份证号码{{ userInfo.id_card }}</view> <view class="c_text">身份证号码{{ userInfo.id_card }}</view>
<view class="c_text">联系电话{{ userInfo.phone }}</view> <view class="c_text">联系电话{{ userInfo.phone }}</view>
<view class="c_text" <view class="c_text">合同类型{{
>合同类型{{
userInfo.contract && userInfo.contract.contract_type_name userInfo.contract && userInfo.contract.contract_type_name
}}</view }}</view>
> <view class="c_text">合同编号{{
<view class="c_text"
>合同编号{{
userInfo.contract && userInfo.contract.contract_no userInfo.contract && userInfo.contract.contract_no
}}</view }}</view>
> <u-line v-if="userInfo.contract && userInfo.contract.file" color="#999999FF"
<u-line style="margin: 31rpx 0">
v-if="userInfo.contract && userInfo.contract.file"
color="#999999FF"
style="margin: 31rpx 0"
>
</u-line> </u-line>
<view <view v-if="userInfo.contract && userInfo.contract.file" class="contract_box">
v-if="userInfo.contract && userInfo.contract.file"
class="contract_box"
>
<view class="left"> <view class="left">
<image <image class="contract_img" src="../../static/img/contract/pdf.png"></image>
class="contract_img"
src="../../static/img/contract/pdf.png"
></image>
<view class="text"> <view class="text">
<view class="name">{{ <view class="name">{{
userInfo.contract.contract_type_name || "合同" userInfo.contract.contract_type_name || "合同"
@ -334,44 +221,30 @@
</view> </view>
</view> </view>
</view> </view>
<view <view class="right" @click="naviToContract(userInfo.contract.contract_no)">
class="right"
@click="naviToContract(userInfo.contract.contract_no)"
>
<!-- <image class="icon"></image> --> <!-- <image class="icon"></image> -->
<uni-icons type="paperclip" color="#3274F9"></uni-icons> <uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view> <view>查看</view>
</view> </view>
</view> </view>
</view> </view>
<picker <picker v-if="
v-if="
(!userInfo.is_contract && !userInfo.contract) || (!userInfo.is_contract && !userInfo.contract) ||
(userInfo.contract && userInfo.contract.check_status == 0) (userInfo.contract && userInfo.contract.check_status == 0)
" " :range="contractTypeList" range-key="name" @change="changeType">
:range="contractTypeList"
range-key="name"
@change="changeType"
>
<button class="btn">生成合同</button> <button class="btn">生成合同</button>
</picker> </picker>
<view v-if="userInfo.contract && userInfo.contract.check_status == 1"> <view v-if="userInfo.contract && userInfo.contract.check_status == 1">
<button class="btn tips_center">合同已生成,请等待审核</button> <button class="btn tips_center">合同已生成,请等待审核</button>
</view> </view>
<view <view v-if="
v-if="
!userInfo.is_contract && !userInfo.is_contract &&
userInfo.contract && userInfo.contract &&
userInfo.contract.check_status == 2 userInfo.contract.check_status == 2
" " class="card">
class="card"
>
<view class="contract_box send"> <view class="contract_box send">
<view class="left"> <view class="left">
<image <image class="contract_img" src="../../static/img/contract/pdf.png"></image>
class="contract_img"
src="../../static/img/contract/pdf.png"
></image>
<view class="text"> <view class="text">
<view class="name">{{ <view class="name">{{
userInfo.contract.contract_type_name || "合同" userInfo.contract.contract_type_name || "合同"
@ -383,10 +256,7 @@
</view> </view>
</view> </view>
</view> </view>
<view <view class="right" @click="naviToContract(userInfo.contract.contract_no)">
class="right"
@click="naviToContract(userInfo.contract.contract_no)"
>
<!-- <image class="icon"></image> --> <!-- <image class="icon"></image> -->
<uni-icons type="paperclip" color="#3274F9"></uni-icons> <uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view> <view>查看</view>
@ -394,11 +264,7 @@
</view> </view>
<u-line color="#999999FF" style="margin: 31rpx 0"></u-line> <u-line color="#999999FF" style="margin: 31rpx 0"></u-line>
<view class="bottom"> <view class="bottom">
<button <button class="send_btn" @click="addContract" v-if="timerCount == 0">
class="send_btn"
@click="addContract"
v-if="timerCount == 0"
>
发送合同 发送合同
</button> </button>
<button class="send_btn tips_center" v-else> <button class="send_btn tips_center" v-else>
@ -406,20 +272,14 @@
</button> </button>
</view> </view>
</view> </view>
<view <view v-if="
v-if="
!userInfo.is_contract && !userInfo.is_contract &&
userInfo.contract && userInfo.contract &&
userInfo.contract.check_status == 3 userInfo.contract.check_status == 3
" " class="card">
class="card"
>
<view class="contract_box send"> <view class="contract_box send">
<view class="left"> <view class="left">
<image <image class="contract_img" src="../../static/img/contract/pdf.png"></image>
class="contract_img"
src="../../static/img/contract/pdf.png"
></image>
<view class="text"> <view class="text">
<view class="name">{{ <view class="name">{{
userInfo.contract.contract_type_name userInfo.contract.contract_type_name
@ -431,10 +291,7 @@
</view> </view>
</view> </view>
</view> </view>
<view <view class="right" @click="naviToContract(userInfo.contract.contract_no)">
class="right"
@click="naviToContract(userInfo.contract.contract_no)"
>
<!-- <image class="icon"></image> --> <!-- <image class="icon"></image> -->
<uni-icons type="paperclip" color="#3274F9"></uni-icons> <uni-icons type="paperclip" color="#3274F9"></uni-icons>
<view>查看</view> <view>查看</view>
@ -456,27 +313,29 @@
</template> </template>
<script> <script>
import { import {
Toast Toast
} from '@/libs/uniApi.js' } from '@/libs/uniApi.js'
import { import {
companyUserDetail companyUserDetail
} from "@/api/company.js" } from "@/api/company.js"
import { import {
loginSetInfo, loginSetInfo,
userDraftingcontracts, userDraftingcontracts,
userInitiateContract, userInitiateContract,
userPostsms userPostsms
} from "@/api/oaUser.js" } from "@/api/oaUser.js"
import { import {
dictDataLists dictDataLists
} from "@/api/oaPbulic.js" } from "@/api/oaPbulic.js"
import { import {
download_file download_file
} from "@/api/junziqian.js" } from "@/api/junziqian.js"
import {personnerContractType} from "@/static/server/contract.js"; import {
export default { personnerContractType
data () { } from "@/static/server/contract.js";
export default {
data() {
return { return {
id: '', id: '',
skeleton: true, skeleton: true,
@ -499,7 +358,7 @@ export default {
contractTypeList: [] contractTypeList: []
} }
}, },
onLoad (options) { onLoad(options) {
if (options.id) this.id = options.id; if (options.id) this.id = options.id;
this.initContractTypeList(); this.initContractTypeList();
this.loadUserDetail(); this.loadUserDetail();
@ -508,17 +367,17 @@ export default {
this.startTimer((time - Date.now()) / 1000); this.startTimer((time - Date.now()) / 1000);
} }
}, },
onUnload () { onUnload() {
if (this.timerCount > 0) uni.setStorageSync('time' + this.id, this.timerCount * 1000 + Date.now()); if (this.timerCount > 0) uni.setStorageSync('time' + this.id, this.timerCount * 1000 + Date.now());
}, },
computed: { computed: {
cTimerCount () { cTimerCount() {
return this.timerCount; return this.timerCount;
} }
}, },
methods: { methods: {
// //
naviToContract (contract_no) { naviToContract(contract_no) {
if (this.userInfo.is_contract) { if (this.userInfo.is_contract) {
download_file({ download_file({
applyNo: contract_no applyNo: contract_no
@ -534,18 +393,18 @@ export default {
url: `/subpkg/pdfView/pdfView?url=${this.userInfo?.contract?.file}` url: `/subpkg/pdfView/pdfView?url=${this.userInfo?.contract?.file}`
}) })
}, },
navTo (url) { navTo(url) {
url ? url ?
uni.navigateTo({ uni.navigateTo({
url: url, url: url,
}) : Toast('暂未开放') }) : Toast('暂未开放')
}, },
updateShow (value, type) { updateShow(value, type) {
this.updateForm[type] = value; this.updateForm[type] = value;
this.show[type] = true; this.show[type] = true;
}, },
// //
async updateInfo (type) { async updateInfo(type) {
try { try {
let form = { let form = {
user_id: this.userInfo.id, user_id: this.userInfo.id,
@ -559,7 +418,7 @@ export default {
Toast(e.msg || '更新失败') Toast(e.msg || '更新失败')
} }
}, },
changeType (e) { changeType(e) {
// console.log(this.contractTypeList[e.detail.value]); // console.log(this.contractTypeList[e.detail.value]);
this.createContract({ this.createContract({
party_b: this.userInfo.id, party_b: this.userInfo.id,
@ -568,17 +427,17 @@ export default {
}) })
}, },
// //
async initContractTypeList () { async initContractTypeList() {
let res = await dictDataLists({ let res = await dictDataLists({
type_id: 7 type_id: 7
}) })
res.data = res.data.filter(item=>{ res.data = res.data.filter(item => {
return personnerContractType.find(t=>item.id==t); return personnerContractType.find(t => item.id == t);
}) })
this.contractTypeList = res.data; this.contractTypeList = res.data;
}, },
// //
createContract (data) { createContract(data) {
uni.showModal({ uni.showModal({
content: '请检查信息无误后再生成合同', content: '请检查信息无误后再生成合同',
confirmText: '确认无误', confirmText: '确认无误',
@ -604,7 +463,7 @@ export default {
}) })
}, },
// //
async addContract (data) { async addContract(data) {
uni.showModal({ uni.showModal({
content: '请检查合同无误后再发送', content: '请检查合同无误后再发送',
confirmText: '确认无误', confirmText: '确认无误',
@ -634,7 +493,7 @@ export default {
}) })
}, },
// //
async getPostsms () { async getPostsms() {
try { try {
uni.showLoading({ uni.showLoading({
title: '发送中', title: '发送中',
@ -655,7 +514,7 @@ export default {
} }
}, },
// //
startTimer (time = 60) { startTimer(time = 60) {
this.timerCount = time.toFixed(0); this.timerCount = time.toFixed(0);
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.timerCount--; this.timerCount--;
@ -665,7 +524,7 @@ export default {
} }
}, 1000); }, 1000);
}, },
loadUserDetail () { loadUserDetail() {
if (!this.id) return; if (!this.id) return;
companyUserDetail({ companyUserDetail({
id: this.id id: this.id
@ -674,41 +533,48 @@ export default {
this.skeleton = false; this.skeleton = false;
}) })
}, },
previewImg (urls, index = 0) { previewImg(urls, index = 0) {
uni.previewImage({ uni.previewImage({
urls: urls, urls: urls,
current: index current: index
}) })
} }
}, },
onPullDownRefresh () { onPullDownRefresh() {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.page { .page {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.title { .tit {
font-size: 35rpx; font-size: 35rpx;
font-weight: 500; font-weight: 500;
color: #333333; color: white;
margin-bottom: 21rpx; // margin-bottom: 21rpx;
} padding: 28rpx;
background-color: $theme-oa-color;
border-radius: 14rpx 14rpx 0 0;
.card { .c_text {
// margin: 200rpx 0;
}
}
.card {
width: 694rpx; width: 694rpx;
background: #ffffff; background: #ffffff;
border-radius: 14rpx 14rpx 14rpx 14rpx; border-radius: 14rpx 14rpx 14rpx 14rpx;
padding: 28rpx; padding: 28rpx;
} }
.basic { .basic {
margin: 28rpx 0; margin: 28rpx 0;
.card { .card {
@ -816,9 +682,9 @@ export default {
} }
} }
} }
} }
.certification { .certification {
margin-bottom: 28rpx; margin-bottom: 28rpx;
.title { .title {
@ -841,9 +707,9 @@ export default {
} }
} }
} }
} }
.contract { .contract {
margin-bottom: 28rpx; margin-bottom: 28rpx;
.title { .title {
@ -949,5 +815,5 @@ export default {
background-color: #666; background-color: #666;
color: #eee; color: #eee;
} }
} }
</style> </style>

View File

@ -26,14 +26,8 @@
<view class="left"> <view class="left">
<view class="cir"> <view class="cir">
<u--image <u--image class="u_avatar" :showLoading="true" :src="'../../static/img/public/man.png'"
class="u_avatar" width="112.28rpx" height="112.28rpx" shape="circle"></u--image>
:showLoading="true"
:src="'../../static/img/public/man.png'"
width="112.28rpx"
height="112.28rpx"
shape="circle"
></u--image>
</view> </view>
</view> </view>
</view> </view>
@ -44,8 +38,7 @@
</template> </template>
<style lang="scss"> <style lang="scss">
.personnel_list {
.personnel_list {
padding: 28rpx 0; padding: 28rpx 0;
margin-bottom: 130rpx; margin-bottom: 130rpx;
@ -57,7 +50,7 @@
border-radius: 30rpx; border-radius: 30rpx;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); // box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
.cards_head { .cards_head {
padding: 28rpx; padding: 28rpx;
@ -114,6 +107,5 @@
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
} }
</style> </style>