|
|
@@ -8,17 +8,15 @@
|
|
|
</view>
|
|
|
<view class="rightbtn" @click="rightBtnClick">{{rightBtnText}}</view>
|
|
|
</view>
|
|
|
- <scroll-view scroll-y >
|
|
|
-
|
|
|
- <view class="scroll-content">
|
|
|
-
|
|
|
- <slot></slot>
|
|
|
- </view>
|
|
|
- </scroll-view>
|
|
|
-</view>
|
|
|
+ <scroll-view scroll-y class="scroll-content">
|
|
|
+ <!-- <view class="scroll-content">
|
|
|
+ -->
|
|
|
+ <slot></slot>
|
|
|
+ <!-- </view> -->
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
export default {
|
|
|
name: 'z-slide-card',
|
|
|
@@ -27,9 +25,9 @@
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
- title:String,
|
|
|
- rightBtnText:String,
|
|
|
-
|
|
|
+ title: String,
|
|
|
+ rightBtnText: String,
|
|
|
+
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -46,12 +44,12 @@
|
|
|
methods: {
|
|
|
//禁止触发后面移动
|
|
|
moveHandle() {},
|
|
|
- rightBtnClick(){
|
|
|
+ rightBtnClick() {
|
|
|
// this.visiblehide = true;
|
|
|
this.$emit('rightClick');
|
|
|
// this.$emit('update:visible', false)
|
|
|
},
|
|
|
- close(){
|
|
|
+ close() {
|
|
|
this.visiblehide = true;
|
|
|
this.$emit('update:visible', false);
|
|
|
},
|
|
|
@@ -65,25 +63,30 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
- @keyframes show{
|
|
|
- 0%{
|
|
|
+ @keyframes show {
|
|
|
+ 0% {
|
|
|
left: 100%;
|
|
|
}
|
|
|
- 100%{
|
|
|
+
|
|
|
+ 100% {
|
|
|
left: 0;
|
|
|
}
|
|
|
}
|
|
|
- @keyframes hide{
|
|
|
- 0%{
|
|
|
+
|
|
|
+ @keyframes hide {
|
|
|
+ 0% {
|
|
|
left: 0;
|
|
|
}
|
|
|
- 100%{
|
|
|
+
|
|
|
+ 100% {
|
|
|
left: 100%;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.z-slide-card {
|
|
|
text-align: left !important;
|
|
|
-position: relative;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
.scroll-area {
|
|
|
width: 100vw;
|
|
|
height: 100vh;
|
|
|
@@ -111,20 +114,22 @@ position: relative;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- .top_bar{
|
|
|
- height: 98rpx;
|
|
|
- background: #354054;
|
|
|
+
|
|
|
+ .top_bar {
|
|
|
+ height: 98rpx;
|
|
|
+ background: #354054;
|
|
|
+ color: white;
|
|
|
+ font-size: 36rpx;
|
|
|
+
|
|
|
+ .go_back {
|
|
|
color: white;
|
|
|
- font-size: 36rpx;
|
|
|
- .go_back {
|
|
|
- color: white;
|
|
|
- width: 30rpx;
|
|
|
- font-size: 30rpx;
|
|
|
- height: 30rpx;
|
|
|
- }
|
|
|
- .rightbtn{
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
+ width: 30rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ .rightbtn {
|
|
|
+ font-size: 28rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|