邓洁: 修改页面细节
1
App.vue
@@ -1,5 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<TabBar></TabBar>
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
|
<publishSlide v-if="slideVisit" @quitSlide="quitSlide"></publishSlide>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -24,6 +25,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
slideVisit: false,
|
||||||
currentItem: 0,
|
currentItem: 0,
|
||||||
tabbarList: [{
|
tabbarList: [{
|
||||||
id: 0,
|
id: 0,
|
||||||
@@ -41,9 +43,7 @@
|
|||||||
centerItem: false
|
centerItem: false
|
||||||
}, {
|
}, {
|
||||||
id: 2,
|
id: 2,
|
||||||
path: "/pages/publish/publish",
|
icon: "/static/tabbar/di_icon_fb.png",
|
||||||
icon: "/static/tabbar/di_icon_fb@2x.png",
|
|
||||||
selectIcon: "/static/tabbar/di_icon_fb@2x.png",
|
|
||||||
text: "发布",
|
text: "发布",
|
||||||
centerItem: true
|
centerItem: true
|
||||||
}, {
|
}, {
|
||||||
@@ -61,7 +61,6 @@
|
|||||||
text: "我的",
|
text: "我的",
|
||||||
centerItem: false
|
centerItem: false
|
||||||
}]
|
}]
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -69,17 +68,23 @@
|
|||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
quitSlide() {
|
||||||
|
this.slideVisit = false
|
||||||
|
},
|
||||||
changeItem(item) {
|
changeItem(item) {
|
||||||
|
if (item.id == 2) {
|
||||||
|
this.slideVisit = true
|
||||||
|
}
|
||||||
let _this = this;
|
let _this = this;
|
||||||
//_this.currentItem = item.id;
|
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: item.path
|
url: item.path
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style scoped>
|
||||||
view {
|
view {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -111,17 +116,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tabbar-container .item-active {
|
.tabbar-container .item-active {
|
||||||
color: #339967;
|
color: #CC3333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbar-container .center-item {
|
.tabbar-container .center-item {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbar-container .tabbar-item .item-top {
|
.tabbar-container .tabbar-item .item-top {
|
||||||
width: 46rpx;
|
width: 50rpx;
|
||||||
height: 46rpx;
|
height: 50rpx;
|
||||||
padding: 0rpx;
|
padding: 0rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +151,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tabbar-container .tabbar-item .item-bottom {
|
.tabbar-container .tabbar-item .item-bottom {
|
||||||
font-size: 20rpx;
|
font-size: 22rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 3rpx;
|
margin-top: 3rpx;
|
||||||
}
|
}
|
||||||
@@ -153,5 +159,6 @@
|
|||||||
.tabbar-container .center-item .item-bottom {
|
.tabbar-container .center-item .item-bottom {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 5rpx;
|
bottom: 5rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -55,7 +55,13 @@
|
|||||||
"urlCheck": false
|
"urlCheck": false
|
||||||
},
|
},
|
||||||
"usingComponents": true,
|
"usingComponents": true,
|
||||||
"permission" : {}
|
"permission": {
|
||||||
|
// 获取当前的地理位置、速度 配置
|
||||||
|
"scope.userLocation": {
|
||||||
|
"desc": "你的位置信息将用于小程序位置接口的效果展示"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
"mp-alipay": {
|
"mp-alipay": {
|
||||||
"usingComponents": true
|
"usingComponents": true
|
||||||
|
|||||||
55
pages.json
@@ -49,60 +49,41 @@
|
|||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path" : "pages/publish/publish",
|
|
||||||
"style" : {
|
|
||||||
"navigationBarTitleText" : "",
|
|
||||||
"enablePullDownRefresh" : false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/detail/detail",
|
"path": "pages/detail/detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "商品详情"
|
"navigationBarTitleText": "商品详情"
|
||||||
}
|
}
|
||||||
}
|
}, {
|
||||||
|
|
||||||
,{
|
|
||||||
"path": "pages/published/published",
|
"path": "pages/published/published",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
}
|
|
||||||
,{
|
|
||||||
"path": "pages/publish/publishTransfer/publishTransfer",
|
"path": "pages/publish/publishTransfer/publishTransfer",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}, {
|
||||||
,{
|
|
||||||
"path": "pages/publish/publishAddress/publishAddress",
|
"path": "pages/publish/publishAddress/publishAddress",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}, {
|
||||||
,{
|
|
||||||
"path": "pages/publish/publishRent/publishRent",
|
"path": "pages/publish/publishRent/publishRent",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}, {
|
||||||
,{
|
|
||||||
"path": "pages/publish/publishInvestment/publishInvestment",
|
"path": "pages/publish/publishInvestment/publishInvestment",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
@@ -114,8 +95,7 @@
|
|||||||
"borderStyle": "white",
|
"borderStyle": "white",
|
||||||
"backgroundColor": "#FFFFFF",
|
"backgroundColor": "#FFFFFF",
|
||||||
"custom": true,
|
"custom": true,
|
||||||
"list" : [
|
"list": [{
|
||||||
{
|
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"text": "首页",
|
"text": "首页",
|
||||||
"iconPath": "static/tabbar/di_icon_syh.png",
|
"iconPath": "static/tabbar/di_icon_syh.png",
|
||||||
@@ -127,12 +107,7 @@
|
|||||||
"iconPath": "static/tabbar/di_icon_zrh.png",
|
"iconPath": "static/tabbar/di_icon_zrh.png",
|
||||||
"selectedIconPath": "static/tabbar/di_icon_zr.png"
|
"selectedIconPath": "static/tabbar/di_icon_zr.png"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"pagePath" : "pages/publish/publish",
|
|
||||||
"text" : "发布",
|
|
||||||
"iconPath" : "static/tabbar/di_icon_fb.png",
|
|
||||||
"selectedIconPath" : "static/tabbar/di_icon_fb.png"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"pagePath": "pages/shopAddress/shopAddress",
|
"pagePath": "pages/shopAddress/shopAddress",
|
||||||
"text": "找店地址",
|
"text": "找店地址",
|
||||||
@@ -156,12 +131,10 @@
|
|||||||
"uniIdRouter": {},
|
"uniIdRouter": {},
|
||||||
"condition": { //模式配置,仅开发期间生效
|
"condition": { //模式配置,仅开发期间生效
|
||||||
"current": 0, //当前激活的模式(list 的索引项)
|
"current": 0, //当前激活的模式(list 的索引项)
|
||||||
"list": [
|
"list": [{
|
||||||
{
|
|
||||||
"name": "", //模式名称
|
"name": "", //模式名称
|
||||||
"path": "", //启动页面,必选
|
"path": "", //启动页面,必选
|
||||||
"query": "" //启动参数,在页面的onLoad函数里面得到
|
"query": "" //启动参数,在页面的onLoad函数里面得到
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view class="header-area">
|
|
||||||
<view class="search-box u-flex u-flex-nowarp u-row-between">
|
|
||||||
<view class="search-box-input" >
|
|
||||||
<u-input
|
|
||||||
:placeholder="hotSearchWord"
|
|
||||||
prefixIcon="search"
|
|
||||||
prefixIconStyle="font-size: 14px;color: #909399;margin-left:30rpx"
|
|
||||||
/>
|
|
||||||
</view>
|
|
||||||
<view class="search-box-location">
|
|
||||||
<view><u-icon name="map" color="#909399" size="15"></u-icon></view>
|
|
||||||
<view class="localtion-text"><text>{{position}}</text></view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="swiper">
|
|
||||||
<u-swiper :list="headerBgList"/>
|
|
||||||
<!-- <u-image :src=headerBgURL
|
|
||||||
class="header-bgimg" width="100vw" height="25vh"/> -->
|
|
||||||
</view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default{
|
|
||||||
name: "HomeHeader",
|
|
||||||
props: {
|
|
||||||
hotSearchWord:{
|
|
||||||
type: String,
|
|
||||||
default() {
|
|
||||||
return '热门关键词'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
headerBgList:{
|
|
||||||
type: Array,
|
|
||||||
default() {
|
|
||||||
return ["https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg","https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
position:{
|
|
||||||
type: String,
|
|
||||||
default() {
|
|
||||||
return '定位中'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
// hotSearchWord:'',
|
|
||||||
// headerBgList:[]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
options: {
|
|
||||||
styleIsolation: 'shared' // 解除样式隔离
|
|
||||||
},
|
|
||||||
computed:{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
// 搜索区域样式
|
|
||||||
.header-area {
|
|
||||||
position: relative;
|
|
||||||
.search-box {
|
|
||||||
// background: #000;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
left: 50%;
|
|
||||||
width: 84.6%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
.search-box-input {
|
|
||||||
border-radius: 10px;
|
|
||||||
padding-top: 3px !important;
|
|
||||||
margin-top: 8px;
|
|
||||||
background-color: #fff;
|
|
||||||
.u-border{
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
// 组件内部样式修改
|
|
||||||
.u-input__content {
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 1;
|
|
||||||
height: 10px;
|
|
||||||
.u-input__content__field-wrapper__field {
|
|
||||||
// height: 10px !important;
|
|
||||||
font-size: 10px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.search-box-location{
|
|
||||||
position: absolute;
|
|
||||||
z-index: 1;
|
|
||||||
height: 25px;
|
|
||||||
// width: 15vw;
|
|
||||||
top: 15px;
|
|
||||||
right: 10%;
|
|
||||||
|
|
||||||
// transform: translate(-100%);
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
.localtion-text{
|
|
||||||
padding-left: 8px;
|
|
||||||
font-size: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.header-bgimg {
|
|
||||||
width: 100vw;
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// 轮播图样式
|
|
||||||
.swiper {
|
|
||||||
.u-swiper {
|
|
||||||
border-radius:0 !important;
|
|
||||||
}
|
|
||||||
.u-swiper__wrapper__item__wrapper__image{
|
|
||||||
border-radius:0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
@@ -1,11 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="home-base-bg">
|
<view class="home-base-bg">
|
||||||
<view class="search_box">
|
|
||||||
<view class="search_box_border">
|
|
||||||
<!-- <u-input placeholder="搜索优质产品" placeholder-style="color: #969696" prefixIcon="search"
|
|
||||||
prefixIconStyle="font-size: 22px;color: #909399;margin-left:30rpx" readonly>
|
|
||||||
</u-input> -->
|
|
||||||
</view>
|
|
||||||
<InputAndSwiper></InputAndSwiper>
|
<InputAndSwiper></InputAndSwiper>
|
||||||
<TabBar :current-page="0"></TabBar>
|
<TabBar :current-page="0"></TabBar>
|
||||||
<view class="nav-card">
|
<view class="nav-card">
|
||||||
@@ -45,16 +39,10 @@
|
|||||||
</u-grid>
|
</u-grid>
|
||||||
</view>
|
</view>
|
||||||
<view class="news-box">
|
<view class="news-box">
|
||||||
<u-notice-bar
|
<u-notice-bar :text="newsTextLists" :bg-color="$uni-bg-color"></u-notice-bar>
|
||||||
:text="newsTextLists"
|
|
||||||
:bg-color="$uni-bg-color"
|
|
||||||
></u-notice-bar>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<ShowShopListItem></ShowShopListItem>
|
<ShowShopListItem></ShowShopListItem>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -68,7 +56,8 @@
|
|||||||
'寒雨连江夜入吴',
|
'寒雨连江夜入吴',
|
||||||
'平明送客楚山孤',
|
'平明送客楚山孤',
|
||||||
'洛阳亲友如相问',
|
'洛阳亲友如相问',
|
||||||
'一片冰心在玉壶'],
|
'一片冰心在玉壶'
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -85,6 +74,7 @@
|
|||||||
background-color: $uni-bg-color-grey;
|
background-color: $uni-bg-color-grey;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-card {
|
.nav-card {
|
||||||
margin: 15px 7px;
|
margin: 15px 7px;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
@@ -97,5 +87,4 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view>
|
|
||||||
<view class="test">
|
|
||||||
<button @click="slide()">test</button>
|
|
||||||
<publishSlide v-if="slideVisit" @quitSlide="quitSlide"></publishSlide>
|
|
||||||
</view>
|
|
||||||
<TabBar :current-page="2" />
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
slideVisit : false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
slide(){
|
|
||||||
this.slideVisit = true
|
|
||||||
},
|
|
||||||
quitSlide(){
|
|
||||||
this.slideVisit = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 1008 B After Width: | Height: | Size: 989 B |
|
Before Width: | Height: | Size: 1017 B After Width: | Height: | Size: 983 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |