作者 “关晓峰”

fix: bugs fixed

<template>
<view>
<view class="listBox" >
<view class="listBox" @click="goDetail">
<view class="listBox_top">
<view class="" style="margin-right: 24rpx;position: relative;">
<image :src="info.image" style="width: 202rpx; height: 202rpx;" mode="">
... ... @@ -12,9 +12,9 @@
出售
</view>
</view>
<view class="listBox_right" @click="goDetail">
<view class="listBox_right" >
<view class="flexBox">
<p style=" color: #000000e6;font-size: 34rpx;font-weight: 600;">{{info.category.name + info.brand.name + info.xinghao.name}}</p>
<p style=" color: #000000e6;font-size: 34rpx;font-weight: 600;">{{ info.brand.name + info.xinghao.name + info.category.name}}</p>
<view v-if="isBtn">
<p style="font-size: 28rpx; color: #3375D8;" v-if="info.status == 2">已发布</p>
<p style="font-size: 28rpx; color: #3375D8;" v-if="info.status == 1">审核中</p>
... ... @@ -25,7 +25,7 @@
<view class="listBox_cont">
<p class="tips" style="border-right: 1px solid #00000042; padding: 0 8rpx;">{{info.year || ''}}</p>
<p class="tips" style="border-right: 1px solid #00000042; padding: 0 8rpx;">{{(info.hours || '0') + '小时'}}</p>
<p class="tips" style="padding: 0 8rpx;">{{info.brand.name}}</p>
<p class="tips" style="padding: 0 8rpx;">{{info.category.name}}</p>
</view>
<image src="../../static/image/2.png" style="width: 164rpx; height: 44rpx;" mode="" v-if="info.is_license == 1">
</image>
... ...
<template>
<view>
<view class="listBox">
<view class="listBox_top" style="justify-content: space-between;" @click="goDetail">
<view class="listBox" :style="info.tag_list.length == 0 ? 'max-height: 234rpx; min-height: 0;' : ''" @click="goDetail">
<view class="listBox_top" style="justify-content: space-between;">
<view class="listBox_top" style="width: 50vw;">
<view class="box1" style="margin-right: 24rpx;">
<image src="../../static/need.png" style="width: 68rpx; height: 40rpx;" v-if="info.type == 2" mode=""></image>
... ... @@ -11,22 +11,23 @@
{{info.category.name + info.brand.name + info.xinghao.name}}
</view>
</view>
<view class="font oneh" style="width: 30vw;">
<view class="font oneh" style="width: 30vw;" v-if="info.price && info.price !== ''">
{{info.price}} <text style="font-size: 26rpx;">/月</text>
</view>
</view>
<view class="listBox_top" style="justify-content: space-between; margin-top: 28rpx; margin-bottom: 46rpx;" @click="goDetail">
<view class="listBox_top">
<view class="listBox_top" style="justify-content: space-between; margin-top: 28rpx; margin-bottom: 46rpx;" v-if="info.tag_list.length > 0" >
<view class="listBox_top" >
<view style="margin: 0 5rpx" v-for="item in info.tag_list">
<u-tag :text="item.name" plain size="mini" type="info"></u-tag>
</view>
</view>
<view class="tips" v-if="isBtn">
{{info.province}} - {{info.city}} - {{info.region}}-距您{{info.distance || '0'}}km
</view>
</view>
<view class="tips" v-if="isBtn" style="margin-top: 28rpx;">
{{info.province}} - {{info.city}} - {{info.region}}-距您{{info.distance || '0'}}km
</view>
<view class="line">
</view>
... ... @@ -34,22 +35,22 @@
<view class="tips">
{{info.province}} - {{info.city}} - {{info.region}}-距您{{info.distance || 0}}km
</view>
<view class="tips">
<view class="tips" style="margin-left: 20rpx; text-align: end;">
{{info.createtime_text}}
</view>
</view>
<view class="flexBox" style="justify-content: flex-end !important; padding-bottom: 16rpx;" v-else>
<view style="display: flex;">
<view class="" style="margin-right: 16rpx;">
<u-button type="info" style="margin-right: 16rpx;" size="small" text="关闭信息" @click="close"></u-button>
<view class="" v-if="info.status == 1 || info.status == 2">
<u-button type="info" size="small" text="关闭信息" @click="close"></u-button>
</view>
<view class="" style="margin-right: 16rpx;">
<u-button type="primary" size="small" style="margin-right: 16rpx;" text="修改信息" @click="goPublish1"></u-button>
<view class="" style="margin-right: 16rpx;" v-if="info.status == 3 || info.status == 1">
<u-button type="primary" size="small" style="margin: 0 16rpx;" text="修改信息" @click="goPublish1"></u-button>
</view>
<view class="">
<view class="" v-else-if="info.status == 4">
<u-button type="primary" size="small" text="重新发布" @click="goNeeds(info.type)"></u-button>
</view>
</view>w
</view>
</view>
... ...
... ... @@ -11,8 +11,10 @@
<view class="flexBox" style="padding: 24rpx 24rpx 0 24rpx;">
<view class="" style="width: 65vw;" @click.stop="goRot('/pages/subPages/moreSearch')">
<view class="searchcity">
<view class="flexBox" @click.stop="goRot('/pages/subPages/moreChoose')">
<view class="city">
<view class="flexBox oneh" style="justify-content: center;" @click.stop="goRot('/pages/subPages/moreChoose')">
<view class="city " style="max-width: 120rpx;
overflow: hidden;
text-overflow: ellipsis;">
{{city_name ? city_name : '城市'}}
</view>
<image class="img1" src="/static/icon/xia.png" mode=""></image>
... ... @@ -424,7 +426,11 @@
color: #3375D8;
}
}
.oneh{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.right {
width: 50%;
height: 132rpx;
... ...
... ... @@ -4,14 +4,12 @@
height: 188rpx;" mode=""></image>
<view class="items" v-for="item in list">
<view class="">
<image src="/static/icon/1816.png" v-if="type==1" style="width: 80rpx; height: 80rpx;margin-right:16rpx"
<image src="/static/icon/1816.png" v-if="item.type == 1"
style="width: 80rpx; height: 80rpx;margin-right:16rpx" mode=""></image>
<image src="/static/icon/1815.png" v-else-if="item.type == 2"
style="width: 80rpx; height: 80rpx;margin-right:16rpx" mode=""></image>
<image src="/static/image/1813.png" v-else style="width: 80rpx; height: 80rpx;margin-right:16rpx"
mode=""></image>
<view v-else>
<image src="/static/icon/1815.png" v-if="'审核通过'"
style="width: 80rpx; height: 80rpx;margin-right:16rpx" mode=""></image>
<image src="/static/image/1813.png" v-else style="width: 80rpx; height: 80rpx;margin-right:16rpx"
mode=""></image>
</view>
</view>
<view style="display: flex;flex-direction: column;width: 100%;">
<view class=" flexB" style="margin-bottom: 10rpx;">
... ... @@ -24,6 +22,9 @@ height: 188rpx;" mode=""></image>
</view>
</view>
</view>
<view class="">
<u-loadmore :status="status" :load-text="loadText" />
</view>
</view>
</template>
... ... @@ -31,7 +32,14 @@ height: 188rpx;" mode=""></image>
export default {
data() {
return {
list: []
list: [],
status: 'loadmore',
loadText: {
loadmore: '轻轻上拉加载更多...',
loading: '努力加载中...',
nomore: '没有更多了'
},
page: 1,
}
},
methods: {
... ... @@ -42,17 +50,35 @@ height: 188rpx;" mode=""></image>
const day = date.getDate().toString().padStart(2, '0');
const formattedDate = `${year}-${month}-${day}`;
return formattedDate
},
getList() {
uni.$u.http.post('/api/message/msg_list', {
page: this.page,
pagenum: 10
}).then(res => {
this.status ='loadmore'
if (this.page === 1) {
this.list = []
}
res.data.data.forEach(data => {
this.list.push(data)
})
if (this.list.length < 10) this.status = 'nomore';
else this.status = 'loading';
}).catch(err => {
console.log(err);
})
}
},
onReachBottom() {
this.status = 'loading';
this.page = this.page + 1;
this.getList()
},
onLoad() {
uni.$u.http.post('/api/message/msg_list', {
page: 1,
pagenum: 10
}).then(res => {
this.list = res.data.data
}).catch(err => {
console.log(err);
})
this.getList()
}
}
</script>
... ...
... ... @@ -57,21 +57,27 @@
<image src="../../static/sell/173.png" class="imgS" mode=""></image>
</view>
<view class="">
<button share="circle" class="btnS" @click="goGuess">去估价 >></button>
<button share="circle" class="btnS" @click="goGuess">去估价 >></button>
</view>
</view>
<view class="content" @click="goMy">
<view class="flexBox" style="justify-content: space-between;">
<p style=" color: #000000e6;font-size: 34rpx;font-weight: 500;">我的设备</p>
<p style=" color: #000000e6;font-size: 34rpx;font-weight: 500;">我的设备({{myList.length}})</p>
<p style=" color: #00000099;font-size: 26rpx;font-weight: 400;">查看全部</p>
</view>
<u-scroll-list v-if="list && list.length>0">
<u-scroll-list v-if="list && myList.length>0">
<view class="">
<view class="flexBox">
<view v-for="item in list.slice(0,3)">
<view v-for="item in myList">
<view class="items">
<view class="imgBox">
<view class="imgBox" style="position: relative;">
<image :src="item.image" style="width: 136rpx;height: 136rpx;" mode=""></image>
<view class="chuzu" v-if="info.type == 3">
出租
</view>
<view class="chushou" v-else>
出售
</view>
</view>
<view class="">
<p style=" color: #000000e6;font-size: 28rpx;font-weight: 400;">
... ... @@ -154,6 +160,7 @@
return {
keyword: '',
lat: '',
myList:[],
lng: '',
city_name: '',
active: '求租',
... ... @@ -220,6 +227,7 @@
}).then(res => {
console.log(res);
this.list = res.data.data
this.myList = this.list.slice(0,5)
}).catch(err => {
console.log(err);
})
... ... @@ -322,8 +330,9 @@
}
.btnS {
width: 172rpx;
// width: 172rpx;
height: 72rpx;
line-height: 72rpx;
border-radius: 36rpx;
opacity: 1;
background: #ffffffff;
... ... @@ -351,7 +360,34 @@
align-items: center;
}
.chuzu{
position: absolute;
top: 0;
left: 0;
width: 56rpx;
height: 32rpx;
border-radius: 8rpx;
font-size: 22rpx;
text-align: center;
color:white;
line-height: 32rpx;
opacity: 1;
background: linear-gradient(143.3deg, #29a9f1ff 0%, #1d6bedff 100%);
}
.chushou{
position: absolute;
top: 0;
left: 0;
width: 56rpx;
text-align: center;
font-size: 22rpx;
line-height: 32rpx;
color:white;
height: 32rpx;
border-radius: 8rpx;
opacity: 1;
background: linear-gradient(143.3deg, #f19529ff 0%, #ed681dff 100%);
}
.right {
height: 104rpx;
opacity: 1;
... ...
... ... @@ -32,10 +32,10 @@
<script>
import item from '@/component/listItem/listItem.vue'
import itemSell from '@/component/sellItem/sellItem.vue'
import ItemSell from '@/component/sellItem/sellItem.vue'
export default {
components:{
item,itemSell
item,ItemSell
},
data() {
return {
... ...
... ... @@ -138,17 +138,25 @@
uni.$u.http.post('/api/equip/equip_evaluate', p).then(
res => {
uni.showToast({
title: res.msg
title: res.msg,
icon:'none'
})
let pagearr = getCurrentPages(); //获取应用页面栈
let currentPage = pagearr[pagearr.length - 1]; //获取当前页面信息
console.log('option:', currentPage) //获取页面传递的信息
currentPage.$vm.category_id = ''
currentPage.$vm.name = ''
uni.redirectTo({
url: '/pages/index/buy'
})
this.result = true
if(res.code == 1){
let pagearr = getCurrentPages(); //获取应用页面栈
let currentPage = pagearr[pagearr.length - 1]; //获取当前页面信息
console.log('option:', currentPage) //获取页面传递的信息
currentPage.$vm.category_id = ''
currentPage.$vm.name = ''
this.result = true
setTimeout(() => {
uni.redirectTo({
url: '/pages/index/buy'
})
}, 1000)
}
}).catch(err => {
uni.showToast({
title: err.msg
... ...
... ... @@ -4,29 +4,41 @@
<image v-if="flag == 1" src="http://equiphappy.shs.broing.cn/assets/miniprogram/hire.png" style="height: 432rpx;width: 100%;" mode=""></image>
<image v-else src="http://equiphappy.shs.broing.cn/assets/miniprogram/sell.png" style="height: 432rpx;width: 100%;" mode=""></image>
</view>
<view class="" style="padding: 32rpx; background: white;">
<view class="" style="padding: 32rpx; background: white;position: relative;">
<u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
<u-form-item label="设备信息" labelWidth="200rpx" prop="userInfo.category_id" borderBottom ref="item1" @click="goChoose">
<u--input v-model="model1.userInfo.name" disabled disabledColor="#ffffff" placeholder="请选择设备"
<u-form-item label="设备信息" labelWidth="200rpx" prop="userInfo.category_id" borderBottom ref="item1" @click="goChoose" style="position: relative;">
<u--input v-model="model1.userInfo.name" disabled disabledColor="#ffffff" placeholder="请选择设备" style="position: relative;"
border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
<view class="posBox" style="top:32rpx; left:32rpx">
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
</view>
</u-form-item>
<u-form-item label="设备品牌" labelWidth="200rpx" prop="userInfo.brand_name" borderBottom
@click="goLogo" ref="item1">
<u--input v-model="model1.userInfo.brand_name" disabled disabledColor="#ffffff"
placeholder="请选择" border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
<view class="posBox" style="top:116rpx; left:32rpx">
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
</view>
</u-form-item>
<u-form-item label="设备型号" labelWidth="200rpx" prop="userInfo.xh_name" borderBottom @click="goNum"
ref="item1">
<u--input v-model="model1.userInfo.xh_name" disabled disabledColor="#ffffff" placeholder="请选择"
border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
<view class="posBox" style="top:200rpx; left:32rpx">
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
</view>
</u-form-item>
<u-form-item label="设备停放地" labelWidth="200rpx" prop="userInfo.region" borderBottom ref="item1" @click="goMap">
<u--input v-model="model1.userInfo.region" disabled disabledColor="#ffffff" placeholder="请选择"
border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
<view class="posBox" style="top:288rpx; left:32rpx">
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
</view>
</u-form-item>
<u-form-item label="出厂年限" labelWidth="200rpx" prop="userInfo.year" borderBottom @click="showSex = true;" ref="item1">
<u--input v-model="model1.userInfo.year" placeholder="请输入" border="none"></u--input>
... ... @@ -184,6 +196,10 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag
}
</script>
<style>
<style scoped lang="scss">
.posBox{
width: 40rpx;
height: 24rpx;
position: absolute;
}
</style>
\ No newline at end of file
... ...
... ... @@ -18,13 +18,16 @@
</view>
</view>
<view class="box">
<view class="" style="padding: 32rpx;">
<view class="" style="padding: 32rpx;position: relative;">
<u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
<u-form-item label="设备信息" labelWidth="200rpx" prop="userInfo.name" borderBottom ref="item1"
@click="goChoose">
<u--input v-model="model1.userInfo.name" disabled disabledColor="#ffffff" placeholder="请选择设备"
border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
<view class="posBox" style="top:32rpx; left:32rpx">
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
</view>
</u-form-item>
<u-form-item label="设备品牌" labelWidth="200rpx" prop="userInfo.brand_name" borderBottom
@click="goLogo" ref="item1">
... ... @@ -43,10 +46,16 @@
<u--input v-model="model1.userInfo.region" disabled disabledColor="#ffffff" placeholder="请选择"
border="none"></u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
<view class="posBox" style="top:290rpx; left:32rpx">
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
</view>
</u-form-item>
<u-form-item v-if="nav == '发布求租'" label="租赁时间" labelWidth="200rpx" prop="userInfo.day" borderBottom
ref="item1">
<u--input v-model="model1.userInfo.day" border="none" @click="showTime = true"></u--input>
<view class="posBox" style="top:374rpx; left:32rpx">
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
</view>
</u-form-item>
<u-form-item label="设备预算" labelWidth="200rpx" prop="userInfo.price" labelPosition="top" borderBottom
ref="item1">
... ... @@ -54,9 +63,6 @@
</u-form-item>
</u--form>
<u-action-sheet :show="showSex" :actions="actions" title="请选择性别" description="如果选择保密会报错"
@close="showSex = false" @select="sexSelect">
</u-action-sheet>
<u-datetime-picker :show="showTime" v-model="model1.userInfo.day" mode="date"></u-datetime-picker>
</view>
</view>
... ... @@ -79,7 +85,6 @@
name: '发布求购',
}, ],
model1: {
showSex: false,
userInfo: {
brand_name: '',
name: '',
... ... @@ -171,7 +176,7 @@
xinghao_id: this.model1.userInfo.xinghao_id,
day: this.model1.userInfo.day,
price: this.model1.userInfo.price,
region: this.model1.userInfo.region,
region: this.model1.userInfo.region.slice(6,9),
province: this.model1.userInfo.region.slice(0, 3),
city: this.model1.userInfo.region.slice(3, 6),
address: this.model1.userInfo.region
... ... @@ -257,7 +262,11 @@
/* margin-bottom: 32rpx; */
margin: 24rpx;
}
.posBox{
width: 40rpx;
height: 24rpx;
position: absolute;
}
.bom {
margin-bottom: 16rpx;
position: fixed;
... ...
... ... @@ -112,6 +112,7 @@
// });
p.province = p.region.slice(0, 3)
p.city = p.region.slice(3, 6)
p.region = p.region.slice(6, 9)
p.address = p.region
console.log('sdadasds', this.flag);
uni.$u.http.post(this.flag === "sale" ? '/api/equip/add_equip_sale' : '/api/equip/add_equip_hire', {
... ...
<template>
<view>
<view class="top">
<view class="top" v-if="info.image_list && info.image_list.length>0">
<u-swiper :list="info.image_list" @click="click" height="240"></u-swiper>
</view>
<view class="main" style="margin: 24rpx 24rpx 220rpx 24rpx;">
... ... @@ -10,7 +10,10 @@
</view>
<view class="box">
<view class="flexBox" style="margin-bottom: 24rpx;">
<image src="/static/chuzu.png" style="width: 56rpx;height: 32rpx;margin-right: 8rpx;" mode="">
<image src="/static/chuzu.png" style="width: 56rpx;height: 32rpx;margin-right: 8rpx;" mode="" v-if="info.type == 3">
<image src="/static/chushou.png" style="width: 56rpx;height: 32rpx;margin-right: 8rpx;" mode="" v-else-if="info.type == 4">
<image src="/static/need2.png" style="width: 56rpx;height: 32rpx;margin-right: 8rpx;" mode="" v-else-if="info.type == 1">
<image src="/static/need.png" style="width: 56rpx;height: 32rpx;margin-right: 8rpx;" mode="" v-else>
</image>
<p style=" color: #000000e6;font-size: 34rpx;font-weight: 500;">
{{info.category.name + info.brand.name + info.xinghao.name}}
... ... @@ -115,7 +118,8 @@
<p style="color: #000000e6;font-size: 32rpx;font-weight: 500;margin-bottom: 24rpx;">相似设备</p>
<view class="" v-if="resList && resList.length>0">
<view class="" v-for="item in resList ">
<item :info="item" :isBtn="false"></item>
<item :info="item" :isBtn="false" v-if="item.type == 3 || item.type == 4"></item>
<item-sell v-else :info="item"></item-sell>
</view>
</view>
<view class="box" v-else>
... ... @@ -172,9 +176,11 @@
<script>
import item from '@/component/listItem/listItem.vue'
import ItemSell from '@/component/sellItem/sellItem.vue'
export default {
components: {
item
item,
ItemSell
},
data() {
return {
... ...
<template>
<view class="main">
<view class="" style="margin-bottom: 40rpx; background-color: white;">
<u-input
placeholder="请输入"
prefixIcon="search"
border="surround"
v-model="value"
shape="circle"
@change="change"
>
<view slot="prefix" style="display: flex; align-items: center; justify-content: center;" @click="goSearch">
<text
style="font-size: 24rpx; margin-right: 6rpx;"
>城市</text>
<u-icon name="arrow-down-fill" size="20rpx"></u-icon>
</view>
</u-input>
<view class="flexB" style="padding: 24rpx;justify-content: space-between;">
<view class="flexB" style="width: 100%;height: 64rpx;">
<u-input placeholder="请输入" prefixIcon="search" confirm-type="search" @confirm="confirm" border="surround" v-model="keyword" shape="circle"
style="height: 22px;" >
<view slot="prefix" style="display: flex; align-items: center; justify-content: center;"
@click="goRot('/pages/subPages/moreChoose')">
<text style="font-size: 24rpx; margin-right: 6rpx;"
@click.stop="goRot('/pages/subPages/moreChoose')">{{city_name ? city_name : '城市'}}</text>
<u-icon name="arrow-down-fill" size="20rpx"></u-icon>
</view>
</u-input>
</view>
</view>
<view class="page">
<scroll-view id="left-scroll" class="left-box" :scroll-y="true" :scroll-top="leftTop">
... ... @@ -103,13 +100,17 @@
}
},
getList(){
uni.$u.http.get('/api/common/category_list').then(res => {
uni.$u.http.get(`/api/common/category_list?keyword=${this.keyword}`).then(res => {
console.log(res);
this.category = res.data
}).catch(err => {
console.log(err);
})
},
confirm() {
this.getList()
},
gold(item){
uni.$u.http.post('/api/common/follow',{category_id: item.id}).then(res => {
uni.showToast({
... ... @@ -125,6 +126,11 @@
this.getList()
})
},
goRot(url) {
uni.navigateTo({
url: url
})
},
changeIndex(val) {
this.current = val;
let count = this.category.length;
... ...
... ... @@ -76,6 +76,7 @@
return {
hotCity:[],
historyList: [],
keyword:'',
indexList: [],
itemArr: [
... ... @@ -104,14 +105,20 @@
},
confirm(e) {
this.getList()
console.log(e);
this.historyList.push(e)
uni.setStorageSync('cityContent', JSON.stringify(this.historyList))
this.flag = true
},
goRot(url) {
uni.navigateTo({
url: url
})
},
getList(){
uni.$u.http.get(`/api/index/city_list?keyword=${this.keyword}`).then(res => {
this.indexList = res.data.word
this.itemArr = res.data.list
}).catch(err => {
console.log(err);
})
}
},
onLoad() {
... ... @@ -120,18 +127,14 @@
}).catch(err => {
console.log(err);
})
uni.$u.http.get('/api/index/city_list').then(res => {
this.indexList = res.data.word
this.itemArr = res.data.list
}).catch(err => {
console.log(err);
})
this.getList()
this.historyList = JSON.parse(uni.getStorageSync('cityContent') || '[]')
this.historyList = this.historyList.filter(item => item !== '')
},
onShow() {
this.historyList = JSON.parse(uni.getStorageSync('cityContent') || '[]')
this.historyList = this.historyList.filter(item => item !== '')
this.historyList = Array.from(new Set(this.historyList))
}
}
</script>
... ...
<template>
<view class="main">
<view class="flexB" style="padding: 24rpx;justify-content: space-between;">
<view class="" style="margin-right: 24rpx;width: 65%;height: 64rpx ;">
<view class="flexB" style="width: 100%;height: 64rpx;">
<u-input placeholder="请输入" prefixIcon="search" confirm-type="search" @confirm="confirm" border="surround" v-model="keyword" shape="circle"
style="height: 22px;" >
<view slot="prefix" style="display: flex; align-items: center; justify-content: center;"
... ... @@ -10,12 +10,11 @@
@click.stop="goRot('/pages/subPages/moreChoose')">{{city_name ? city_name : '城市'}}</text>
<u-icon name="arrow-down-fill" size="20rpx"></u-icon>
</view>
</u-input>
</view>
<view class="" style="width: 30%;height: 68rpx;">
<u-button shape="circle" style="height: 62rpx;" type="primary" size="small" text="帮我找"
@click.stop="goHub"></u-button>
<view class="" v-if="flag" style="margin-left: 20rpx;">
<u-button text="帮我找" type="primary" shape="circle" @click="goRot('/pages/sellAndBuy/hub')"></u-button>
</view>
</view>
</view>
<view class="" v-if="!flag">
... ... @@ -59,8 +58,8 @@
<view class=" ">
<view class="" style="background: white; margin-bottom: 32rpx;">
<view class="" style="display: flex; justify-content: space-evenly; margin: 6rpx;">
<u-tabs :list="list1" @click.stop="clickTab"></u-tabs>
<view class="">
<u-tabs :scrollable="false" lineWidth="45" lineHeight="7" :list="list1" @click.stop="clickTab"></u-tabs>
</view>
<view class="flexB"
style="margin: 20rpx 20rpx; padding-bottom: 10px;justify-content: space-between;">
... ... @@ -386,6 +385,9 @@
this.getList()
this.historyList = JSON.parse(uni.getStorageSync('content') || '[]')
this.historyList = this.historyList.filter(item => item !== '')
this.historyList = Array.from(new Set(this.historyList))
console.log(result) // [ 1, 2, 'abc', true, false, undefined, NaN ]
},
}
</script>
... ...