| | |
| | | <template> |
| | | <view> |
| | | <img src="/static/head.png" class="head" alt="" /> |
| | | <view class="hqzc"> |
| | | <view class="hqzc" @click="more1()"> |
| | | <img src="/static/hqzc.png" class="img" alt="" /> |
| | | <view class="line"></view> |
| | | <view class="font"> |
| | | <p v-for="(item,index) in list1" :key="index">{{item.docTitle}}</p> |
| | | <p v-for="(item,index) in list1" class="u-line-1" :key="index">{{item.docTitle}}</p> |
| | | </view> |
| | | <img src="/static/i06.png" class="more" @click="more1()" alt="" /> |
| | | <img src="/static/i06.png" class="more" alt="" /> |
| | | </view> |
| | | <view class="wbox"> |
| | | <view class="name"> |
| | | {{msg.companyUser}} |
| | | {{msg.companyName}} |
| | | </view> |
| | | <view class="imgbox"> |
| | | <image :src="uqrcodeImage" mode="widthFix" class="qrcode-1"></image> |
| | |
| | | |
| | | </view> |
| | | <view style="height: 50rpx;"></view> |
| | | <uqrcode class="hide-canvas" :size="470" sizeUnit="rpx" v-if="companyCode" ref="uqrcode" canvas-id="qrcode" :value="companyCode" :options="{ backgroundColor: '#000000',useDynamicSize: true, areaColor: '#ffffff', foregroundColor: '#ffffff' }"></uqrcode> |
| | | <uqrcode :errorCorrectLevel="1" class="hide-canvas" :size="470" sizeUnit="rpx" v-if="companyCode" ref="uqrcode" canvas-id="qrcode" :value="companyCode" :options="{ backgroundColor: '#000000',useDynamicSize: true, areaColor: '#ffffff', foregroundColor: '#ffffff' }"></uqrcode> |
| | | <tabsCom :activeNumber.sync="activeNumber"></tabsCom> |
| | | |
| | | </view> |
| | |
| | | import tabsCom from '@/qiye/components/bottom.vue' |
| | | import { docList } from '@/api/index.js' |
| | | import { company } from '@/api/qiye.js' |
| | | |
| | | import { getInfo as httoInfo} from '@/api/auth.js' |
| | | export default { |
| | | components: { |
| | | tabsCom |
| | | }, |
| | | onShow() { |
| | | this.getInfo() |
| | | this.httoInfo() |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | } |
| | | }, |
| | | onReady() { |
| | | this.$refs.uqrcode.toTempFilePath({ |
| | | success: res => { |
| | | this.uqrcodeImage = res.tempFilePath |
| | | } |
| | | }); |
| | | |
| | | }, |
| | | onLoad(options) { |
| | | this.companyId = options.id||33 |
| | | // if(options.id) { |
| | | // this.companyId = options.id||33 |
| | | // } |
| | | // else { |
| | | // this.companyId = uni.getStorageSync('qiyedata').companyId |
| | | // } |
| | | |
| | | }, |
| | | methods: { |
| | | httoInfo() { |
| | | httoInfo().then(val => { |
| | | console.log(val.data.data.deptId) |
| | | this.companyId = val.data.data.deptId |
| | | this.getInfo() |
| | | }) |
| | | }, |
| | | more1(){ |
| | | uni.navigateTo({ |
| | | url: `/pages/hqzc/list` |
| | |
| | | }) |
| | | company(this.companyId).then(val => { |
| | | this.msg = val.data.data |
| | | console.log(this.msg) |
| | | |
| | | this.companyCode = this.msg.companyCode |
| | | uni.setStorageSync('qiyedata', this.msg) |
| | | setTimeout(() => { |
| | | this.$refs.uqrcode.toTempFilePath({ |
| | | success: res => { |
| | | this.uqrcodeImage = res.tempFilePath |
| | | } |
| | | }); |
| | | }, 500) |
| | | // this.msg.createTime = this.msg.createTime.slice(0, 10) |
| | | // this.msg.docContent = decodeURIComponent(this.msg.docContent) |
| | | // console.log(this.msg.docContent) |
| | |
| | | color: #4A4E60; |
| | | margin-right: 50rpx; |
| | | width: 450rpx; |
| | | text-align: center; |
| | | // text-align: center; |
| | | } |
| | | } |
| | | .hide-canvas{ |