邓洁: 修改页面细节
3
App.vue
@@ -1,5 +1,4 @@
|
||||
<template>
|
||||
<TabBar></TabBar>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
@@ -19,4 +18,4 @@
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
@import 'uview-ui/index.scss';
|
||||
</style>
|
||||
</style>
|
||||
@@ -11,6 +11,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<publishSlide v-if="slideVisit" @quitSlide="quitSlide"></publishSlide>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -24,6 +25,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
slideVisit: false,
|
||||
currentItem: 0,
|
||||
tabbarList: [{
|
||||
id: 0,
|
||||
@@ -41,9 +43,7 @@
|
||||
centerItem: false
|
||||
}, {
|
||||
id: 2,
|
||||
path: "/pages/publish/publish",
|
||||
icon: "/static/tabbar/di_icon_fb@2x.png",
|
||||
selectIcon: "/static/tabbar/di_icon_fb@2x.png",
|
||||
icon: "/static/tabbar/di_icon_fb.png",
|
||||
text: "发布",
|
||||
centerItem: true
|
||||
}, {
|
||||
@@ -61,7 +61,6 @@
|
||||
text: "我的",
|
||||
centerItem: false
|
||||
}]
|
||||
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
@@ -69,17 +68,23 @@
|
||||
uni.hideTabBar();
|
||||
},
|
||||
methods: {
|
||||
quitSlide() {
|
||||
this.slideVisit = false
|
||||
},
|
||||
changeItem(item) {
|
||||
if (item.id == 2) {
|
||||
this.slideVisit = true
|
||||
}
|
||||
let _this = this;
|
||||
//_this.currentItem = item.id;
|
||||
uni.switchTab({
|
||||
url: item.path
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
<style scoped>
|
||||
view {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@@ -111,17 +116,18 @@
|
||||
}
|
||||
|
||||
.tabbar-container .item-active {
|
||||
color: #339967;
|
||||
color: #CC3333;
|
||||
}
|
||||
|
||||
.tabbar-container .center-item {
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.tabbar-container .tabbar-item .item-top {
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
padding: 0rpx;
|
||||
}
|
||||
|
||||
@@ -145,7 +151,7 @@
|
||||
}
|
||||
|
||||
.tabbar-container .tabbar-item .item-bottom {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
width: 100%;
|
||||
margin-top: 3rpx;
|
||||
}
|
||||
@@ -153,5 +159,6 @@
|
||||
.tabbar-container .center-item .item-bottom {
|
||||
position: absolute;
|
||||
bottom: 5rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
</style>
|
||||
150
manifest.json
@@ -1,73 +1,79 @@
|
||||
{
|
||||
"name" : "city-store-transfer",
|
||||
"appid" : "__UNI__F3EA0D6",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules" : {},
|
||||
/* 应用发布信息 */
|
||||
"distribute" : {
|
||||
/* android打包配置 */
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "wxda178d12ae834c45",
|
||||
"setting" : {
|
||||
"urlCheck" : false
|
||||
},
|
||||
"usingComponents" : true,
|
||||
"permission" : {}
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-toutiao" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion" : "2"
|
||||
}
|
||||
"name": "city-store-transfer",
|
||||
"appid": "__UNI__F3EA0D6",
|
||||
"description": "",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": "100",
|
||||
"transformPx": false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules": {},
|
||||
/* 应用发布信息 */
|
||||
"distribute": {
|
||||
/* android打包配置 */
|
||||
"android": {
|
||||
"permissions": [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios": {},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs": {}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp": {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin": {
|
||||
"appid": "wxda178d12ae834c45",
|
||||
"setting": {
|
||||
"urlCheck": false
|
||||
},
|
||||
"usingComponents": true,
|
||||
"permission": {
|
||||
// 获取当前的地理位置、速度 配置
|
||||
"scope.userLocation": {
|
||||
"desc": "你的位置信息将用于小程序位置接口的效果展示"
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"mp-alipay": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-baidu": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-toutiao": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"uniStatistics": {
|
||||
"enable": false
|
||||
},
|
||||
"vueVersion": "2"
|
||||
}
|
||||
295
pages.json
@@ -1,167 +1,140 @@
|
||||
{
|
||||
"easycom" : {
|
||||
"autoscan" : true, //是否自动扫描组件
|
||||
"custom" : {
|
||||
"^u-(.*)" : "uview-ui/components/u-$1/u-$1.vue",
|
||||
"^ua-(.*)" : "@/components/uview-ui/components/u-$1/u-$1.vue",
|
||||
"^customer-(.*)" : "@/components/uni-$1.vue" // 匹配components目录内的vue文件
|
||||
}
|
||||
},
|
||||
"pages" : [
|
||||
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
{
|
||||
"path" : "pages/index/index",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "速配商铺",
|
||||
"navigationBarTextStyle" : "black",
|
||||
"navigationBarBackgroundColor" : "#FFFFFF",
|
||||
//导航栏取消
|
||||
// "navigationStyle": "custom",
|
||||
//是否开启下拉刷新
|
||||
"enablePullDownRefresh" : true
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/shopTransfer/shopTransfer",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "店铺转让",
|
||||
"navigationBarTextStyle" : "black",
|
||||
"navigationBarBackgroundColor" : "#FFFFFF",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
//+
|
||||
{
|
||||
"path" : "pages/shopAddress/shopAddress",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "找店地址",
|
||||
"navigationBarTextStyle" : "black",
|
||||
"navigationBarBackgroundColor" : "#FFFFFF",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/my/my",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "我的",
|
||||
"navigationBarTextStyle" : "black",
|
||||
"navigationBarBackgroundColor" : "#FFFFFF",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/publish/publish",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "",
|
||||
"enablePullDownRefresh" : false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/detail/detail",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "商品详情"
|
||||
"easycom": {
|
||||
"autoscan": true, //是否自动扫描组件
|
||||
"custom": {
|
||||
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue",
|
||||
"^ua-(.*)": "@/components/uview-ui/components/u-$1/u-$1.vue",
|
||||
"^customer-(.*)": "@/components/uni-$1.vue" // 匹配components目录内的vue文件
|
||||
}
|
||||
},
|
||||
"pages": [
|
||||
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "速配商铺",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
//导航栏取消
|
||||
// "navigationStyle": "custom",
|
||||
//是否开启下拉刷新
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
}
|
||||
|
||||
,{
|
||||
"path" : "pages/published/published",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/publish/publishTransfer/publishTransfer",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/publish/publishAddress/publishAddress",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/publish/publishRent/publishRent",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/publish/publishInvestment/publishInvestment",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"tabBar" : {
|
||||
"color" : "#CCCCCC",
|
||||
"borderStyle" : "white",
|
||||
"backgroundColor" : "#FFFFFF",
|
||||
"custom" : true,
|
||||
"list" : [
|
||||
{
|
||||
"pagePath" : "pages/index/index",
|
||||
"text" : "首页",
|
||||
"iconPath" : "static/tabbar/di_icon_syh.png",
|
||||
"selectedIconPath" : "static/tabbar/di_icon_sy.png"
|
||||
},
|
||||
{
|
||||
"pagePath" : "pages/shopTransfer/shopTransfer",
|
||||
"text" : "店铺转让",
|
||||
"iconPath" : "static/tabbar/di_icon_zrh.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",
|
||||
"text" : "找店地址",
|
||||
"iconPath" : "static/tabbar/di_icon_dzh.png",
|
||||
"selectedIconPath" : "static/tabbar/di_icon_dz.png"
|
||||
},
|
||||
{
|
||||
"pagePath" : "pages/my/my",
|
||||
"text" : "店铺转让",
|
||||
"iconPath" : "static/tabbar/di_icon_wdh.png",
|
||||
"selectedIconPath" : "static/tabbar/di_icon_wd.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"globalStyle" : {
|
||||
"navigationBarTextStyle" : "black",
|
||||
"navigationBarTitleText" : "uni-app",
|
||||
"navigationBarBackgroundColor" : "#F8F8F8",
|
||||
"backgroundColor" : "#F8F8F8"
|
||||
},
|
||||
"uniIdRouter" : {},
|
||||
"condition" : { //模式配置,仅开发期间生效
|
||||
"current": 0, //当前激活的模式(list 的索引项)
|
||||
"list": [
|
||||
},
|
||||
{
|
||||
"path": "pages/shopTransfer/shopTransfer",
|
||||
"style": {
|
||||
"navigationBarTitleText": "店铺转让",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
//+
|
||||
{
|
||||
"path": "pages/shopAddress/shopAddress",
|
||||
"style": {
|
||||
"navigationBarTitleText": "找店地址",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/my/my",
|
||||
"style": {
|
||||
"navigationBarTitleText": "我的",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/detail/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "商品详情"
|
||||
}
|
||||
}, {
|
||||
"path": "pages/published/published",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": true
|
||||
}
|
||||
}, {
|
||||
"path": "pages/publish/publishTransfer/publishTransfer",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
"path": "pages/publish/publishAddress/publishAddress",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
"path": "pages/publish/publishRent/publishRent",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}, {
|
||||
"path": "pages/publish/publishInvestment/publishInvestment",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"tabBar": {
|
||||
"color": "#CCCCCC",
|
||||
"borderStyle": "white",
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"custom": true,
|
||||
"list": [{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "首页",
|
||||
"iconPath": "static/tabbar/di_icon_syh.png",
|
||||
"selectedIconPath": "static/tabbar/di_icon_sy.png"
|
||||
},
|
||||
{
|
||||
"name": "", //模式名称
|
||||
"path": "", //启动页面,必选
|
||||
"query": "" //启动参数,在页面的onLoad函数里面得到
|
||||
"pagePath": "pages/shopTransfer/shopTransfer",
|
||||
"text": "店铺转让",
|
||||
"iconPath": "static/tabbar/di_icon_zrh.png",
|
||||
"selectedIconPath": "static/tabbar/di_icon_zr.png"
|
||||
},
|
||||
|
||||
{
|
||||
"pagePath": "pages/shopAddress/shopAddress",
|
||||
"text": "找店地址",
|
||||
"iconPath": "static/tabbar/di_icon_dzh.png",
|
||||
"selectedIconPath": "static/tabbar/di_icon_dz.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/my/my",
|
||||
"text": "店铺转让",
|
||||
"iconPath": "static/tabbar/di_icon_wdh.png",
|
||||
"selectedIconPath": "static/tabbar/di_icon_wd.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"uniIdRouter": {},
|
||||
"condition": { //模式配置,仅开发期间生效
|
||||
"current": 0, //当前激活的模式(list 的索引项)
|
||||
"list": [{
|
||||
"name": "", //模式名称
|
||||
"path": "", //启动页面,必选
|
||||
"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,66 +1,54 @@
|
||||
<template>
|
||||
<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>
|
||||
<TabBar :current-page="0"></TabBar>
|
||||
<view class="nav-card">
|
||||
<u-grid :col="4">
|
||||
<u-grid-item>
|
||||
<u-icon name="photo" :size="30"></u-icon>
|
||||
<view class="grid-text">图片</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="lock" :size="30"></u-icon>
|
||||
<view class="grid-text">锁头</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="photo" :size="30"></u-icon>
|
||||
<view class="grid-text">图片</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="lock" :size="30"></u-icon>
|
||||
<view class="grid-text">锁头</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
<u-grid-item>
|
||||
<u-icon name="photo" :size="30"></u-icon>
|
||||
<view class="grid-text">图片</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="lock" :size="30"></u-icon>
|
||||
<view class="grid-text">锁头</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="photo" :size="30"></u-icon>
|
||||
<view class="grid-text">图片</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="lock" :size="30"></u-icon>
|
||||
<view class="grid-text">锁头</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
<u-grid-item>
|
||||
<u-icon name="hourglass" :size="30"></u-icon>
|
||||
<view class="grid-text">沙漏</view>
|
||||
</u-grid-item>
|
||||
</u-grid>
|
||||
</view>
|
||||
<view class="news-box">
|
||||
<u-notice-bar
|
||||
:text="newsTextLists"
|
||||
:bg-color="$uni-bg-color"
|
||||
></u-notice-bar>
|
||||
<u-notice-bar :text="newsTextLists" :bg-color="$uni-bg-color"></u-notice-bar>
|
||||
</view>
|
||||
|
||||
<ShowShopListItem></ShowShopListItem>
|
||||
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -68,14 +56,15 @@
|
||||
'寒雨连江夜入吴',
|
||||
'平明送客楚山孤',
|
||||
'洛阳亲友如相问',
|
||||
'一片冰心在玉壶'],
|
||||
'一片冰心在玉壶'
|
||||
],
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -85,11 +74,12 @@
|
||||
background-color: $uni-bg-color-grey;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nav-card {
|
||||
margin: 15px 7px;
|
||||
padding: 10px 0;
|
||||
background-color: $uni-bg-color;
|
||||
|
||||
|
||||
border-radius: $uni-border-radius-lg;
|
||||
box-shadow: 0 3px 3px 0 $u-border-color;
|
||||
|
||||
@@ -97,5 +87,4 @@
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
</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 |