Browse Source

粉丝

master
Bobi 3 months ago
parent
commit
6fd74bf0a0
12 changed files with 165 additions and 138 deletions
  1. +7
    -8
      App.vue
  2. +11
    -0
      components/list/activity/activityItem.vue
  3. +20
    -11
      components/list/dynamic/dynamicItem.vue
  4. +9
    -1
      components/list/dynamic/userHeadItem.vue
  5. +5
    -0
      pages/index/index.vue
  6. +26
    -31
      pages_order/car/carList.vue
  7. +1
    -0
      pages_order/components/list/cart/cartItem.vue
  8. +1
    -0
      pages_order/components/list/gourmet/gourmetItem.vue
  9. +2
    -0
      pages_order/components/list/renting/rentingItem.vue
  10. +31
    -33
      pages_order/gourmet/gourmetList.vue
  11. +30
    -36
      pages_order/renting/rentingList.vue
  12. +22
    -18
      pages_order/work/workList.vue

+ 7
- 8
App.vue View File

@ -29,13 +29,12 @@
}
}
.screenSearch{
.uv-drop-down{
background: transparent !important;
border: none !important;
// .uv-text__value{
// color: #fff !important;
// }
}
.uv-drop-down{
background: transparent !important;
border: none !important;
justify-content: space-around !important;
// .uv-text__value{
// color: #fff !important;
// }
}
</style>

+ 11
- 0
components/list/activity/activityItem.vue View File

@ -14,6 +14,15 @@
<view class="browse">
{{ item.isComment }}条评论
</view>
<view class="browse">
点赞
</view>
<view class="browse">
<view class="icon">
<uv-icon name="attach"></uv-icon>
</view>
分享
</view>
<callPhone
style="margin-left: auto;"
@ -61,7 +70,9 @@
font-size: 24rpx;
.browse {
display: flex;
margin: 0rpx 30rpx;
margin-left: 10rpx;
color: rgb(132, 132, 132);
}


+ 20
- 11
components/list/dynamic/dynamicItem.vue View File

@ -1,10 +1,10 @@
<template>
<view class="works" @click="$emit('click')">
<userHeadItem :item="item"/>
<daynamicInfo :item="item"/>
<userHeadItem :item="item" />
<daynamicInfo :item="item" />
<view class="bottom">
<view class="browse">
{{ item.isBrowse }}浏览
@ -12,7 +12,16 @@
<view class="browse">
{{ item.isComment }}条评论
</view>
<callPhone :phone="item.phone" :sexName="item.sex"/>
<view class="browse">
点赞
</view>
<view class="browse">
<view class="icon">
<uv-icon name="attach"></uv-icon>
</view>
分享
</view>
<callPhone :phone="item.phone" :sexName="item.sex" />
</view>
</view>
</template>
@ -21,7 +30,7 @@
import userHeadItem from '@/components/list/dynamic/userHeadItem.vue'
import daynamicInfo from '@/components/list/dynamic/daynamicInfo.vue'
export default {
components : {
components: {
userHeadItem,
daynamicInfo,
},
@ -29,11 +38,9 @@
item: {},
},
data() {
return {
}
},
methods: {
return {}
},
methods: {},
}
</script>
@ -51,8 +58,10 @@
font-size: 24rpx;
.browse {
display: flex;
margin: 0rpx 30rpx;
color: rgb(132, 132, 132);
margin-left: 10rpx;
}
}
}

+ 9
- 1
components/list/dynamic/userHeadItem.vue View File

@ -3,6 +3,7 @@
<view class="headPortraitimg">
<image :src="item.userImage" @click.stop="previewImage([item.userImage])" mode="aspectFill"></image>
</view>
<view class="YaoduUniversalWall">
<view class="heide">
<view class="username text-ellipsis">
@ -20,10 +21,15 @@
<!-- 地址 -->
{{ item.addId }}
</view>
<view class="inde">
#{{item.classId_dictText}}
</view>
<view class="authentication" v-if="item.isContent">
<!-- 个人认证 -->
{{ item.isContent }}
</view>
</view>
<view class="Times">
@ -35,8 +41,8 @@
12:34
</view> -->
</view>
</view>
</view>
</template>
@ -127,8 +133,10 @@
.Month {
margin: 0rpx 15rpx;
}
}
}
}
</style>

+ 5
- 0
pages/index/index.vue View File

@ -82,6 +82,8 @@
</view>
<view class="box">
<!-- 菜单栏 -->
<scroll-view
scroll-x="true">
<view class="life">
@ -99,6 +101,7 @@
</view>
</scroll-view>
<!-- 分类 -->
<view class="LabelOptions">
<uv-tabs :list="category"
:activeStyle="{color : '#000', fontWeight : 900}"
@ -109,6 +112,8 @@
@click="tabsClick"></uv-tabs>
</view>
<!-- 动态列表 -->
<dynamicItem
:key="index"
v-for="(item, index) in list"


+ 26
- 31
pages_order/car/carList.vue View File

@ -1,33 +1,21 @@
<template>
<view class="page pageList">
<navbar title="找车" leftClick @leftClick="$utils.navigateBack" />
<view
style="padding: 10rpx 30rpx;">
<uv-search
bgColor="#fff"
@search="getData"
@custom="getData"
searchIconSize="30rpx"
placeholder="请输入搜索关键字..."
v-model="queryParams.title"></uv-search>
<navbar title="景点" bgColor="#5baaff" color="#fff" leftClick @leftClick="$utils.navigateBack" />
<view class="top-bg"></view>
<view style="padding: 10rpx 30rpx 0 30rpx;">
<uv-search bgColor="#fff" @search="getData" :showAction="false" searchIconSize="30rpx"
placeholder="请输入搜索关键字..." v-model="queryParams.title"></uv-search>
</view>
<view class="">
<screenRen
:isArea="false"
@clickItem="clickItem"/>
<screenRen :isArea="false" @clickItem="clickItem" />
</view>
<view class="list">
<cartItem
:key="index"
v-for="(item, index) in list"
:item="item"
@click="$utils.navigateTo('/pages_order/car/carListDetail?id=' + item.id)"
/>
<cartItem :key="index" v-for="(item, index) in list" :item="item"
@click="$utils.navigateTo('/pages_order/car/carListDetail?id=' + item.id)" />
</view>
</view>
</template>
@ -37,17 +25,17 @@
import cartItem from '../components/list/cart/cartItem.vue'
export default {
mixins: [mixinsList],
components : {
components: {
cartItem,
screenRen,
},
data() {
return {
mixinsListApi : 'getCatPage',
mixinsListApi: 'getCatPage',
}
},
methods: {
clickItem(result){
clickItem(result) {
this.queryParams = {
pageNo: 1,
pageSize: 10,
@ -62,9 +50,16 @@
</script>
<style scoped lang="scss">
.page{
.list{
padding: 0 20rpx;
.page {
.list {
padding: 0 20rpx;
}
}
.top-bg {
position: absolute;
height: 500rpx;
width: 100%;
background: linear-gradient($uni-color, #fff);
}
}
</style>
</style>

+ 1
- 0
pages_order/components/list/cart/cartItem.vue View File

@ -61,6 +61,7 @@
display: flex;
font-size: 24rpx;
margin: 30rpx 0;
position: relative;
image {
width: 50%;


+ 1
- 0
pages_order/components/list/gourmet/gourmetItem.vue View File

@ -69,6 +69,7 @@
overflow: hidden;
border-radius: 10rpx;
color: #777;
position: relative;
}
.box {
display: flex;


+ 2
- 0
pages_order/components/list/renting/rentingItem.vue View File

@ -60,6 +60,8 @@
border-radius: 20rpx;
box-shadow: 0 0 6rpx 6rpx #00000011;
margin: 24rpx;
position: relative;
background-color: #fff;
image{
width: 180rpx;
height: 180rpx;


+ 31
- 33
pages_order/gourmet/gourmetList.vue View File

@ -1,57 +1,48 @@
<template>
<view class="page pageList">
<navbar title="店铺" leftClick @leftClick="$utils.navigateBack" />
<navbar title="店铺" bgColor="#5baaff" color="#fff" leftClick @leftClick="$utils.navigateBack" />
<view class="top-bg"></view>
<view
style="padding: 10rpx 20rpx;">
<uv-search
bgColor="#fff"
@search="getData"
@custom="getData"
searchIconSize="30rpx"
placeholder="请输入搜索关键字..."
v-model="title"></uv-search>
<view style="padding: 10rpx 30rpx 0 30rpx;">
<uv-search bgColor="#fff" @search="getData" :showAction="false" searchIconSize="30rpx"
placeholder="请输入搜索关键字..." v-model="queryParams.title"></uv-search>
</view>
<view class="">
<screenRen
@clickItem="clickItem"/>
<screenSearch @clickItem="clickItem" />
</view>
<view class="list">
<gourmetItem
:key="index"
v-for="(item, index) in list"
:item="item"
@click="$utils.navigateTo('/pages_order/gourmet/gourmetDetail?id=' + item.id)"
/>
<gourmetItem :key="index" v-for="(item, index) in list" :item="item"
@click="$utils.navigateTo('/pages_order/gourmet/gourmetDetail?id=' + item.id)" />
</view>
</view>
</template>
<script>
import mixinsList from '@/mixins/list.js'
import screenRen from '../components/screen/screenRen.vue'
import screenSearch from '../components/screen/screenSearch.vue'
import gourmetItem from '../components/list/gourmet/gourmetItem.vue'
export default {
mixins: [mixinsList],
components : {
components: {
gourmetItem,
screenRen,
screenSearch,
},
data() {
return {
mixinsListApi : 'getStorePage',
mixinsListApi: 'getStorePage',
}
},
methods: {
getDataThen(list){
getDataThen(list) {
list.forEach(n => {
n.image = n.image ? n.image.split(',') : []
})
},
clickItem(result){
clickItem(result) {
this.queryParams = {
pageNo: 1,
pageSize: 10,
@ -66,10 +57,17 @@
</script>
<style scoped lang="scss">
.page{
padding-bottom: env(safe-area-inset-bottom);
.list{
padding: 0 20rpx;
.page {
padding-bottom: env(safe-area-inset-bottom);
.list {
padding: 0 20rpx;
}
}
.top-bg{
position: absolute;
height: 500rpx;
width: 100%;
background: linear-gradient($uni-color, #fff);
}
}
</style>
</style>

+ 30
- 36
pages_order/renting/rentingList.vue View File

@ -1,57 +1,50 @@
<template>
<view class="page pageList">
<navbar title="租房列表" leftClick @leftClick="$utils.navigateBack" />
<view class="flex"
style="padding: 20rpx;">
<uv-search
@search="getData"
:showAction="false"
searchIconSize="30rpx"
placeholder="请输入搜索关键字..."
v-model="queryParams.title"></uv-search>
</view>
<navbar title="租房列表" bgColor="#5baaff" color="#fff" leftClick @leftClick="$utils.navigateBack" />
<view class="top-bg"></view>
<view style="padding: 10rpx 30rpx 0 30rpx;">
<uv-search bgColor="#fff" @search="getData" :showAction="false" searchIconSize="30rpx"
placeholder="请输入搜索关键字..." v-model="queryParams.title"></uv-search>
</view>
<view class="">
<screenRen
isMaxPrice
@clickItem="clickItem"/>
<screenSearch isMaxPrice @clickItem="clickItem" />
</view>
<view class="list">
<rentingItem
:key="index"
v-for="(item, index) in list"
:item="item"
@click="$utils.navigateTo('/pages_order/renting/rentingDetail?id=' + item.id)"
/>
<rentingItem :key="index" v-for="(item, index) in list" :item="item"
@click="$utils.navigateTo('/pages_order/renting/rentingDetail?id=' + item.id)" />
</view>
</view>
</template>
<script>
import mixinsList from '@/mixins/list.js'
import screenRen from '../components/screen/screenRen.vue'
import screenSearch from '../components/screen/screenSearch.vue'
import rentingItem from '../components/list/renting/rentingItem.vue'
export default {
mixins: [mixinsList],
components : {
screenRen,
components: {
screenSearch,
rentingItem,
},
data() {
return {
mixinsListApi : 'getRentPage',
mixinsListApi: 'getRentPage',
}
},
methods: {
clickDetail(item){
clickDetail(item) {
uni.navigateTo({
url: '/pages_order/renting/rentingDetail?id=' + item.id
})
},
clickItem(result){
clickItem(result) {
console.log(result);
this.queryParams = {
pageNo: 1,
@ -67,18 +60,19 @@
</script>
<style scoped lang="scss">
.page{
.page pageList{
background-color: blue;
}
.page {
min-height: 100vh;
background-color: #fff;
.list{
.list {
padding: 10rpx;
}
/deep/ .uv-drop-down{
justify-content: space-around;
}
}
.top-bg{
position: absolute;
height: 500rpx;
width: 100%;
background: linear-gradient($uni-color, #fff);
}
</style>

+ 22
- 18
pages_order/work/workList.vue View File

@ -1,21 +1,20 @@
<template>
<view class="page pageList">]
<view class="page pageList">
<navbar title="工作" leftClick @leftClick="$utils.navigateBack" />
<view style="padding: 10rpx 20rpx;">
<uv-search bgColor="#fff" @search="getData" :showAction="false" searchIconSize="30rpx"
placeholder="请输入搜索关键字..." v-model="queryParams.title">
</uv-search>
</view>
<navbar title="工作" bgColor="#5baaff" color="#fff" leftClick @leftClick="$utils.navigateBack" />
<view class="top-bg"></view>
<view style="padding: 10rpx 30rpx 0 30rpx;">
<uv-search bgColor="#fff" @search="getData" :showAction="false" searchIconSize="30rpx"
placeholder="请输入搜索关键字..." v-model="queryParams.title"></uv-search>
</view>
<view class="">
<screenRen @clickItem="clickItem" />
<screenSearch @clickItem="clickItem" />
</view>
<!-- <workList ref="workList"/> -->
<view class="list">
@ -29,11 +28,11 @@
<script>
import mixinsList from '@/mixins/list.js'
import workItem from '../components/list/workList/workItem.vue'
import screenRen from '../components/screen/screenRen.vue'
import screenSearch from '../components/screen/screenSearch.vue'
export default {
mixins: [mixinsList],
components: {
screenRen,
screenSearch,
workItem,
},
data() {
@ -57,9 +56,14 @@
</script>
<style scoped lang="scss">
.page{
.page {
min-height: 100vh;
background-color: #fff;
}
.top-bg{
position: absolute;
height: 500rpx;
width: 100%;
background: linear-gradient($uni-color, #fff);
}
</style>

Loading…
Cancel
Save