提交 ec2090fc 作者: 方治民

fix: 图片地址路径引用错误

上级 e37655d2
...@@ -88,8 +88,8 @@ ...@@ -88,8 +88,8 @@
channels: [ channels: [
{ {
text: '高品质、即时配送和沉浸式体验构建品牌护城河', text: '高品质、即时配送和沉浸式体验构建品牌护城河',
icon: '/src/static/images/qudao/盒马鲜生.png', icon: '/static/images/qudao/hema.png',
iconLeft: '/src/static/images/qudao/盒马鲜生-左.png', iconLeft: '/static/images/qudao/hema-left.png',
backgroundColor: '#DBF8FF', backgroundColor: '#DBF8FF',
iconColor: '#252772', iconColor: '#252772',
textColor: '#282A74', textColor: '#282A74',
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
}, },
{ {
text: '“不卖隔夜肉”的社区短链模式主打极致新鲜', text: '“不卖隔夜肉”的社区短链模式主打极致新鲜',
icon: '/src/static/images/qudao/钱大妈.png', icon: '/static/images/qudao/qiandama.png',
iconLeft: '/src/static/images/qudao/钱大妈-左.png', iconLeft: '/static/images/qudao/qiandama-左left.png',
backgroundColor: '#FFE8E8', backgroundColor: '#FFE8E8',
iconColor: '#FE0000', iconColor: '#FE0000',
textColor: '#540000', textColor: '#540000',
...@@ -106,8 +106,8 @@ ...@@ -106,8 +106,8 @@
}, },
{ {
text: '商品齐全物美价廉“美团运力”实现万物速达', text: '商品齐全物美价廉“美团运力”实现万物速达',
icon: '/src/static/images/qudao/小象超市.png', icon: '/static/images/qudao/xiaoxiangchaoshi.png',
iconLeft: '/src/static/images/qudao/小象超市-左.png', iconLeft: '/static/images/qudao/xiaoxiangchaoshi-left.png',
backgroundColor: '#E2FFDE', backgroundColor: '#E2FFDE',
iconColor: '#00C53B', iconColor: '#00C53B',
textColor: '#024A18', textColor: '#024A18',
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
}, },
{ {
text: '无与伦比的源头价格和海量品类选择', text: '无与伦比的源头价格和海量品类选择',
icon: '/src/static/images/qudao/红星.png', icon: '/static/images/qudao/hongxing.png',
iconLeft: '/src/static/images/qudao/红星-左.png', iconLeft: '/static/images/qudao/hongxing-left.png',
backgroundColor: '#F5DADD', backgroundColor: '#F5DADD',
iconColor: '#E70E30', iconColor: '#E70E30',
textColor: '#570612', textColor: '#570612',
...@@ -124,8 +124,8 @@ ...@@ -124,8 +124,8 @@
}, },
{ {
text: '畜牧类采购需求大“猪肉垂直”的深度专家', text: '畜牧类采购需求大“猪肉垂直”的深度专家',
icon: '/src/static/images/qudao/牧壹猪.png', icon: '/static/images/qudao/muyizhu.png',
iconLeft: '/src/static/images/qudao/牧壹猪-左.png', iconLeft: '/static/images/qudao/muyizhu-left.png',
backgroundColor: '#C0D1C7', backgroundColor: '#C0D1C7',
iconColor: '#383838', iconColor: '#383838',
textColor: '#223D27', textColor: '#223D27',
...@@ -133,8 +133,8 @@ ...@@ -133,8 +133,8 @@
}, },
{ {
text: '区域性优势明显“区域深耕”织密本地网络', text: '区域性优势明显“区域深耕”织密本地网络',
icon: '/src/static/images/qudao/菜鲜宜.png', icon: '/static/images/qudao/caixianyi.png',
iconLeft: '/src/static/images/qudao/菜鲜宜-左.png', iconLeft: '/static/images/qudao/caixianyi-left.png',
backgroundColor: '#C4F2DE', backgroundColor: '#C4F2DE',
iconColor: '#14AE68', iconColor: '#14AE68',
textColor: '#064529', textColor: '#064529',
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
v-if="pageData.currentTransactionTab === 2 && pageData.supplyInfos.length === 0" v-if="pageData.currentTransactionTab === 2 && pageData.supplyInfos.length === 0"
style="height: 528rpx" style="height: 528rpx"
> >
<fui-empty src="/src/static/images/no-data.png" title="暂无数据" /> <fui-empty src="/static/images/no-data.png" title="暂无数据" />
</view> </view>
<!-- 供应信息列表 --> <!-- 供应信息列表 -->
<template v-for="(info, index) in pageData.supplyInfos" :key="info.id"> <template v-for="(info, index) in pageData.supplyInfos" :key="info.id">
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
v-if="pageData.currentTransactionTab === 1 && pageData.purchaseDemands.length === 0" v-if="pageData.currentTransactionTab === 1 && pageData.purchaseDemands.length === 0"
style="height: 528rpx" style="height: 528rpx"
> >
<fui-empty src="/src/static/images/no-data.png" title="暂无数据" /> <fui-empty src="/static/images/no-data.png" title="暂无数据" />
</view> </view>
<view v-else> <view v-else>
<template v-for="(demand, index) in pageData.purchaseDemands" :key="demand.id"> <template v-for="(demand, index) in pageData.purchaseDemands" :key="demand.id">
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
!isNull(detail) ? '时间: ' + dayjs(detail?.publishDate).format('YYYY年MM月DD日') : '' !isNull(detail) ? '时间: ' + dayjs(detail?.publishDate).format('YYYY年MM月DD日') : ''
}}</text> }}</text>
<view class="mr-1"> <view class="mr-1">
<img v-show="detail?.viewCount" class="mr-1" src="/src/static/images/news/views.png" /> <img v-show="detail?.viewCount" class="mr-1" src="/static/images/news/views.png" />
<text>{{ detail?.viewCount }}</text> <text>{{ detail?.viewCount }}</text>
</view> </view>
</view> </view>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="text-25 mt-1 mb-2">{{ item.title }}</view> <view class="text-25 mt-1 mb-2">{{ item.title }}</view>
<view class="flex justify-between text-25 color-#686868"> <view class="flex justify-between text-25 color-#686868">
<view class="mr-1"> <view class="mr-1">
<img class="mr-1" src="/src/static/images/news/views.png" /> <img class="mr-1" src="/static/images/news/views.png" />
<text>{{ item.viewCount }}</text> <text>{{ item.viewCount }}</text>
</view> </view>
<text>{{ dayjs(item.publishDate).format('MM-DD') }}</text> <text>{{ dayjs(item.publishDate).format('MM-DD') }}</text>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
params: { params: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
classify: null classify: null,
}, // 分页参数 }, // 分页参数
hasMore: true, // 是否还有更多数据 hasMore: true, // 是否还有更多数据
loading: false, // 是否正在加载 loading: false, // 是否正在加载
......
...@@ -221,8 +221,7 @@ ...@@ -221,8 +221,7 @@
} }
onReachBottom(() => { onReachBottom(() => {
console.log('触底了') console.log('触底了')
if (pageData.total <= pageData.employmentList.length) if (pageData.total <= pageData.employmentList.length) return
return
pageData.search.pageNo++ pageData.search.pageNo++
getEmploymentList() getEmploymentList()
}) })
...@@ -232,8 +231,13 @@ return ...@@ -232,8 +231,13 @@ return
<view class="codefun-flex-col page"> <view class="codefun-flex-col page">
<view class="codefun-flex-col codefun-self-stretch"> <view class="codefun-flex-col codefun-self-stretch">
<view class="codefun-mt-14 codefun-flex-row group_2 gap-2"> <view class="codefun-mt-14 codefun-flex-row group_2 gap-2">
<view v-for="tab in pageData.categoryTabs" :key="tab.id" class="codefun-flex-col codefun-justify-start codefun-items-center" <view
:class="[tab.id === pageData.search.type ? 'text-wrapper' : 'text-wrapper_2']" @click="onCategoryTabClick(tab)"> v-for="tab in pageData.categoryTabs"
:key="tab.id"
class="codefun-flex-col codefun-justify-start codefun-items-center"
:class="[tab.id === pageData.search.type ? 'text-wrapper' : 'text-wrapper_2']"
@click="onCategoryTabClick(tab)"
>
<text class="font_2 text_2"> <text class="font_2 text_2">
{{ tab.name }} {{ tab.name }}
</text> </text>
...@@ -242,8 +246,13 @@ return ...@@ -242,8 +246,13 @@ return
<view class="codefun-mt-14 codefun-flex-col group_3"> <view class="codefun-mt-14 codefun-flex-col group_3">
<view class="codefun-flex-row section_2"> <view class="codefun-flex-row section_2">
<view v-for="tab in pageData.employmentTabs" :key="tab.id" class="codefun-flex-col codefun-justify-start codefun-items-center text-50p" <view
:class="[tab.id === pageData.currentEmploymentId ? 'text-wrapper_3' : 'codefun-self-start']" @click="onEmploymentTabClick(tab)"> v-for="tab in pageData.employmentTabs"
:key="tab.id"
class="codefun-flex-col codefun-justify-start codefun-items-center text-50p"
:class="[tab.id === pageData.currentEmploymentId ? 'text-wrapper_3' : 'codefun-self-start']"
@click="onEmploymentTabClick(tab)"
>
<text class="font_2"> <text class="font_2">
{{ tab.name }} {{ tab.name }}
</text> </text>
...@@ -251,41 +260,60 @@ return ...@@ -251,41 +260,60 @@ return
</view> </view>
<view class="codefun-flex-col codefun-relative list"> <view class="codefun-flex-col codefun-relative list">
<view v-if="!pageData.employmentList || pageData.employmentList.length == 0" style="height: 700rpx"> <view v-if="!pageData.employmentList || pageData.employmentList.length == 0" style="height: 700rpx">
<fui-empty marginTop="100" src="/src/static/images/no-data.png" title="暂无数据" /> <fui-empty marginTop="100" src="/static/images/no-data.png" title="暂无数据" />
</view> </view>
<template v-else> <template v-else>
<view class="codefun-flex-col list-item" v-for="item in pageData.employmentList" :key="item.id" @click="onEmploymentItemClick(item)" > <view
class="codefun-flex-col list-item"
v-for="item in pageData.employmentList"
:key="item.id"
@click="onEmploymentItemClick(item)"
>
<view class="codefun-flex-row"> <view class="codefun-flex-row">
<image class="image_7" :src="item.picture" lazy-load /> <image class="image_7" :src="item.picture" lazy-load />
<view class="codefun-flex-col codefun-flex-1 codefun-self-center group_4"> <view class="codefun-flex-col codefun-flex-1 codefun-self-center group_4">
<view class="codefun-flex-row codefun-justify-between codefun-items-center"> <view class="codefun-flex-row codefun-justify-between codefun-items-center">
<text class="codefun-self-start font">{{ item.name }}</text> <text class="codefun-self-start font">{{ item.name }}</text>
<view> <view>
<image class="codefun-self-start image_8" src="/src/static/images/codefun/c98744e63719b5413f260ec6a899ee20.png" /> <image
class="codefun-self-start image_8"
src="/static/images/codefun/c98744e63719b5413f260ec6a899ee20.png"
/>
<text class="codefun-self-start font_3 text_9">{{ item.area }}</text> <text class="codefun-self-start font_3 text_9">{{ item.area }}</text>
</view> </view>
</view> </view>
<view class="codefun-flex-row codefun-justify-between codefun-items-center codefun-self-stretch mt-11" > <view
class="codefun-flex-row codefun-justify-between codefun-items-center codefun-self-stretch mt-11"
>
<view class="flex codefun-items-center gap-1"> <view class="flex codefun-items-center gap-1">
<image class="image_9" src="/src/static/images/time.svg" /> <image class="image_9" src="/static/images/time.svg" />
<text class="font_4">预计{{item.daysDiff || getDaysDiff(item.starttime, item.estimatedendtime)}}</text> <text class="font_4"
>预计{{
item.daysDiff || getDaysDiff(item.starttime, item.estimatedendtime)
}}</text
>
</view> </view>
<view class="flex codefun-items-center gap-1"> <view class="flex codefun-items-center gap-1">
<image class="image_9" src="/src/static/images/person.svg" /> <image class="image_9" src="/static/images/person.svg" />
<text class="font_4">需要{{ item.workers }}</text> <text class="font_4">需要{{ item.workers }}</text>
</view> </view>
<view class="flex codefun-items-center gap-1"> <view class="flex codefun-items-center gap-1">
<image class="image_9" src="/src/static/images/money.svg" /> <image class="image_9" src="/static/images/money.svg" />
<text class="font_4 text_10">{{ item.price }}</text> <text class="font_4 text_10">{{ item.price }}</text>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="codefun-mt-8 codefun-flex-row codefun-justify-between codefun-items-center"> <view class="codefun-mt-8 codefun-flex-row codefun-justify-between codefun-items-center">
<view class="flex-center"> <fui-rate :score="item.urgentdegree" :size="36" /> <view class="flex-center">
<fui-rate :score="item.urgentdegree" :size="36" />
<text class="font_5 ml-1">{{ item.urgentdegree }}</text> <text class="font_5 ml-1">{{ item.urgentdegree }}</text>
</view> </view>
<view v-if="pageData.currentEmploymentId !== 2" class="codefun-flex-col codefun-justify-start codefun-items-center text-wrapper_4" @click.stop="onQuoteClick(item)" > <view
v-if="pageData.currentEmploymentId !== 2"
class="codefun-flex-col codefun-justify-start codefun-items-center text-wrapper_4"
@click.stop="onQuoteClick(item)"
>
<text class="font_6 text_12">我想去</text> <text class="font_6 text_12">我想去</text>
</view> </view>
</view> </view>
......
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
<view class="px-6 pt-4"> <view class="px-6 pt-4">
<view class="w-full h-130rpx pl-3 border-rd-lg bg-#fff flex justify-between items-center"> <view class="w-full h-130rpx pl-3 border-rd-lg bg-#fff flex justify-between items-center">
<view class="w-40% flex flex-row"> <view class="w-40% flex flex-row">
<img src="/src/static/images/codefun/shield.png" /> <img src="/static/images/codefun/shield.png" />
<view class="color-#FFAA1E text-50 line-height-loose">726</view> <view class="color-#FFAA1E text-50 line-height-loose">726</view>
</view> </view>
<view class="w-60%"> <view class="w-60%">
......
<template> <template>
<view class="p-3" style="font-family: '思源黑体'; font-weight: 400;"> <view class="p-3" style="font-family: '思源黑体'; font-weight: 400">
<view class="flex flex-col justify-between mt-1 mb-6"> <view class="flex flex-col justify-between mt-1 mb-6">
<view class="text-35 color-#333333 text-center mb-3">{{ detail?.title }}</view> <view class="text-35 color-#333333 text-center mb-3">{{ detail?.title }}</view>
<view class="flex flex-col text-25 color-#686868"> <view class="flex flex-col text-25 color-#686868">
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
!isNull(detail) ? '时间: ' + dayjs(detail?.publishDate).format('YYYY年MM月DD日') : '' !isNull(detail) ? '时间: ' + dayjs(detail?.publishDate).format('YYYY年MM月DD日') : ''
}}</text> }}</text>
<view class="mr-1"> <view class="mr-1">
<img v-show="detail?.viewCount" class="mr-1" src="/src/static/images/news/views.png" /> <img v-show="detail?.viewCount" class="mr-1" src="/static/images/news/views.png" />
<text>{{ detail?.viewCount }}</text> <text>{{ detail?.viewCount }}</text>
</view> </view>
</view> </view>
...@@ -23,12 +23,17 @@ ...@@ -23,12 +23,17 @@
<view v-show="content.type === 'VIDEO'"> <view v-show="content.type === 'VIDEO'">
<video class="w-full" :src="content.url ? content.url : ''" controls /> <video class="w-full" :src="content.url ? content.url : ''" controls />
</view> </view>
<view v-show="content.type === 'PARAGRAPH'" style="text-indent: 2rem;"> <view v-show="content.type === 'PARAGRAPH'" style="text-indent: 2rem">
<text>{{ content.content }}</text> <text>{{ content.content }}</text>
</view> </view>
<view v-show="content.type === 'IMAGE'"> <view v-show="content.type === 'IMAGE'">
<img class="w-full" :src="content.url ? content.url : ''" /> <img class="w-full" :src="content.url ? content.url : ''" />
<text v-show="content.caption" class="w-full text-25 color-#686868 text-center" style="display: inline-block;">{{ content.caption }}</text> <text
v-show="content.caption"
class="w-full text-25 color-#686868 text-center"
style="display: inline-block"
>{{ content.caption }}</text
>
</view> </view>
</view> </view>
</view> </view>
...@@ -70,7 +75,7 @@ ...@@ -70,7 +75,7 @@
newsApi.addViewCount({ id }) newsApi.addViewCount({ id })
} }
onLoad(async (options) => { onLoad(async (options) => {
await getInfo(options.id) await getInfo(options.id)
}) })
</script> </script>
...@@ -2,16 +2,22 @@ ...@@ -2,16 +2,22 @@
<view class="w-full h-95vh p-2 bg-#E6F5E8"> <view class="w-full h-95vh p-2 bg-#E6F5E8">
<!-- <view class="tag-box"> <!-- <view class="tag-box">
<view class="tag" :class="infoType === 0 ? 'active' : ''" @click="switchNavigate(0)"> <view class="tag" :class="infoType === 0 ? 'active' : ''" @click="switchNavigate(0)">
<img :src="infoType === 0 ? '/src/static/images/news/news-active.png' : '/src/static/images/news/news.png'" /> <img :src="infoType === 0 ? '/static/images/news/news-active.png' : '/static/images/news/news.png'" />
热点新闻 热点新闻
</view> </view>
<view class="tag" :class="infoType === 1 ? 'active' : ''" @click="switchNavigate(1)"> <view class="tag" :class="infoType === 1 ? 'active' : ''" @click="switchNavigate(1)">
<img :src="infoType === 1 ? '/src/static/images/news/policy-active.png' : '/src/static/images/news/policy.png'" /> <img :src="infoType === 1 ? '/static/images/news/policy-active.png' : '/static/images/news/policy.png'" />
农业政策 农业政策
</view> </view>
</view> --> </view> -->
<!-- 列表 --> <!-- 列表 -->
<scroll-view class="w-full h-full" style="font-family: '思源黑体'; font-weight: 400;" scroll-y @scrolltolower="getNewsList(model.params)" :show-scrollbar="false"> <scroll-view
class="w-full h-full"
style="font-family: '思源黑体'; font-weight: 400"
scroll-y
@scrolltolower="getNewsList(model.params)"
:show-scrollbar="false"
>
<view <view
v-for="news in newsList" v-for="news in newsList"
:key="news.id" :key="news.id"
...@@ -23,7 +29,7 @@ ...@@ -23,7 +29,7 @@
<view class="flex flex-row justify-between text-25 color-#686868"> <view class="flex flex-row justify-between text-25 color-#686868">
<text>{{ news.publishDate }}</text> <text>{{ news.publishDate }}</text>
<view class="mr-1"> <view class="mr-1">
<img class="mr-1" src="/src/static/images/news/views.png" /> <img class="mr-1" src="/static/images/news/views.png" />
<text>{{ news.viewCount }}</text> <text>{{ news.viewCount }}</text>
</view> </view>
</view> </view>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import * as NongjifuwuAPI from '@/api/model/nongjifuwu' import * as NongjifuwuAPI from '@/api/model/nongjifuwu'
import Navigate from '@/utils/page/navigate' import Navigate from '@/utils/page/navigate'
import { s } from 'vite/dist/node/types.d-aGj9QkWt' import { s } from 'vite/dist/node/types.d-aGj9QkWt'
import { getDictData, getText } from '@/utils/dict/area' import { getDictData, getText } from '@/utils/dict/area'
onLoad((option) => { onLoad((option) => {
...@@ -105,8 +105,6 @@ import { s } from 'vite/dist/node/types.d-aGj9QkWt' ...@@ -105,8 +105,6 @@ import { s } from 'vite/dist/node/types.d-aGj9QkWt'
applyDialogRef.value.open(item) applyDialogRef.value.open(item)
} }
function handleChangeAddress(e) { function handleChangeAddress(e) {
pageData.search.scope = e.value.join(',') pageData.search.scope = e.value.join(',')
pageData.show.address = false pageData.show.address = false
...@@ -159,7 +157,7 @@ import { s } from 'vite/dist/node/types.d-aGj9QkWt' ...@@ -159,7 +157,7 @@ import { s } from 'vite/dist/node/types.d-aGj9QkWt'
class="codefun-flex-col codefun-relative section_4" class="codefun-flex-col codefun-relative section_4"
style="height: 700rpx" style="height: 700rpx"
> >
<fui-empty marginTop="100" src="/src/static/images/no-data.png" title="暂无数据" /> <fui-empty marginTop="100" src="/static/images/no-data.png" title="暂无数据" />
</view> </view>
<view class="codefun-flex-col codefun-relative section_4"> <view class="codefun-flex-col codefun-relative section_4">
<view class="codefun-flex-row group_6" v-for="item in pageData.farmMachineList" :key="item.id"> <view class="codefun-flex-row group_6" v-for="item in pageData.farmMachineList" :key="item.id">
......
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
</view> </view>
<view class="codefun-mt-6 codefun-flex-col codefun-self-stretch"> <view class="codefun-mt-6 codefun-flex-col codefun-self-stretch">
<view v-if="!pageData.products || pageData.products.length == 0" style="height: 700rpx"> <view v-if="!pageData.products || pageData.products.length == 0" style="height: 700rpx">
<fui-empty marginTop="100" src="/src/static/images/no-data.png" title="暂无数据" /> <fui-empty marginTop="100" src="/static/images/no-data.png" title="暂无数据" />
</view> </view>
<template v-else> <template v-else>
<view <view
......
...@@ -85,15 +85,15 @@ ...@@ -85,15 +85,15 @@
actionText: '', actionText: '',
icon: { icon: {
1: { 1: {
icon: '/src/static/images/codefun/doc_img.png', icon: '/static/images/codefun/doc_img.png',
name: '文档格式', name: '文档格式',
}, },
2: { 2: {
icon: '/src/static/images/codefun/elx_img.png', icon: '/static/images/codefun/elx_img.png',
name: '表格格式', name: '表格格式',
}, },
3: { 3: {
icon: '/src/static/images/codefun/pdf_img.png', icon: '/static/images/codefun/pdf_img.png',
name: 'PDF格式', name: 'PDF格式',
}, },
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论