Commit 69d27797 authored by jyx's avatar jyx

代码优化

parent 9615f61c
<template> <template>
<view> <view>
<uni-popup type="bottom" ref="select" :maskClick="false" :isMaskClick="false"> <uni-popup type="bottom" ref="select" :maskClick="false" :isMaskClick="false">
<view class="body"> <view class="body" style="width: 100%;height: 100%;">
<scroll-view scroll-y style="height: 80%;"> <scroll-view scroll-y>
<view style="display: flex;flex-direction: column;align-items: flex-end;"> <view style="display: flex;flex-direction: column;align-items: flex-end;">
<image @click="handleClose" <image @click="handleClose"
style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 15rpx;" style="width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 15rpx;"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<script> <script>
import common from '@/mixins/common'; import common from '@/mixins/common';
export default { export default {
name: 'popup', name: 'coinPopup',
mixins: [common], mixins: [common],
props: { props: {
show: { show: {
...@@ -157,6 +157,8 @@ ...@@ -157,6 +157,8 @@
<style lang="scss"> <style lang="scss">
.body { .body {
padding: 20rpx 0 30rpx 0;
border-radius: 20rpx 20rpx 0 0;
background-color: white; background-color: white;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
...@@ -90,6 +90,13 @@ ...@@ -90,6 +90,13 @@
"navigationBarBackgroundColor": "#2196f3", "navigationBarBackgroundColor": "#2196f3",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, {
"path": "video/newVideoDetail",
"style": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#2196f3",
"navigationBarTextStyle": "black"
}
}] }]
}, { }, {
"root": "pagesD", "root": "pagesD",
......
...@@ -274,16 +274,16 @@ ...@@ -274,16 +274,16 @@
}); });
}, },
handleBanner(item) { handleBanner(item) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(item))); navigateTo(`/pagesC/video/newVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)));
}, },
handleInfo(item) { handleInfo(item) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(item))); navigateTo(`/pagesC/video/newVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)));
}, },
handleTop(item) { handleTop(item) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(item))); navigateTo(`/pagesC/video/newVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)));
}, },
handleBottomPlay(item) { handleBottomPlay(item) {
navigateTo(`/pagesC/video/videoDetail?data=` + encodeURIComponent(JSON.stringify(item))); navigateTo(`/pagesC/video/newVideoDetail?data=` + encodeURIComponent(JSON.stringify(item)));
}, },
handleBottomClose() { handleBottomClose() {
this.newRecordBean = null; this.newRecordBean = null;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment