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

3
sub/invite/index.vue

@ -95,6 +95,7 @@
<script>
import { vertifyName } from '@/api/enterprise/index.js'
import { getTagData, getDictBatchByType } from '@/api/system/dict.js'
import config from '@/config'
export default {
data() {
return {
@ -104,7 +105,7 @@ export default {
share: {
title: '企业变更管理', //
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 { getEnterPrise } from '@/api/enterprise/index.js'
import { getMiniCode as getMiniappCode } from '@/api/login.js'
import config from '@/config'
export default {
data() {
return {
@ -187,7 +188,7 @@ export default {
this.share = {
title: '',
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()
},

Loading…
Cancel
Save