|
|
@@ -8,7 +8,16 @@
|
|
|
}
|
|
|
</config>
|
|
|
<template>
|
|
|
- <div class="page-container">
|
|
|
+ <scroll-view
|
|
|
+ class="page-container"
|
|
|
+ scroll-y="true"
|
|
|
+ enhanced
|
|
|
+ :show-scrollbar="false"
|
|
|
+ style="100vh"
|
|
|
+ upper-threshold="750rpx"
|
|
|
+ :bounces="false"
|
|
|
+ @scroll="scroll"
|
|
|
+ >
|
|
|
<div class="page-scroll">
|
|
|
<div class="wrapper">
|
|
|
<div
|
|
|
@@ -76,7 +85,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="min-width: 13px;"></div>
|
|
|
- <div class="col" style="background: #e3f3ff;" @click="showQrCode = true">
|
|
|
+ <div class="col" style="background: #e3f3ff;" @click="myCode">
|
|
|
<img src="../static/imgs/icon_code.png" class="icon" />
|
|
|
<div class="info">
|
|
|
<div class="label">我的核销码</div>
|
|
|
@@ -103,7 +112,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <navigation-bar
|
|
|
+ color="light"
|
|
|
+ :showLeftIcon="false"
|
|
|
+ :title="transparent ? '' : '我的'"
|
|
|
+ :transparent="transparent"
|
|
|
+ ></navigation-bar>
|
|
|
<van-overlay :show="showQrCode">
|
|
|
<div class="qr-code-dialog">
|
|
|
<div class="body">
|
|
|
@@ -116,13 +130,15 @@
|
|
|
<img src="../static/imgs/icon_close.png" class="icon-close" @click="showQrCode = false" />
|
|
|
</div>
|
|
|
</van-overlay>
|
|
|
- </div>
|
|
|
+ </scroll-view>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapState } from 'vuex';
|
|
|
import base64 from '../base64';
|
|
|
+import NavigationBar from '../components/navigationBar';
|
|
|
const qrcode = require('../qrcode/index');
|
|
|
export default {
|
|
|
+ components: { NavigationBar },
|
|
|
onShareAppMessage(res) {
|
|
|
return this.share();
|
|
|
},
|
|
|
@@ -146,7 +162,8 @@ export default {
|
|
|
commission: 0,
|
|
|
promote: 0
|
|
|
},
|
|
|
- packages: []
|
|
|
+ packages: [],
|
|
|
+ transparent: true
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -192,6 +209,18 @@ export default {
|
|
|
if (this.checkLogin()) {
|
|
|
this.navigateTo('/pages/order');
|
|
|
}
|
|
|
+ },
|
|
|
+ myCode() {
|
|
|
+ if (this.checkLogin()) {
|
|
|
+ this.showQrCode = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ scroll(e) {
|
|
|
+ if (e.detail.scrollTop > 120) {
|
|
|
+ this.transparent = false;
|
|
|
+ } else {
|
|
|
+ this.transparent = true;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -348,6 +377,8 @@ export default {
|
|
|
color: darken(@prim, 30%);
|
|
|
font-size: 14px;
|
|
|
flex-grow: 1;
|
|
|
+ font-weight: bold;
|
|
|
+ font-weight: 500;
|
|
|
}
|
|
|
.btn {
|
|
|
width: 56px;
|