Commit 9995ec5b by songbingqi

修复我的页面优惠券列表ios异常问题

parent bc52288d
<template>
<view class="all">
<view class="all" :key="KEYindex">
<view class="part" :style="{'margin-bottom':indexValue?'200rpx':'0rpx'}">
<view class="partOne">
<view class="one_left">
......@@ -68,6 +68,7 @@
export default {
props:{
indexValue:[Boolean],
KEYindex:[Number],
type:{
type:String,
default(){
......@@ -285,6 +286,7 @@ export default {
background: #0050F6;
border-radius: 2rpx;
font-size: 24rpx;
z-index: 999;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
......@@ -296,6 +298,7 @@ export default {
background: #999999;
border-radius: 2rpx;
font-size: 24rpx;
z-index: 999;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFFFFF;
......
......@@ -5,7 +5,9 @@
<swiper :current="current" class="swiper" @change="swiperChange">
<swiper-item>
<view class="list" v-if="canuse.length!=0">
<scroll-view class="A" scroll-y>
<Ticket v-for="(item,index) in canuse" :key="index" :info="item"/>
</scroll-view>
</view>
<view class="emty" v-else>
<view class="text">暂无可用优惠券</view>
......@@ -13,7 +15,9 @@
</swiper-item>
<swiper-item>
<view class="list" v-if="cantuse.length!=0">
<scroll-view class="B" scroll-y>
<Ticket v-for="(item,index) in cantuse" :key="index" :info="item" />
</scroll-view>
</view>
<view class="emty" v-else>
<view class="text">暂无可用优惠券</view>
......@@ -111,11 +115,20 @@ export default {
.bigBox {
.swiper {
background: #F8F8F8;
height: calc(100vh - 64rpx);
height: calc(100vh - 90rpx);
.list{
.A {
max-height: calc(100vh - 90rpx);
overflow-y: scroll;
}
.B {
max-height: calc(100vh - 90rpx);
overflow-y: scroll;
}
height: 100%;
padding: 0rpx 32rpx;
overflow-y: scroll;
padding-bottom: 32rpx;
}
.emty{
.text{
......
......@@ -136,8 +136,12 @@ import { $EventBus } from "@/utils/EventBus";
export default {
mixins: [systemInfo],
onLoad(option) {
this.Authorization = uni.getStorageSync('Authorization')
this.initData(option)
},
onShow() {
this.backToMneu = false
},
onUnload(){
this.goBack()
},
......@@ -149,7 +153,8 @@ export default {
isBuild:true,
waitTime:0,
backFlag:false,
backToMneu:false
backToMneu:false,
Authorization:''
}
},
methods: {
......@@ -179,6 +184,7 @@ export default {
this.goBack()
},
goBack(){
console.log(this.backToMneu,'backToMneu')
if(this.backFlag){
if(this.backToMneu){
uni.switchTab({ url: '/pages/menu/menu' })
......@@ -230,16 +236,18 @@ export default {
this.option = JSON.stringify(option)
const { orderId = '',from = '' } = option
// 从结算进入
console.log(from)
if(from==='settlement'){
this.backToMneu = true
}
// 从订阅消息进入
let Authorization = uni.getStorageSync('Authorization')
console.log(this.userms,'userms')
console.log(this.Authorization,'Authorization')
if(orderId){
console.log(!Authorization,Authorization)
if(!Authorization){
if(!this.userms&&!this.Authorization){
this.backFlag = true
this.goBack()
uni.switchTab({ url: '/pages/order/order' })
return
}else{
this.backFlag = false
......
......@@ -120,8 +120,9 @@ import User from '@/request/user'
import Order from '@/request/order'
export default {
onShow() {
console.log('show')
if (this.goods) {
this.goods = uni.getStorageSync('goodsList') || [];
console.log('show',this.goods)
if (JSON.stringify(this.goods)!="{}") {
Order.getWaitTine({
shopId: uni.getStorageSync('shopData').id,
goods: this.goods
......
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