no message
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<view class="my-btn" @click.stop="onClick"
|
||||
:style="{
|
||||
'border-radius':br,'min-height':mh,'background-color':bg,width:wd
|
||||
}">
|
||||
<text :style="{
|
||||
color:color,'font-size':fz,'font-weight':fw
|
||||
}">{{text}}</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props:{
|
||||
text:{
|
||||
type:String,
|
||||
default:'确认'
|
||||
},
|
||||
wd:{
|
||||
type:String,
|
||||
default:'100%'
|
||||
},
|
||||
mh:{
|
||||
type:String,
|
||||
default:'88rpx'
|
||||
},
|
||||
bg:{
|
||||
type:String,
|
||||
default:'#7934F6'
|
||||
},
|
||||
br:{
|
||||
type:String,
|
||||
default:'16rpx'
|
||||
},
|
||||
color:{
|
||||
type:String,
|
||||
default:'#fff'
|
||||
},
|
||||
fz:{
|
||||
type:String,
|
||||
default:'32rpx'
|
||||
},
|
||||
fw:{
|
||||
type:String,
|
||||
default:'500'
|
||||
}
|
||||
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
methods: {
|
||||
onClick(){
|
||||
this.$emit('ok');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.my-btn{
|
||||
width:100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -51,9 +51,10 @@
|
||||
}
|
||||
const leftPathType = this.leftPathType;
|
||||
if(leftPathType === "navigateTo"){
|
||||
uni.navigateTo({
|
||||
url:leftPath,
|
||||
})
|
||||
// uni.navigateTo({
|
||||
// url:leftPath,
|
||||
// })
|
||||
uni.navigateBack();
|
||||
}else if(leftPathType === "switchTab"){
|
||||
uni.switchTab({
|
||||
url: leftPath,
|
||||
|
||||
Reference in New Issue
Block a user