Browse Source

优化图片链接配置,使用config.baseUrl替换硬编码地址,调整通知样式

master
parent
commit
536692a09b
  1. 23
      pages/owner.vue
  2. 3
      sub/invite/index.vue
  3. 3
      sub/task/locate.vue

23
pages/owner.vue

@ -58,7 +58,6 @@
color="#fff" color="#fff"
></u-count-to> ></u-count-to>
</view> </view>
<u-icon name="arrow-right" color="#C4CADA"></u-icon> <u-icon name="arrow-right" color="#C4CADA"></u-icon>
</view> </view>
</view> </view>
@ -169,6 +168,7 @@ import { getUserProfile } from '@/api/system/user.js'
import { PolicyApi, formatPolicyContext } from '@/api/policy/index.js' import { PolicyApi, formatPolicyContext } from '@/api/policy/index.js'
import { JobInfoApi } from '@/api/jobinfo/index.js' import { JobInfoApi } from '@/api/jobinfo/index.js'
import { NoticApi } from '@/api/common/notic.js' import { NoticApi } from '@/api/common/notic.js'
import config from '@/config'
export default { export default {
data() { data() {
return { return {
@ -204,7 +204,9 @@ export default {
getUserProfile().then(res => { getUserProfile().then(res => {
this.user = res.data this.user = res.data
}) })
const notic = await NoticApi.getListData({ readStatus: false }) const notic = await NoticApi.getListData({
readStatus: false
})
this.policyTotal = notic.data.total this.policyTotal = notic.data.total
const job = await JobInfoApi.getJobInfoPage() const job = await JobInfoApi.getJobInfoPage()
this.jobCount = job.data.total this.jobCount = job.data.total
@ -213,7 +215,7 @@ export default {
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
//ID //ID
tmplIds: [ tmplIds: [
'2Mfm2TRKwEP4jF_wRaQQ6EfuhHO5c1CQhKiWAl-cm9g', 'rU3gtJiN9OcQ3GMTxF5oMwwXVRBrIrSMfve0FLD4TIA',
'DcXH1Zo78EoG25771zxR0JcsUj8TTbG-Go3yT8YAszM', 'DcXH1Zo78EoG25771zxR0JcsUj8TTbG-Go3yT8YAszM',
'E8RK91cPLMios6ZHoKx6FJOV4H2kodx6yPWYp7jpLJY' 'E8RK91cPLMios6ZHoKx6FJOV4H2kodx6yPWYp7jpLJY'
], ],
@ -234,7 +236,7 @@ export default {
this.share = { this.share = {
title: '邀请企业入驻', // title: '邀请企业入驻', //
path: `/pages/login?inviteId=${this.$store.getters.userId}`, path: `/pages/login?inviteId=${this.$store.getters.userId}`,
imageUrl: 'https://hb.jzce.com/fx_qyrz.png' imageUrl: config.baseUrl + '/fx_qyrz.png'
} }
}, },
callPhone() { callPhone() {
@ -252,13 +254,16 @@ export default {
flex-flow: row nowrap; flex-flow: row nowrap;
gap: 20rpx; gap: 20rpx;
align-items: center; align-items: center;
.title { .title {
font-size: 32rpx; font-size: 32rpx;
} }
} }
.owner-container { .owner-container {
padding: 32rpx; padding: 32rpx;
height: 100%; height: 100%;
.dept { .dept {
font-size: 24rpx; font-size: 24rpx;
background-color: #17c653; background-color: #17c653;
@ -266,6 +271,7 @@ export default {
padding: 4rpx 16rpx; padding: 4rpx 16rpx;
border-radius: 240rpx; border-radius: 240rpx;
} }
.section { .section {
border-radius: 16rpx; border-radius: 16rpx;
background: #fff; background: #fff;
@ -273,18 +279,21 @@ export default {
padding: 48rpx; padding: 48rpx;
font-size: 28rpx; font-size: 28rpx;
} }
.moblie { .moblie {
color: $uni-text-color-grey; color: $uni-text-color-grey;
} }
.notice-wrapper { .notice-wrapper {
height: 45rpx; padding: 4rpx 12rpx;
width: 45rpx; height: 40rpx;
background-color: #17c653; background-color: #17c653;
border-radius: 50%; border-radius: 240rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.row { .row {
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;

3
sub/invite/index.vue

@ -95,6 +95,7 @@
<script> <script>
import { vertifyName } from '@/api/enterprise/index.js' import { vertifyName } from '@/api/enterprise/index.js'
import { getTagData, getDictBatchByType } from '@/api/system/dict.js' import { getTagData, getDictBatchByType } from '@/api/system/dict.js'
import config from '@/config'
export default { export default {
data() { data() {
return { return {
@ -104,7 +105,7 @@ export default {
share: { share: {
title: '企业变更管理', // title: '企业变更管理', //
path: `/sub/invite/index?inviteId=${this.$store.getters.userId}`, path: `/sub/invite/index?inviteId=${this.$store.getters.userId}`,
imageUrl: 'https://hb.jzce.com/fx_bggl.png' imageUrl: config.baseUrl + '/fx_bggl.png'
} }
} }
}, },

3
sub/task/locate.vue

@ -146,6 +146,7 @@ import { getMiniCode } from '@/utils/getCode.js'
import { InspectionsApi } from '@/api/inspections/index.js' import { InspectionsApi } from '@/api/inspections/index.js'
import { getEnterPrise } from '@/api/enterprise/index.js' import { getEnterPrise } from '@/api/enterprise/index.js'
import { getMiniCode as getMiniappCode } from '@/api/login.js' import { getMiniCode as getMiniappCode } from '@/api/login.js'
import config from '@/config'
export default { export default {
data() { data() {
return { return {
@ -187,7 +188,7 @@ export default {
this.share = { this.share = {
title: '', title: '',
path: `/sub/task/locate?inspectionsId=${this.inspectionsId}&enterpriseId=${this.enterpriseId}`, path: `/sub/task/locate?inspectionsId=${this.inspectionsId}&enterpriseId=${this.enterpriseId}`,
imageUrl: 'https://hb.jzce.com/fx_zfqd.png' imageUrl: config.baseUrl + '/fx_zfqd.png'
} }
await this.init() await this.init()
}, },

Loading…
Cancel
Save