Browse Source

优化样式

master
DX 5 days ago
parent
commit
a02ff4cb24
  1. 8
      components/cs-emty/index.vue
  2. 4
      config.js
  3. 6
      pages/enterprise.vue
  4. 10
      pages/index.vue
  5. 2
      pages/login.vue
  6. 2
      sub/chat/index.vue
  7. 8
      sub/invite/addEnterprise.vue
  8. 1447
      sub/task/detail.vue

8
components/cs-emty/index.vue

@ -1,5 +1,5 @@
<template> <template>
<view class="cs-empty" :style="{ marginTop: marginTop + 'rpx' }"> <view class="cs-empty" :style="{ marginTop: marginTop + 'rpx', height }">
<image <image
class="empty-image" class="empty-image"
src="/static/images/emty.png" src="/static/images/emty.png"
@ -23,6 +23,10 @@ export default {
marginTop: { marginTop: {
type: Number, type: Number,
default: 0 default: 0
},
height: {
type: String,
default: '856rpx'
} }
} }
} }
@ -35,7 +39,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #fff; background-color: #fff;
height: 856rpx;
border-radius: 24rpx; border-radius: 24rpx;
gap: 24rpx; gap: 24rpx;
.empty-image { .empty-image {

4
config.js

@ -2,8 +2,8 @@
module.exports = { module.exports = {
// baseUrl: 'http://188.188.5.188:48080', // baseUrl: 'http://188.188.5.188:48080',
// baseUrl: 'https://www.jzce.com', // baseUrl: 'https://www.jzce.com',
baseUrl: 'https://yxsthj.cn', // baseUrl: 'https://yxsthj.cn',
// baseUrl: 'http://188.188.3.232:48080', baseUrl: 'http://188.188.3.232:48080',
// baseUrl: 'http://localhost:48080', // baseUrl: 'http://localhost:48080',
baseApi: '/admin-api', baseApi: '/admin-api',
// 应用信息 // 应用信息

6
pages/enterprise.vue

@ -70,7 +70,9 @@
:src="enterprise.files[0].url" :src="enterprise.files[0].url"
shape="square" shape="square"
size="64" size="64"
v-if="enterprise.files.length > 0"
></u-avatar> ></u-avatar>
<view v-else style="min-width: 128rpx;height:128rpx; border-radius:8rpx; background-color: #f9f9f9"></view>
<view class="wd-flex wd-flex-col"> <view class="wd-flex wd-flex-col">
<text <text
class="wd-font-800 wd-text-15" class="wd-font-800 wd-text-15"
@ -120,7 +122,7 @@
待审核 待审核
</view> </view>
</view> </view>
<cs-emty v-if="list.length == 0"></cs-emty> <cs-emty marginTop="24" v-if="list.length == 0"></cs-emty>
<u-loadmore <u-loadmore
:status="load" :status="load"
marginTop="12" marginTop="12"
@ -272,7 +274,7 @@ export default {
this.queryEnterprise() this.queryEnterprise()
}, },
handleSearch(e) { handleSearch(e) {
if (e.detail && e.detail.length > 1) { if (e.detail && e.detail.length > 0) {
this.queryParams.pageNo = 1 // this.queryParams.pageNo = 1 //
this.queryParams.enterprisesName = e.detail // this.queryParams.enterprisesName = e.detail //
this.queryEnterprise() this.queryEnterprise()

10
pages/index.vue

@ -6,7 +6,7 @@
<van-dropdown-item <van-dropdown-item
:value="queryParams.region" :value="queryParams.region"
:options="dropOption.area" :options="dropOption.area"
title="按乡镇" title="按区域"
@change=" @change="
v => { v => {
querySelect(v, 'region') querySelect(v, 'region')
@ -34,6 +34,9 @@
:refresher-triggered="refresherTriggered" :refresher-triggered="refresherTriggered"
@refresherpulling="refresherpulling" @refresherpulling="refresherpulling"
> >
<view class="box row-1"> <view class="box row-1">
<view <view
class="wd-flex" class="wd-flex"
@ -80,7 +83,12 @@
<view style="color: #4b5675">企业数量</view> <view style="color: #4b5675">企业数量</view>
</view> </view>
</view> </view>
<cs-emty marginTop="0"
v-if="detail.enterpriseCount == 0"
height="288rpx"
></cs-emty>
<qiun-data-charts <qiun-data-charts
v-if="detail.enterpriseCount > 0"
type="ring" type="ring"
:opts="opts" :opts="opts"
:chartData="chartData" :chartData="chartData"

2
pages/login.vue

@ -115,7 +115,7 @@ export default {
} }
uni.switchTab({ uni.switchTab({
url: '/pages/owner' url: '/pages/index'
}) })
} }
} }

2
sub/chat/index.vue

@ -1,5 +1,5 @@
<template> <template>
<web-view src="https://yxsthj.cn/chat/313cf9e35628923a"></web-view> <web-view src="https://mb.yxsthj.cn/chat/313cf9e35628923a"></web-view>
<!-- <web-view src="https://chat.deepseek.com/"></web-view> --> <!-- <web-view src="https://chat.deepseek.com/"></web-view> -->
</template> </template>

8
sub/invite/addEnterprise.vue

@ -499,6 +499,7 @@ export default {
} }
}) })
const load = this.$util.loading('上传中...') const load = this.$util.loading('上传中...')
if (this.form.id) { if (this.form.id) {
updateEnterprise(data).then(res => { updateEnterprise(data).then(res => {
load.close() load.close()
@ -552,6 +553,13 @@ export default {
}) })
return false return false
} }
if (this.form.photo.length == 0) {
uni.showToast({
icon: 'none',
title: '请上传企业照片'
})
return false
}
return true return true
}, },
/** /**

1447
sub/task/detail.vue

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save