页面修改

This commit is contained in:
THK3121 2023-09-05 15:55:01 +08:00
commit 9ad08197c5
9 changed files with 147 additions and 155 deletions

View File

@ -77,6 +77,7 @@
this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'; this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
this.globalData.uid = this.$store.state.app.uid; this.globalData.uid = this.$store.state.app.uid;
// #ifdef APP-PLUS
//uni //uni
mp.onUniMPEventReceive(ret=>{ mp.onUniMPEventReceive(ret=>{
console.log('小程序事件: ', ret); console.log('小程序事件: ', ret);
@ -86,6 +87,7 @@
}); });
} }
}); });
// #endif
let that = this; let that = this;
// #ifdef MP // #ifdef MP

View File

@ -9,8 +9,8 @@ let httpApiThree
// 网络接口修改此字符 小程序域名要求https // 网络接口修改此字符 小程序域名要求https
// let httpApi = 'http://192.168.31.110:8324' // 测试 // let httpApi = 'http://192.168.31.110:8324' // 测试
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
// httpApi = 'https://shop.lihaink.cn' // 生产 httpApi = 'https://shop.lihaink.cn' // 生产
httpApi = "https://crmeb-test.shop.lihaink.cn" // httpApi = "https://crmeb-test.shop.lihaink.cn"
// httpApi = "http://192.168.0.222" // httpApi = "http://192.168.0.222"
// httpApi = "http://192.168.0.108:8325" // httpApi = "http://192.168.0.108:8325"
// httpApi = 'http://192.168.0.108:8325' // httpApi = 'http://192.168.0.108:8325'

View File

@ -104,6 +104,9 @@
<view class="" v-if="jurisdiction == false && isShow == false"> <view class="" v-if="jurisdiction == false && isShow == false">
<emptyPage title="暂无信息"></emptyPage> <emptyPage title="暂无信息"></emptyPage>
</view> </view>
<u-picker :defaultIndex="[0,0]" :show="showPicker" ref="uPicker" :columns="columnData" @confirm="confirm"
@cancel="showPicker = false" @change="changeHandler" keyName="name"></u-picker>
</view> </view>
</template> </template>
@ -362,7 +365,7 @@ export default {
} }
}, },
Area () { Area() {
getArea({ getArea({
city_code: 510500 city_code: 510500
}).then(res => { }).then(res => {

View File

@ -5,7 +5,8 @@
<view class="site-box flex_a_c_j_sb" :style="{'background-color':backColor}"> <view class="site-box flex_a_c_j_sb" :style="{'background-color':backColor}">
<view :class="['place_wrapper','flex_a_c',isFshow?'sitebox':'']" @click="selectLocation"> <view :class="['place_wrapper','flex_a_c',isFshow?'sitebox':'']" @click="selectLocation">
<view :class="['iconfont','icon-weizhi',isFshow?'sitebox':'']" style="color:#000;margin-left: 20rpx;"> <view :class="['iconfont','icon-weizhi',isFshow?'sitebox':'']"
style="color:#000;margin-left: 20rpx;">
</view> </view>
<view class="town_name" style="color:#000;">{{street}}</view> <view class="town_name" style="color:#000;">{{street}}</view>
</view> </view>
@ -22,8 +23,8 @@
</view> </view>
<zbpSwiper ref='list' :isSelectPlace="true" :town='street' :show='show' :location_Arr="locationArr" @kkchange='kkchange' <zbpSwiper ref='list' :isSelectPlace="true" :town='street' :show='show' :location_Arr="locationArr"
@change='dchange'> @kkchange='kkchange' @change='dchange'>
</zbpSwiper> </zbpSwiper>
@ -37,78 +38,6 @@
</view> </view>
<view class="goodslist"> <view class="goodslist">
<WaterfallsFlow :wfList='cateGoods' /> <WaterfallsFlow :wfList='cateGoods' />
<!-- <view class="goods">
<view v-for="(item,index) in cateGoods" :key="index">
<view :class="[index%2==0?'goods_item':'goods_items']" @click="gogogo(item)">
<view class="kk" v-if="index%2==0">
<image :src="item.image[0]" mode="aspectFit" style="width:'365rpx';height:251rpx">
</image>
</view>
<view style="width:'365rpx';height:336rpx" v-else>
<image :src="item.image[0]" mode="aspectFit" style="width:'365rpx';height:336rpx">
</image>
</view>
<view class="goods_item_img" v-if="item.video_link.length>0">
<image src="@/static/images/sp.png" mode="aspectFit"></image>
</view>
<view class="botm">
<view class="title">{{item.title}}</view>
<view class="goods_info flex_a_c">
<view class="l_info flex_a_c">
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'"
mode="aspectFit" class="g_img"></image>
<view class="g_name">{{item.author && item.author.nickname}}</view>
</view>
<view class="nice_box" @click.stop="giveStart(item)">
<text class="iconfont"
:class="item.relevance_id ? 'icon-shoucang1' : 'icon-dianzan'"></text>
<text class="collect">{{item.count_start}}</text>
</view>
</view>
</view>
</view>
</view>
</view> -->
<!--<view class="goods">
<view v-for="(item,i) in cateGoods" :key="i" v-if='i%2!=0'>
<view class="goods_item" @click="gogogo(item)">
<view style="height: 251rpx;">
<u--image :src="item.image[0]" width="356rpx" height="251rpx" :showLoading="true"
lazyLoad fade duration="450">
<template v-slot:loading>
<u-loading-icon color="#f5f5f5"></u-loading-icon>
</template>
</u--image>
</view>
<view class="goods_item_img" v-if="item.video_link.length>0">
<image src="@/static/images/sp.png" mode="aspectFit"></image>
</view>
<view class="botm">
<view class="title">{{item.title}}</view>
<view class="goods_info flex_a_c">
<view class="l_info flex_a_c">
<image :src="(item.author && item.author.avatar) || '/static/images/f.png'"
mode="aspectFit" class="g_img"></image>
<view class="g_name">{{item.author && item.author.nickname}}</view>
</view>
<view class="nice_box" @click.stop="giveStart(item)">
<text class="iconfont"
:class="item.relevance_id ? 'icon-shoucang1' : 'icon-dianzan'"></text>
<text class="collect">{{item.count_start}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
-->
</view> </view>
<view class="empty_wrapper" v-if="emptyShow"> <view class="empty_wrapper" v-if="emptyShow">
<u-empty :show="emptyShow" mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"></u-empty> <u-empty :show="emptyShow" mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"></u-empty>
@ -226,19 +155,22 @@
this.getCateList() this.getCateList()
this.cateGoods = [] this.cateGoods = []
this.getGoods() this.getGoods()
this.Area() this.Area()
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}, },
onLoad() { onLoad() {
this.getCateList()
this.getArticle()
this.getGoods()
this.getCateList()
// this.getArticle()
this.getGoods()
this.Area() this.Area()
this.setPermissions() //this.setPermissions()
// this.openTongZhi() // this.openTongZhi()
uni.$on('connectstatusChange', (connectstatus) => { uni.$on('connectstatusChange', (connectstatus) => {
@ -253,11 +185,12 @@
}) })
}, },
onTabItemTap(e) {
console.log(e)
},
onReachBottom() { onReachBottom() {
if (this.status == 'nomore') return; if (this.status == 'nomore') return;
this.status = 'loading'; this.status = 'loading';
this.where.page = ++this.where.page; this.where.page = ++this.where.page;
this.getGoods() this.getGoods()
}, },
@ -298,7 +231,10 @@
}, },
// #endif // #endif
beforeDestroy() {
//
this.$bus.$off('value-updated')
},
methods: { methods: {
scrolling() { scrolling() {
@ -334,7 +270,13 @@
this.backColor = 'rgba(252, 252, 252, 1.0)' this.backColor = 'rgba(252, 252, 252, 1.0)'
this.isFshow = true this.isFshow = true
uni.setTabBarItem({
index: 0,
text: '',
id:'1',
iconPath: '/static/tabbar_icon/top.png',
selectedIconPath: '/static/tabbar_icon/top.png'
});
} }
@ -401,7 +343,7 @@
this.street = e.value[1].name this.street = e.value[1].name
this.$nextTick(() => { this.$nextTick(() => {
this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code); this.$bus.$emit('value-updated', e.value[1].name + ',' + e.value[1].code);
}) })
this.showPicker = false this.showPicker = false
@ -479,6 +421,7 @@
graphicLstApi(this.where).then(res => { graphicLstApi(this.where).then(res => {
this.cateGoods.push(...res.data.list) this.cateGoods.push(...res.data.list)
if (res.data.list.length < this.where.limit) this.status = 'nomore' if (res.data.list.length < this.where.limit) this.status = 'nomore'
if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true
@ -513,6 +456,7 @@
this.cateGoods = [] this.cateGoods = []
this.where.category_id = item.category_id this.where.category_id = item.category_id
this.emptyShow = false this.emptyShow = false
this.status = 'loadmore'
this.where.page = 1 this.where.page = 1
this.getGoods(item) this.getGoods(item)
this.street_id = item.id this.street_id = item.id
@ -543,7 +487,8 @@
this.street = res.data.address_component.street this.street = res.data.address_component.street
this.$nextTick(() => { this.$nextTick(() => {
this.$bus.$emit('value-updated',this.street + ',' +street_id); this.$bus.$emit('value-updated', this.street + ',' +
street_id);
}) })
}).catch(err => { }).catch(err => {
@ -792,6 +737,7 @@
/deep/.u-tabs__wrapper__nav__line { /deep/.u-tabs__wrapper__nav__line {
width: 46rpx; width: 46rpx;
margin-left: -2rpx;
} }

View File

@ -281,7 +281,7 @@
</view> </view>
</template> </template>
</m-tabbar> --> </m-tabbar> -->
<view class="" v-if='jurisdiction==false&&isShow==false'> <view class="" style="padding-top: 1px;" v-if='jurisdiction==false&&isShow==false'>
<emptyPage title="暂无信息"></emptyPage> <emptyPage title="暂无信息"></emptyPage>
</view> </view>

View File

@ -320,7 +320,7 @@
<view class="sys-head" :style="{height:statusBarHeight}"></view> <view class="sys-head" :style="{height:statusBarHeight}"></view>
<view class="tool-bar" @click='goBack()'> <view class="tool-bar" @click='goBack()'>
<image class="icon-xiangzuo" src="../static/img/index/icon-back.png"></image> <image class="icon-xiangzuo" src="@/static/image/icon-back.png"></image>
</view> </view>
</view> </view>
</view> </view>
@ -704,7 +704,12 @@
// }); // });
// })' // })'
// that.isUser ? // that.isUser ?
videoList().then(res=>{ videoList({
page: that.page,
limit: that.limit,
id:this.videoID
}).then(res=>{
that.getVideoData(res.data.list); that.getVideoData(res.data.list);
}) })
@ -1325,7 +1330,7 @@
.userInfo { .userInfo {
position: absolute; position: absolute;
bottom: 120px; bottom: 400rpx;
right: 10px; right: 10px;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -15,9 +15,14 @@
<!-- 头部导航 --> <!-- 头部导航 -->
<!-- <view v-if="!isUser" class="header" :style="{backgroundColor:'#Fff'}">
<view class="header" >
<view class="tool-bar"> <view class="tool-bar">
<view class='xiangzuo' @tap='goBack'>
<image src="@/static/images/icon-back.png" mode="aspectFit"></image>
</view>
</view>
<!-- <view class="tool-bar">
<view class='iconfont icon-xiangzuo' @tap='goBack'></view> <view class='iconfont icon-xiangzuo' @tap='goBack'></view>
</view> </view>
<view class="items" @click.stop="navTap(2)"> <view class="items" @click.stop="navTap(2)">
@ -31,11 +36,12 @@
</view> </view>
<view class="items" @click.stop="navTap(4)"> <view class="items" @click.stop="navTap(4)">
<text class="tName" :class="currentNav==4?'on':''">社区</text> <text class="tName" :class="currentNav==4?'on':''">社区</text>
</view>
</view> --> </view> -->
<swiper v-show="currentNav !== 3&&currentNav != 4" :style="'width: '+ windowWidth +'px; height: '+ windowHeight +'px;'"
:vertical="true" @animationfinish="animationfinish" @change="change" :current="k" :indicator-dots="false"> </view>
<swiper v-show="currentNav !== 3&&currentNav != 4"
:style="'width: '+ windowWidth +'px; height: '+ windowHeight +'px;'" :vertical="true"
@animationfinish="animationfinish" @change="change" :current="k" :indicator-dots="false">
<swiper-item v-for="(list,index) in dataList"> <swiper-item v-for="(list,index) in dataList">
<view v-if="max > index"> <view v-if="max > index">
@ -424,6 +430,7 @@
communityId: '', communityId: '',
Listcount: '', Listcount: '',
loadMore: true, loadMore: true,
videoshow: true
} }
}, },
watch: { watch: {
@ -741,9 +748,11 @@
} }
}, },
get() { get() {
let that = this let that = this
// 1.这里引入后端请求数据 // 1.这里引入后端请求数据
if(this.videoID){ if (that.videoshow) {
deoList(this.videoID).then(res => { deoList(this.videoID).then(res => {
that.videoData([res.data]) that.videoData([res.data])
if (res.data.list.length < that.limit) { if (res.data.list.length < that.limit) {
@ -756,10 +765,29 @@
duration: 2000 duration: 2000
}); });
}) })
this.videoID='' this.videoshow = false
}else{ } else {
videoList().then(res=>{ // videoList().then(res=>{
that.videoData(res.data.list); // that.videoData(res.data.list);
// })
// console.log(that.userUid,that.videoID)
videoList({
page: that.page,
limit: that.limit,
id: this.videoID
// is_star: that.isSatrt,
// community_id: that.videoID
}).then(res => {
that.videoData(res.data.list)
if (res.data.list.length < that.limit) {
this.loadMore = false;
}
}).catch(err => {
return uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
}) })
} }
@ -780,7 +808,8 @@
// icon: 'none', // icon: 'none',
// duration: 2000 // duration: 2000
// }); // });
// }) : // })
//:
// graphicLstApi({ // graphicLstApi({
// page: that.page, // page: that.page,
// limit: that.limit, // limit: that.limit,
@ -1306,12 +1335,15 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
.icon-xiangzuo { .xiangzuo {
width: 23rpx;
height: 42rpx;
margin-right: 40rpx; margin-right: 40rpx;
margin-left: 20rpx; margin-left: 20rpx;
font-size: 30rpx; image {
color: #333; width: 100%;
margin-top: 60rpx; height: 100%;
}
} }
} }
@ -1412,7 +1444,7 @@
.userInfo { .userInfo {
position: absolute; position: absolute;
bottom: 60rpx; bottom: 420rpx;
right: 20rpx; right: 20rpx;
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;

View File

@ -753,19 +753,22 @@
position: relative; position: relative;
.titlea-con { .titlea-con {
position: absolute; width: 96rpx;
top: 20rpx; height: 100rpx;
color: #f4f7fe; color: #f4f7fe;
.titlea { .titlea {
margin-top: 12rpx; position: absolute;
top: 32rpx;
margin-left: 12rpx; margin-left: 12rpx;
font-size: 16rpx; font-size: 16rpx;
font-family: PingFang SC-Semibold, PingFang SC; font-family: PingFang SC-Semibold, PingFang SC;
} }
.titleb { .titleb {
margin-top: 6rpx; position: absolute;
bottom:8rpx;
font-size: 37rpx; font-size: 37rpx;
font-family: PingFang SC-Semibold, PingFang SC; font-family: PingFang SC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
@ -801,10 +804,11 @@
.list-title-info { .list-title-info {
// width: 98rpx; // width: 98rpx;
height: 30rpx; height: 30rpx;
line-height: 30rpx;
background: #ffffff; background: #ffffff;
padding: 2rpx 2rpx; padding: 2rpx 2rpx;
display: flex; display: flex;
font-size: 10rpx;
font-size: 18rpx; font-size: 18rpx;
font-family: PingFang SC-Medium, PingFang SC; font-family: PingFang SC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;

BIN
static/empty/permission.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB