flat: 基础修改

This commit is contained in:
Apcallover
2024-04-14 14:32:17 +08:00
parent c4f62b6efb
commit 05686b2bba
11 changed files with 4459 additions and 4193 deletions

View File

@@ -93,14 +93,10 @@ export const findTradeList = () => {
}) })
} }
export const addInviteCompanyAuth = ({ export const addInviteCompanyAuth = (params) => {
params,
data
}) => {
return request({ return request({
url: '/api/jobslink-api/tenant/company/app/inviteCompany/auth', url: '/api/jobslink-api/tenant/company/app/inviteCompany/auth',
method: 'post', method: 'post',
data,
params params
}) })
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1494
pages.json

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@
<view class="headd_left"> <view class="headd_left">
<u-icon name="search" color="#2297fa" size="24"></u-icon> <u-icon name="search" color="#2297fa" size="24"></u-icon>
<input placeholder-class="search_style" type="text" confirm-type="搜索" v-model="keywords" <input placeholder-class="search_style" type="text" confirm-type="搜索" v-model="keywords"
placeholder="搜任务/搜岗位/搜个体户招工/搜政策" /> placeholder="搜任务/搜岗位/搜政策" />
</view> </view>
<view class="headd_right"> <view class="headd_right">
搜索 搜索

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
<template> <template>
<view class=""> <view class="">
<view class="content"> <view class="content">
<u--form labelPosition="left" :model="formData" :rules="rules" ref="uForm"> <u--form labelPosition="left" :model="formData" :rules="rules" ref="formOne">
<view class="card"> <view class="card">
<view class="card_title">企业信息</view> <view class="card_title">企业信息</view>
<u-form-item label="企业名称" labelWidth="100" prop="comname" borderBottom ref="item1"> <u-form-item label="企业名称" labelWidth="100" prop="comname" borderBottom ref="item1">
@@ -40,7 +40,8 @@
</u-form-item> </u-form-item>
<u-form-item label="企业介绍" labelWidth="100" labelPosition="top" prop="companyDesc" borderBottom <u-form-item label="企业介绍" labelWidth="100" labelPosition="top" prop="companyDesc" borderBottom
ref="item1"> ref="item1">
<u--textarea v-model="formData.companyDesc" placeholder="请输入内容"></u--textarea> <u--textarea v-model="formData.companyDesc" placeholder="请输入企业介绍" count
maxlength="200"></u--textarea>
</u-form-item> </u-form-item>
</view> </view>
<view class="card"> <view class="card">
@@ -56,11 +57,18 @@
<view class="card"> <view class="card">
<view class="card_title">相关资料</view> <view class="card_title">相关资料</view>
<view class="card_content"> <view class="card_content">
<UploadIdNumber v-model="formData.identityUrl4Id" backImg="/static/img/idcard.png"> <u-form-item labelWidth="100" prop="identityUrl4Id">
</UploadIdNumber> <UploadIdNumber v-model="formData.identityUrl4Id" backImg="/static/img/idcard.png">
<UploadIdNumber v-model="formData.identityUrl5Id" backImg="/static/img/backidcard1.png"> </UploadIdNumber>
</UploadIdNumber> </u-form-item>
<UploadIdNumber v-model="formData.authUrlId" backImg="/static/img/idcard.png"></UploadIdNumber> <u-form-item labelWidth="100" prop="identityUrl5Id">
<UploadIdNumber v-model="formData.identityUrl5Id" backImg="/static/img/backidcard1.png">
</UploadIdNumber>
</u-form-item>
<u-form-item labelWidth="100" prop="authUrlId">
<UploadIdNumber v-model="formData.authUrlId" backImg="/static/img/idcard.png">
</UploadIdNumber>
</u-form-item>
</view> </view>
</view> </view>
@@ -80,10 +88,98 @@
import { import {
addInviteCompanyAuth addInviteCompanyAuth
} from '@/api/userrecruit.js' } from '@/api/userrecruit.js'
const rules = []
import { import {
mapState mapState
} from 'vuex' } from 'vuex'
const rules = {
comname: {
type: 'string',
required: true,
message: '请输入企业名称',
trigger: ['change']
},
companyTid: {
type: 'string',
required: true,
message: '请输入统一信用代码',
trigger: ['change']
},
masterName: {
type: 'string',
required: true,
message: '请输入法人姓名',
trigger: ['change']
},
masterIdentity: {
type: 'string',
required: true,
pattern: /^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[Xx\d]$/,
message: '请输入法人身份证号',
trigger: ['change']
},
cityId: {
type: 'string',
required: true,
message: '请选择所在地区',
trigger: ['change']
},
companyAddress: {
type: 'string',
required: true,
message: '请输入详细地址',
trigger: ['change']
},
nature: {
type: 'string',
required: true,
message: '请选择企业性质',
trigger: ['change']
},
tradeId: {
type: 'string',
required: true,
message: '请选择行业',
trigger: ['change']
},
companyDesc: {
type: 'string',
min: 20,
required: true,
message: '请输入企业介绍最少20个字符',
trigger: ['change']
},
manager: {
type: 'string',
required: true,
message: '请输入联系人',
trigger: ['change']
},
telphone: {
type: 'string',
required: true,
pattern: /^1[3-9]{1}[0-9]{9}$/,
message: '请输入手机号码',
trigger: ['change']
},
identityUrl4Id: {
type: 'string',
required: true,
message: '请上传法人身份证(人像)',
trigger: ['change']
},
identityUrl5Id: {
type: 'string',
required: true,
message: '请上传法人身份证(国徽)',
trigger: ['change']
},
authUrlId: {
type: 'string',
required: true,
message: '请上传企业营业执照',
trigger: ['change']
},
}
export default { export default {
components: { components: {
UploadIdNumber, UploadIdNumber,
@@ -108,28 +204,29 @@
created() { created() {
this.formData.manager = this.authInfo.realName this.formData.manager = this.authInfo.realName
this.formData.idNumber = this.authInfo.idNumber this.formData.idNumber = this.authInfo.idNumber
console.log(this.authInfo)
console.log(this.userInfo)
}, },
methods: { methods: {
hideKeyboard() { hideKeyboard() {
uni.hideKeyboard() uni.hideKeyboard()
}, },
async submit() { async submit() {
let data = { const _this = this
...this.formData, this.$refs.formOne.validate().then(res => {
nature: Number(this.formData.nature), _this.$api.msg('提交数据')
cityId: Number(this.formData.cityId), }).catch(errors => {
tradeId: Number(this.formData.tradeId), _this.$api.msg('请完善内容')
}
let params = {
// auth: this.authInfo.authValue
}
let resData = await addInviteCompanyAuth({
params,
data
}) })
console.log(resData) // let params = {
// ...this.formData,
// nature: Number(this.formData.nature),
// cityId: Number(this.formData.cityId),
// tradeId: Number(this.formData.tradeId),
// }
// let resData = await addInviteCompanyAuth(params)
// console.log(resData)
// if (resData.data.code === 200) {
// _this.$api.msg('已完成企业信息认证')
// }
}, },
reset() { reset() {
const _this = this const _this = this

View File

@@ -1,426 +1,448 @@
<template> <template>
<view class="mainWrapper"> <view class="mainWrapper">
<view v-show="!searchResultShow" class="headSearch"> <view v-show="!searchResultShow" class="headSearch">
<view class="search-view"> <view class="search-view">
<view class="search-item"> <view class="search-item">
<image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx;" mode=""></image> <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx;" mode=""></image>
<input type="text" confirm-type="搜索" v-model="keywords" @confirm="getNewList('search')" <input type="text" confirm-type="搜索" v-model="keywords" @confirm="getNewList('search')"
placeholder="搜任务/搜岗位/搜个体户招工/搜政策" /> placeholder="搜任务/搜岗位/搜政策" />
<view @click="getNewList('search')" style="width: 80rpx;height: 50rpx;color:#fff;background-color: #0091ff;font-size:24rpx;text-align: center;line-height: 50rpx;border-radius: 25rpx;;">搜索</view> <view @click="getNewList('search')"
</view> style="width: 80rpx;height: 50rpx;color:#fff;background-color: #0091ff;font-size:24rpx;text-align: center;line-height: 50rpx;border-radius: 25rpx;;">
<!-- <view class="close" @click="closeBack"> 搜索</view>
取消 </view>
</view> --> <!-- <view class="close" @click="closeBack">
</view> 取消
</view> </view> -->
<view v-show="searchResultShow" class="headSearch"> </view>
<view class="search-view"> </view>
<view class="search-item" @click="clearCurrentKeyWords"> <view v-show="searchResultShow" class="headSearch">
<!-- <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx;" mode=""></image> --> <view class="search-view">
<!-- <input type="text" confirm-type="搜索" v-model="keywords" @confirm="getNewList('search')" <view class="search-item" @click="clearCurrentKeyWords">
placeholder="搜任务/搜岗位/搜政策" /> --> <!-- <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx;" mode=""></image> -->
<!-- <view @click="getNewList('search')" style="width: 80rpx;height: 50rpx;color:#fff;background-color: #0091ff;font-size:24rpx;text-align: center;line-height: 50rpx;border-radius: 25rpx;;">搜索</view> --> <!-- <input type="text" confirm-type="搜索" v-model="keywords" @confirm="getNewList('search')"
<view style="font-size: 24rpx;height: 50rpx;background-color: #ddd;border-radius: 25rpx;line-height: 50rpx;padding: 0 20rpx;padding-right: 40rpx;position:relative;"> placeholder="搜任务/搜岗位/搜政策" /> -->
{{ keywords }} <!-- <view @click="getNewList('search')" style="width: 80rpx;height: 50rpx;color:#fff;background-color: #0091ff;font-size:24rpx;text-align: center;line-height: 50rpx;border-radius: 25rpx;;">搜索</view> -->
<u-icon name="close" size="14" style="position:absolute;right:10rpx;top:13rpx;"></u-icon> <view
</view> style="font-size: 24rpx;height: 50rpx;background-color: #ddd;border-radius: 25rpx;line-height: 50rpx;padding: 0 20rpx;padding-right: 40rpx;position:relative;">
{{ keywords }}
</view> <u-icon name="close" size="14" style="position:absolute;right:10rpx;top:13rpx;"></u-icon>
</view>
</view>
</view> </view>
<view v-show="searchResultShow" class="search-result">
<view class="title">搜索结果</view> </view>
<view v-for="(item, index) in searchResultList" class="search-item" @click="toDetail(item)"> </view>
<image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx;margin-right: 10rpx;" mode=""></image> <view v-show="searchResultShow" class="search-result">
<view style="flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{ item.name }}</view> <view class="title">搜索结果</view>
<view class="type" v-if="item.type == 0">任务</view> <view v-for="(item, index) in searchResultList" class="search-item" @click="toDetail(item)">
<view class="type" v-else-if="item.type == 1">岗位</view> <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx;margin-right: 10rpx;"
<view class="type" v-else-if="item.type == 2">政策</view> mode=""></image>
<view class="type" v-else-if="item.type == 3">招工</view> <view style="flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{ item.name }}</view>
</view> <view class="type" v-if="item.type == 0">任务</view>
<view v-if="searchResultList.length > 0" style="text-align: center;font-size: 26rpx;margin-top: 20rpx;color:#999;">没有更多数据了</view> <view class="type" v-else-if="item.type == 1">岗位</view>
<view v-if="searchResultList.length == 0" style="text-align: center;font-size: 26rpx;margin-top: 20rpx;">暂无数据</view> <view class="type" v-else-if="item.type == 2">政策</view>
</view> <view class="type" v-else-if="item.type == 3">招工</view>
<view v-show="!searchResultShow" class="search-history"> </view>
<view class="title">搜索记录</view> <view v-if="searchResultList.length > 0"
<view class="clear" @click="clearKeyWords"> style="text-align: center;font-size: 26rpx;margin-top: 20rpx;color:#999;">没有更多数据了</view>
<image src="../../static/img/delete.png" style="width: 24rpx;height: 24rpx;" mode=""></image> <view v-if="searchResultList.length == 0" style="text-align: center;font-size: 26rpx;margin-top: 20rpx;">
<view style="margin-left: 5rpx;">清空</view> 暂无数据</view>
</view> </view>
<view class="wrapper" v-if="searchHistoryList.length > 0"> <view v-show="!searchResultShow" class="search-history">
<view class="item" v-for="(item, index) in searchHistoryList" @click="keyWordsClick(item.keywords)"> <view class="title">搜索记录</view>
{{ item.keywords }} <view class="clear" @click="clearKeyWords">
</view> <image src="../../static/img/delete.png" style="width: 24rpx;height: 24rpx;" mode=""></image>
</view> <view style="margin-left: 5rpx;">清空</view>
<view v-else class="empty">暂无历史记录</view> </view>
</view> <view class="wrapper" v-if="searchHistoryList.length > 0">
<v-tabs v-show="!searchResultShow" :tabs="['推荐任务', '推荐岗位', '推荐政策']" height="45px" v-model="activeTab" color="#999" activeColor="#000" <view class="item" v-for="(item, index) in searchHistoryList" @click="keyWordsClick(item.keywords)">
fontSize="30rpx" activeFontSize="31rpx" @change='changeTab' /> {{ item.keywords }}
</view>
</view>
<block v-if="(activeTab == 0)&&!searchResultShow"> <view v-else class="empty">暂无历史记录</view>
<view v-if="companyList.length > 0"> </view>
<block v-for="(item, index) in companyList" :key="item.id"> <v-tabs v-show="!searchResultShow" :tabs="['推荐任务', '推荐岗位', '推荐政策']" height="45px" v-model="activeTab"
<companyList :companyitem="item"></companyList> color="#999" activeColor="#000" fontSize="30rpx" activeFontSize="31rpx" @change='changeTab' />
</block>
</view>
<view v-else> <block v-if="(activeTab == 0)&&!searchResultShow">
<image src="../../static/img/pic_notask.svg" mode="" class="nothing"></image> <view v-if="companyList.length > 0">
<view class="nothingContnt"> <block v-for="(item, index) in companyList" :key="item.id">
暂无信息 <companyList :companyitem="item"></companyList>
</view> </block>
</view> </view>
</block> <view v-else>
<block v-if="(activeTab == 1)&&!searchResultShow"> <image src="../../static/img/pic_notask.svg" mode="" class="nothing"></image>
<view v-if="newList.length > 0"> <view class="nothingContnt">
<block v-for="(item, index) in newList" :key="index"> 暂无信息
<companyList :companyitem="item"></companyList> </view>
</block> </view>
</view> </block>
<view v-else> <block v-if="(activeTab == 1)&&!searchResultShow">
<image src="../../static/img/pic_notask.svg" class="nothing" mode=""></image> <view v-if="newList.length > 0">
<view class="nothingContnt">暂无信息</view> <block v-for="(item, index) in newList" :key="index">
</view> <companyList :companyitem="item"></companyList>
</block> </block>
</view>
<view v-else>
<image src="../../static/img/pic_notask.svg" class="nothing" mode=""></image>
<block v-if="(activeTab == 2)&&!searchResultShow"> <view class="nothingContnt">暂无信息</view>
<view v-if="recommendList.length > 0"> </view>
<block v-for="(item, index) in recommendList" :key="item.id"> </block>
<companyList :companyitem="item"></companyList>
</block>
</view>
<block v-if="(activeTab == 2)&&!searchResultShow">
<view v-else> <view v-if="recommendList.length > 0">
<image src="../../static/img/pic_notask.svg" mode="" class="nothing"></image> <block v-for="(item, index) in recommendList" :key="item.id">
<view class="nothingContnt"> <companyList :companyitem="item"></companyList>
完善技能获取精推荐 </block>
</view> </view>
<!-- <view class="btn" @click="goResume">
完善技能 <view v-else>
</view> --> <image src="../../static/img/pic_notask.svg" mode="" class="nothing"></image>
</view> <view class="nothingContnt">
</block> 完善技能获取精推荐
</view>
<!-- <view v-if="companyList.length > 0"> <!-- <view class="btn" @click="goResume">
<block v-for="(item, index) in companyList" :key="item.id"> 完善技能
<companyList :companyitem="item"></companyList> </view> -->
<view class="baddd"></view> </view>
</block> </block>
</view>
<view v-else> <!-- <view v-if="companyList.length > 0">
<image src="../../static/img/pic_notask.svg" mode="" class="nothing"></image> <block v-for="(item, index) in companyList" :key="item.id">
<view class="nothingContnt"> <companyList :companyitem="item"></companyList>
暂无任务信息 <view class="baddd"></view>
</view> </block>
</view> --> </view>
</view> <view v-else>
</template> <image src="../../static/img/pic_notask.svg" mode="" class="nothing"></image>
<view class="nothingContnt">
<script> 暂无任务信息
import { newMissionAll, getSearchKeyWordsList, clearSearchKeyWords, getListByKeyWords } from '@/api/mission.js'; </view>
import companyList from '@/components/companyList/companyList.vue'; </view> -->
import vTabs from '@/components/v-tabs/v-tabs.vue'; </view>
import testData from '@/common/textdata.js'; </template>
export default {
components: { <script>
companyList, import {
vTabs, newMissionAll,
}, getSearchKeyWordsList,
data() { clearSearchKeyWords,
return { getListByKeyWords
activeTab: 0, } from '@/api/mission.js';
companyList: [], import companyList from '@/components/companyList/companyList.vue';
recommendList: [], import vTabs from '@/components/v-tabs/v-tabs.vue';
newList: [], import testData from '@/common/textdata.js';
keywords: '', export default {
page: { components: {
current: 1, companyList,
size: 10, vTabs,
total: 0 },
}, data() {
searchHistoryList: [], return {
searchResultShow: false, activeTab: 0,
searchResultList: [] companyList: [],
}; recommendList: [],
}, newList: [],
onLoad: function (option) { keywords: '',
this.keywords = option.keywords ? option.keywords : '' page: {
}, current: 1,
onShow: function () { size: 10,
this.getList('search'); total: 0
},
this.getKeyWordsList() searchHistoryList: [],
}, searchResultShow: false,
/*页面滚动到底部*/ searchResultList: []
onReachBottom: function () { };
this.upLoad() },
}, onLoad: function(option) {
methods: { this.keywords = option.keywords ? option.keywords : ''
clearCurrentKeyWords() { },
this.keywords = ''; onShow: function() {
let that = this; this.getList('search');
setTimeout(function() {
that.searchResultShow = false; this.getKeyWordsList()
}, 100); },
/*页面滚动到底部*/
}, onReachBottom: function() {
// 新面板搜索 this.upLoad()
getNewList() { },
getListByKeyWords(this.keywords).then(res => { methods: {
this.searchResultShow = true clearCurrentKeyWords() {
this.searchResultList = res.data.data this.keywords = '';
// this.searchResultList.forEach((item, index) => { let that = this;
// item.name = this.getInf(item.name, this.keywords); setTimeout(function() {
// }) that.searchResultShow = false;
}) }, 100);
},
// 获取搜索历史记录 },
getKeyWordsList() { // 新面板搜索
getSearchKeyWordsList().then(res => { getNewList() {
let response = res.data getListByKeyWords(this.keywords).then(res => {
if(response.code == 200) { this.searchResultShow = true
this.searchHistoryList = response.data this.searchResultList = res.data.data
} // this.searchResultList.forEach((item, index) => {
}) // item.name = this.getInf(item.name, this.keywords);
}, // })
keyWordsClick(keyWords) { })
// console.log(keyWords) },
this.searchResultShow = true; // 获取搜索历史记录
this.keywords = keyWords; getKeyWordsList() {
this.getNewList(); getSearchKeyWordsList().then(res => {
}, let response = res.data
//最新任务; if (response.code == 200) {
getList: function (type) { this.searchHistoryList = response.data
//改变搜索条件页码值变为1 }
if (type === 'search') { })
this.page.current = 1; },
}; keyWordsClick(keyWords) {
// if (this.keywords) { // console.log(keyWords)
newMissionAll(this.page.current, this.page.size, this.keywords).then(res => { this.searchResultShow = true;
if (this.page.current === 1) { this.keywords = keyWords;
this.companyList = []; this.getNewList();
} },
this.page.current += 1; //最新任务;
this.page.total = res.data.data.total; getList: function(type) {
if (res.data.data && res.data.data.records.length) { //改变搜索条件页码值变为1
this.companyList = this.companyList.concat(res.data.data.records); if (type === 'search') {
this.page.current = 1;
} };
//搜索关键词高亮 // if (this.keywords) {
// if (this.companyList.length) { newMissionAll(this.page.current, this.page.size, this.keywords).then(res => {
// this.companyList.forEach((item, index) => { if (this.page.current === 1) {
// item.missionTitle = this.getInf(item.missionTitle, this.keywords); this.companyList = [];
// }); }
// } this.page.current += 1;
console.log(this.companyList, '----------'); this.page.total = res.data.data.total;
}) if (res.data.data && res.data.data.records.length) {
// } this.companyList = this.companyList.concat(res.data.data.records);
},
}
//上拉加载 //搜索关键词高亮
upLoad: function () { // if (this.companyList.length) {
if (this.page.current <= Math.ceil(this.page.total / this.page.size)) { // this.companyList.forEach((item, index) => {
this.getList(); // item.missionTitle = this.getInf(item.missionTitle, this.keywords);
} else { // });
uni.showToast({ // }
icon: "none", console.log(this.companyList, '----------');
title: '已经是最后一页', })
}) // }
return },
}
}, //上拉加载
closeBack() { upLoad: function() {
uni.navigateBack({ if (this.page.current <= Math.ceil(this.page.total / this.page.size)) {
delta: 1 this.getList();
}) } else {
}, uni.showToast({
/** icon: "none",
* 指定关键字高亮 title: '已经是最后一页',
* @param {*} str 字符串 })
* @param {*} key 关键字 return
*/ }
getInf(str, key) { },
if (str && key) { closeBack() {
let replaceReg = new RegExp(key, 'g')// 匹配关键字正则 uni.navigateBack({
let replaceString = "<span style='color: #1b66ff;'>" + key + "</span>" // 高亮替换 delta: 1
return str.replace(replaceReg, replaceString); })
} },
}, /**
* 指定关键字高亮
toDetail(item) { * @param {*} str 字符串
const no = item.id * @param {*} key 关键字
// 判断是岗位还是任务 0任务1岗位2政策 */
if(item.type == 0) { getInf(str, key) {
uni.navigateTo({ if (str && key) {
url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=1` let replaceReg = new RegExp(key, 'g') // 匹配关键字正则
}) let replaceString = "<span style='color: #1b66ff;'>" + key + "</span>" // 高亮替换
} else if(item.type == 1) { return str.replace(replaceReg, replaceString);
uni.navigateTo({ }
url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(no)}&isCan=1` },
})
} else if(item.type == 2) { toDetail(item) {
uni.navigateTo({ const no = item.id
url:`/pages/user/policyContent?id=${no}` // 判断是岗位还是任务 0任务1岗位2政策
}) if (item.type == 0) {
} uni.navigateTo({
url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=1`
}, })
} else if (item.type == 1) {
changeTab: function (e) { uni.navigateTo({
this.activeTab = e; url: `/pages/projectInfo/workInfo?workId=${encodeURIComponent(no)}&isCan=1`
}, })
// 清空搜索历史 } else if (item.type == 2) {
clearKeyWords() { uni.navigateTo({
clearSearchKeyWords().then(res => { url: `/pages/user/policyContent?id=${no}`
if(res.data.code == 200) { })
this.getKeyWordsList() }
}
}) },
}
} changeTab: function(e) {
}; this.activeTab = e;
</script> },
// 清空搜索历史
<style scoped> clearKeyWords() {
.mainWrapper{ clearSearchKeyWords().then(res => {
background-color: #f3f4f8; if (res.data.code == 200) {
min-height: 95vh; this.getKeyWordsList()
} }
.baddd { })
background-color: #f6f6f6; }
height: 20rpx; }
} };
</script>
.close {
position: absolute; <style scoped>
right: 24rpx; .mainWrapper {
top: 6rpx; background-color: #f3f4f8;
height: 60rpx; min-height: 95vh;
padding: 5rpx 0; }
line-height: 60rpx;
font-family: PingFangSC-Regular; .baddd {
font-size: 32rpx; background-color: #f6f6f6;
color: #333333; height: 20rpx;
} }
.headSearch .search-view { .close {
border-bottom: 1rpx solid #dddddd; position: absolute;
padding: 14rpx 32rpx; right: 24rpx;
background: rgba(255, 255, 255, 1); top: 6rpx;
} height: 60rpx;
padding: 5rpx 0;
.headSearch .search-item { line-height: 60rpx;
display: flex; font-family: PingFangSC-Regular;
padding: 0 10rpx; font-size: 32rpx;
height: 60rpx; color: #333333;
line-height: 60rpx; }
background: rgba(249, 249, 249, 1);
border-radius: 200px; .headSearch .search-view {
align-items: center; border-bottom: 1rpx solid #dddddd;
border: 1px solid #0091ff; padding: 14rpx 32rpx;
} background: rgba(255, 255, 255, 1);
}
.headSearch .search-item input {
padding: 0 24rpx; .headSearch .search-item {
height: 80rpx; display: flex;
font-weight: 400; padding: 0 10rpx;
flex: 1; height: 60rpx;
text-align: start; line-height: 60rpx;
font-size: 28rpx; background: rgba(249, 249, 249, 1);
font-family: PingFang-SC-Bold, PingFang-SC; border-radius: 200px;
color: rgba(51, 51, 51, 1); align-items: center;
} border: 1px solid #0091ff;
}
.headSearch .search-item .placeholderClass {
color: #CCCCCC; .headSearch .search-item input {
} padding: 0 24rpx;
height: 80rpx;
.headSearch .search-item image { font-weight: 400;
height: 32rpx; flex: 1;
width: 32rpx; text-align: start;
} font-size: 28rpx;
font-family: PingFang-SC-Bold, PingFang-SC;
.nothing { color: rgba(51, 51, 51, 1);
width: 400rpx; }
height: 200rpx;
display: block; .headSearch .search-item .placeholderClass {
margin: 0 auto; color: #CCCCCC;
margin-top: 50%; }
}
.headSearch .search-item image {
.nothingContnt { height: 32rpx;
font-family: PingFangSC-Regular; width: 32rpx;
font-size: 28rpx; }
color: #333333;
margin-top: 30rpx; .nothing {
text-align: center; width: 400rpx;
} height: 200rpx;
.search-history { display: block;
background-color: #fff; margin: 0 auto;
padding: 10rpx 40rpx; margin-top: 50%;
position: relative; }
}
.search-history .title { .nothingContnt {
font-size: 28rpx; font-family: PingFangSC-Regular;
font-weight: bold; font-size: 28rpx;
} color: #333333;
.search-history .clear { margin-top: 30rpx;
position: absolute; text-align: center;
right: 40rpx; }
top: 10rpx;
font-size: 24rpx; .search-history {
display: flex; background-color: #fff;
align-items: center; padding: 10rpx 40rpx;
color: #707070; position: relative;
} }
.search-history .empty {
font-size: 24rpx; .search-history .title {
text-align: center; font-size: 28rpx;
color: #707070; font-weight: bold;
} }
.search-history .wrapper {
display: flex; .search-history .clear {
flex-wrap: wrap; position: absolute;
margin-top: 10rpx; right: 40rpx;
} top: 10rpx;
.search-history .wrapper .item { font-size: 24rpx;
font-size: 24rpx; display: flex;
background-color: #f6f6f6; align-items: center;
padding: 8rpx 12rpx; color: #707070;
border-radius: 20rpx; }
margin-right: 10rpx;
} .search-history .empty {
.search-result { font-size: 24rpx;
padding: 20rpx 30rpx; text-align: center;
background-color: #fff; color: #707070;
height: 100vh; }
}
.search-result .title { .search-history .wrapper {
font-size: 26rpx; display: flex;
font-weight: bold; flex-wrap: wrap;
border-bottom: 1rpx solid #ddd; margin-top: 10rpx;
height: 60rpx; }
line-height: 60rpx;
} .search-history .wrapper .item {
.search-result .search-item { font-size: 24rpx;
display: flex; background-color: #f6f6f6;
align-items: center; padding: 8rpx 12rpx;
font-size: 26rpx; border-radius: 20rpx;
border-bottom: 1rpx solid #ddd; margin-right: 10rpx;
height: 80rpx; }
line-height: 80rpx;
.search-result {
} padding: 20rpx 30rpx;
.search-result .search-item .type { background-color: #fff;
font-size: 20rpx; height: 100vh;
color: #707070; }
background-color: #dddddd;
border-radius: 15rpx; .search-result .title {
height: 30rpx; font-size: 26rpx;
line-height: 30rpx; font-weight: bold;
padding: 0 20rpx; border-bottom: 1rpx solid #ddd;
} height: 60rpx;
</style> line-height: 60rpx;
}
.search-result .search-item {
display: flex;
align-items: center;
font-size: 26rpx;
border-bottom: 1rpx solid #ddd;
height: 80rpx;
line-height: 80rpx;
}
.search-result .search-item .type {
font-size: 20rpx;
color: #707070;
background-color: #dddddd;
border-radius: 15rpx;
height: 30rpx;
line-height: 30rpx;
padding: 0 20rpx;
}
</style>

View File

@@ -3,7 +3,7 @@ module.exports = {
port: 1887, port: 1887,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://192.168.1.106:8000', target: 'http://10.165.0.173:8000',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/api': '/' '^/api': '/'