first commit
This commit is contained in:
1
金壶/appV1/components/HeaderTop/.pydio
Normal file
1
金壶/appV1/components/HeaderTop/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
bbbced31-c0e6-4c3f-bfbc-a22761326542
|
||||
76
金壶/appV1/components/HeaderTop/HeaderTop.vue
Normal file
76
金壶/appV1/components/HeaderTop/HeaderTop.vue
Normal file
@@ -0,0 +1,76 @@
|
||||
<template>
|
||||
<!-- 公共头部 状态栏40upx 带有左边返回键,右边消息图标 -->
|
||||
<view class="b_header bg-linear-gradient x-text-white text-center">
|
||||
{{page_title}}
|
||||
<!-- <view class="spot"></view> -->
|
||||
<image src="../../static/my/left.png" mode="" class="goback" @click="back()" style=""></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import public_function from '../../common/public_function.js'
|
||||
export default{
|
||||
props:{
|
||||
page_title:String
|
||||
},
|
||||
methods:{
|
||||
to_message(){
|
||||
uni.navigateTo({
|
||||
url:'../../pages/my/is_message'
|
||||
})
|
||||
},
|
||||
back(){
|
||||
var pages = getCurrentPages()
|
||||
var Route = pages[pages.length - 1].route;
|
||||
console.log(Route);
|
||||
if(Route.indexOf("pay_type") >= 1){
|
||||
uni.navigateTo({
|
||||
url: '../../pages/order/index?is_index=1',
|
||||
});
|
||||
}else if(Route.indexOf("path-list") >= 1){
|
||||
uni.navigateTo({
|
||||
url: '../../pages/order/index?is_index=1',
|
||||
});
|
||||
}else{
|
||||
uni.navigateBack({
|
||||
delta:1
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.b_header{
|
||||
height:148upx;
|
||||
position: relative;
|
||||
line-height:210upx;
|
||||
font-size: 32upx;
|
||||
.goback{
|
||||
position: absolute;
|
||||
bottom:29upx;
|
||||
left:31upx;
|
||||
height:30.9upx;
|
||||
width:18upx;
|
||||
padding:0 20upx;
|
||||
}
|
||||
.message{
|
||||
position: absolute;
|
||||
bottom:18upx;
|
||||
right:31upx;
|
||||
height:43upx;
|
||||
width:50upx;
|
||||
}
|
||||
.spot{
|
||||
height:12upx;
|
||||
width:12upx;
|
||||
background-color: #FF3824;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
bottom:52upx;
|
||||
right:31upx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
49
金壶/appV1/components/HeaderTop/PublicTop.vue
Normal file
49
金壶/appV1/components/HeaderTop/PublicTop.vue
Normal file
@@ -0,0 +1,49 @@
|
||||
<template>
|
||||
<!-- 公共头部 状态栏40upx 带有左边返回键,右边消息图标 -->
|
||||
<view class="b_header bg-linear-gradient x-text-white text-center">
|
||||
{{page_title}}
|
||||
<image src="../../static/my/left.png" mode="" class="goback" @click="back()"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import public_function from '../../common/public_function.js'
|
||||
export default{
|
||||
props:{
|
||||
page_title:String
|
||||
},
|
||||
methods:{
|
||||
back(){
|
||||
let routes = getCurrentPages();
|
||||
let Routes = routes[routes.length - 1].route;
|
||||
if(Routes.indexOf("order/index") >= 1){
|
||||
uni.switchTab({
|
||||
url: '../../pages/my/my'
|
||||
})
|
||||
}else{
|
||||
public_function.goBack();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.b_header{
|
||||
height:148upx;
|
||||
position: fixed;
|
||||
line-height:210upx;
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
font-size: 32upx;
|
||||
.goback{
|
||||
position: absolute;
|
||||
bottom:29upx;
|
||||
left:31upx;
|
||||
height:30.9upx;
|
||||
width:18upx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
103
金壶/appV1/components/HeaderTop/SearchTop.vue
Normal file
103
金壶/appV1/components/HeaderTop/SearchTop.vue
Normal file
@@ -0,0 +1,103 @@
|
||||
<template>
|
||||
<!-- 公共头部 状态栏40upx 带有左边返回键,右边消息图标 -->
|
||||
<view class="b_header bg-linear-gradient x-text-white text-center ">
|
||||
<image src="../../static/my/message.png" mode="" class="message" @click="to_message()"></image>
|
||||
<view class="is_top_search x-bg-white flex-1 " @click="search()">
|
||||
<input type="text" value="" placeholder="搜索" class="search_input h-100" />
|
||||
</view>
|
||||
<image src="../../static/my/left.png" mode="" class="goback" @click="back()"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import public_function from '../../common/public_function.js'
|
||||
export default{
|
||||
props:{
|
||||
page_title:String
|
||||
},
|
||||
methods:{
|
||||
to_message(){
|
||||
uni.navigateTo({
|
||||
url:'../../pages/my/is_message'
|
||||
})
|
||||
},
|
||||
back(){
|
||||
public_function.goBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.b_header{
|
||||
height:148upx;
|
||||
position: relative;
|
||||
line-height:210upx;
|
||||
font-size: 32upx;
|
||||
.goback{
|
||||
position: absolute;
|
||||
bottom:29upx;
|
||||
left:31upx;
|
||||
height:30.9upx;
|
||||
width:18upx;
|
||||
}
|
||||
.message{
|
||||
position: absolute;
|
||||
bottom:18upx;
|
||||
right:31upx;
|
||||
height:43upx;
|
||||
width:50upx;
|
||||
}
|
||||
.spot{
|
||||
height:12upx;
|
||||
width:12upx;
|
||||
background-color: #FF3824;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
bottom:52upx;
|
||||
right:31upx;
|
||||
}
|
||||
}
|
||||
.is_top_search {
|
||||
width:520upx;height: 56upx;
|
||||
margin-left: 90upx;
|
||||
overflow: hidden;
|
||||
border-radius: 20upx;
|
||||
}
|
||||
|
||||
.search_img {
|
||||
position: absolute;
|
||||
left: 40upx;
|
||||
top: 16upx;
|
||||
height: 27upx;
|
||||
width: 27upx;
|
||||
}
|
||||
|
||||
.search_input {
|
||||
margin-left: 70upx;
|
||||
width: 70%;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.search_list{
|
||||
width:520upx;height: 56upx;
|
||||
margin-left: 90upx;
|
||||
}
|
||||
.tui-search-input {
|
||||
width: 100%;
|
||||
height: 72rpx;
|
||||
background: #f5f6fa;
|
||||
border-radius: 36rpx;
|
||||
font-size: 30rpx;
|
||||
color: #a8abb8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tui-search-text {
|
||||
padding-left: 16rpx;
|
||||
}
|
||||
|
||||
</style>
|
||||
39
金壶/appV1/components/HeaderTop/ServiceTop.vue
Normal file
39
金壶/appV1/components/HeaderTop/ServiceTop.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<!-- 公共头部 状态栏40upx 带有左边返回键,右边消息图标 -->
|
||||
<view class="b_header bg-linear-gradient x-text-white text-center">
|
||||
{{page_title}}
|
||||
<image src="../../static/my/left.png" mode="" class="goback" @click="back()"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import public_function from '../../common/public_function.js'
|
||||
export default{
|
||||
props:{
|
||||
page_title:String
|
||||
},
|
||||
methods:{
|
||||
back(){
|
||||
public_function.goBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.b_header{
|
||||
height:148upx;
|
||||
position: fixed;
|
||||
line-height:210upx;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
font-size: 32upx;
|
||||
.goback{
|
||||
position: absolute;
|
||||
bottom:29upx;
|
||||
left:31upx;
|
||||
height:30.9upx;
|
||||
width:18upx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
39
金壶/appV1/components/HeaderTop/buyCar.vue
Normal file
39
金壶/appV1/components/HeaderTop/buyCar.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<!-- 公共头部 状态栏40upx 带有左边返回键,右边消息图标 -->
|
||||
<view class="b_header bg-linear-gradient x-text-white text-center">
|
||||
{{page_title}}
|
||||
|
||||
|
||||
<image src="../../static/my/left.png" mode="" class="goback" @click="back()"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import public_function from '../../common/public_function.js'
|
||||
export default{
|
||||
props:{
|
||||
page_title:String
|
||||
},
|
||||
methods:{
|
||||
back(){
|
||||
public_function.goBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.b_header{
|
||||
height:148upx;
|
||||
position: relative;
|
||||
line-height:210upx;
|
||||
.goback{
|
||||
position: absolute;
|
||||
bottom:29upx;
|
||||
left:31upx;
|
||||
height:30.9upx;
|
||||
width:18upx;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user