|
@@ -2,7 +2,8 @@
|
|
<import name="category-page" src="../Category/index.ux"></import>
|
|
<import name="category-page" src="../Category/index.ux"></import>
|
|
<import name="shelf-page" src="../Shelf/index.ux"></import>
|
|
<import name="shelf-page" src="../Shelf/index.ux"></import>
|
|
<import name="my-page" src="../My/index.ux"></import>
|
|
<import name="my-page" src="../My/index.ux"></import>
|
|
- <import name="sign-page" src="../../components/sign/index.ux"></import>
|
|
|
|
|
|
+<import name="sign-page" src="../../components/sign/index.ux"></import>
|
|
|
|
+<import name="short-page" src="../../components/short/index.ux"></import>
|
|
<template>
|
|
<template>
|
|
<stack class="stack-wrap">
|
|
<stack class="stack-wrap">
|
|
<div class="index-wrap">
|
|
<div class="index-wrap">
|
|
@@ -26,7 +27,9 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <sign-page if="{{showSignPop}}" onemitEvt="emitEvt"></sign-page>
|
|
|
|
|
|
+ <image src="../../assets/imgs/sign_show.png" class="sign-icon" @click="changeSignPop"> </image>
|
|
|
|
+ <sign-page if="{{showSignPop}}" ></sign-page>
|
|
|
|
+ <short-page if="{{showShortPop}}"></short-page>
|
|
<div class="stack-popup" @click="closeWrap" if="showPopup">
|
|
<div class="stack-popup" @click="closeWrap" if="showPopup">
|
|
<div class="customer-popup">
|
|
<div class="customer-popup">
|
|
<text class="title">联系客服</text>
|
|
<text class="title">联系客服</text>
|
|
@@ -43,8 +46,7 @@
|
|
<script>
|
|
<script>
|
|
import clipboard from '@system.clipboard';
|
|
import clipboard from '@system.clipboard';
|
|
import prompt from '@system.prompt';
|
|
import prompt from '@system.prompt';
|
|
-import {downImg,getStore} from '../../api/utils.js';
|
|
|
|
-import storage from "@system.storage";
|
|
|
|
|
|
+import { downImg, getStore } from '../../api/utils.js';
|
|
export default {
|
|
export default {
|
|
private: {
|
|
private: {
|
|
tabbar: [
|
|
tabbar: [
|
|
@@ -79,14 +81,17 @@ export default {
|
|
],
|
|
],
|
|
current: 1,
|
|
current: 1,
|
|
showPopup: false,
|
|
showPopup: false,
|
|
- showSignPop:true
|
|
|
|
|
|
+ showSignPop: false,
|
|
|
|
+ showShortPop:false
|
|
},
|
|
},
|
|
- async onInit(){
|
|
|
|
- this.$on('dispathEvt',this.changeSignPop);
|
|
|
|
|
|
+ onInit() {
|
|
|
|
+ this.$on('dispathEvt', this.changeSignPop);
|
|
//今日已签到过不在弹框签到
|
|
//今日已签到过不在弹框签到
|
|
- let signData = await getStore('SIGN_DATE',1);
|
|
|
|
- if(signData && signData.isSign) this.showSignPop=false;
|
|
|
|
- },
|
|
|
|
|
|
+ if(this.$app.$def.data.backClickCount === 0){
|
|
|
|
+ this.showShortPop=true;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
onBackPress() {
|
|
onBackPress() {
|
|
// 退出逻辑
|
|
// 退出逻辑
|
|
if (this.$app.$def.data.backClickCount === 0) {
|
|
if (this.$app.$def.data.backClickCount === 0) {
|
|
@@ -110,7 +115,7 @@ export default {
|
|
this.current = 1;
|
|
this.current = 1;
|
|
},
|
|
},
|
|
changeSignPop() {
|
|
changeSignPop() {
|
|
- this.showSignPop = false;
|
|
|
|
|
|
+ this.showSignPop = !this.showSignPop;
|
|
},
|
|
},
|
|
closeWrap() {
|
|
closeWrap() {
|
|
this.showPopup = false;
|
|
this.showPopup = false;
|