123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <template>
- <view class="content">
- <view class="box">
- <view class="hflex acenter cell">
- <u-avatar :src="pageData.user.headimg"></u-avatar>
- <view class="name text_hide">{{pageData.name}}</view>
- </view>
- <view class="hflex acenter cell">
- <u-icon name="phone-fill" color="#666666" size="14"></u-icon>
- <view class="text_style1">{{pageData.phone}}</view>
- <image src="@/static/images/comment/sp_call_phone.png" mode="aspectFill" style="width: 28rpx;height: 28rpx;margin-left: 20rpx;"@click="tell"></image>
- </view>
- <view class="hflex acenter cell">
- <u-icon name="email-fill" color="#666666" size="14"></u-icon>
- <view class="text_style1">{{pageData.email}}<span class="copy" @click="copy"> | 复制</span></view>
- </view>
- <view class="hflex acenter cell">
- <image src="https://ship.shipcc.cn/common/company.png" class="icon"></image>
- <view class="text_style1">{{pageData.company_name}}</view>
- </view>
- <view class="hflex acenter cell">
- <u-icon name="map-fill" color="#666666" size="14"></u-icon>
- <view class="text_style1">{{pageData.address}}</view>
- </view>
- </view>
- <view class="box">
- <view class="title cell">营业执照照片</view>
- <image :src="pageData.business_img" mode="aspectFill" class="img1 cell"></image>
- <view class="line"></view>
- <view class="title cell">身份证正反面</view>
- <view class="hflex acenter jbetween cell">
- <image :src="pageData.id_card_zheng" mode="aspectFill" class="img2"></image>
- <image :src="pageData.id_card_fan" mode="aspectFill" class="img2"></image>
- </view>
- </view>
- <view class="box" style="margin-bottom: 72rpx;">
- <view class="title cell">工作简历</view>
- <view class="cell text_style2">{{pageData.job_resume}}</view>
- <view class="line"></view>
- <view class="title cell">维修特长</view>
- <view class="cell text_style2">{{pageData.specialty}}</view>
- </view>
- </view>
- </template>
- <script>
- import $api from '@/static/js/api.js'
- var that = ''
- export default {
- data() {
- return {
- pageData: {
-
- },
- id: ''
- }
- },
- onLoad(options) {
- that = this
- that.id = options.id
- that.getData()
- },
- methods: {
- getData() {
- $api.req({
- url: '/data/api.auth.ShipEngineMaintenance/acceptancedetail',
- method: 'POST',
- data: {
- id: that.id
- }
- }, function(res) {
- if(res.code == 1) {
- that.pageData = res.data
- }
- })
- },
- tell() {
- uni.makePhoneCall({
- phoneNumber: that.pageData.phone //仅为示例
- });
- },
- copy() {
- uni.setClipboardData({
- data: that.pageData.email,
- success: function () {
- $api.info('复制成功')
- }
- });
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- .content {
- background: url('https://ship.shipcc.cn/common/background.png') #F4F4F4 no-repeat;
- background-size: 100%;
- padding: 0 30rpx;
- .box {
- background: #FFFFFF;
- border-radius: 10px;
- box-sizing: border-box;
- padding: 0 20rpx 15rpx;
- margin-top: 20rpx;
- .cell {
- padding: 14rpx 0;
- .icon {
- width: 28rpx;
- height: 28rpx;
- }
- }
- .name {
- max-width: 500rpx;
- font-size: 30rpx;
- font-weight: 500;
- color: #222222;
- line-height: 42rpx;
- padding-left: 20rpx;
- }
- .text_style1 {
- font-size: 26rpx;
- font-weight: 400;
- color: #222222;
- line-height: 30rpx;
- padding-left: 20rpx;
- }
- .copy {
- font-size: 24rpx;
- font-weight: 400;
- color: #506DFF;
- line-height: 34rpx;
- padding-left: 8rpx;
- }
- .title {
- font-size: 28rpx;
- font-weight: 500;
- color: #222222;
- line-height: 40rpx;
- }
- .img1 {
- width: 100%;
- height: 400rpx;
- border-radius: 12rpx;
- }
- .line {
- width: 100%;
- height: 1rpx;
- background: #F4F4F4;
- }
- .img2 {
- width: 310rpx;
- height: 228rpx;
- border-radius: 12rpx;
- }
- .text_style2 {
- font-size: 26rpx;
- font-weight: 400;
- color: #222222;
- line-height: 36rpx;
- }
- }
- }
- </style>
|