提交 8fe295e9 编写于 作者: jingqi.liu's avatar jingqi.liu

修改样式

上级 91f0ea4e
<template> <template>
<!-- v-if="!isWeb" --> <section v-if="!isWeb" :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight">
<section :class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" :style="'height:' + navHeight">
<div <div
class="nav-part" class="nav-part"
:style="'background:' + bgColor + ';' :style="'background:' + bgColor + ';'
......
<template> <template>
<section class="coupon-list-wrapper" :class="{ 'no-pt': isWeb }"> <section class="coupon-list-wrapper" :class="{ 'no-pt': isWeb,'pt-88':isWeb }">
<div class="page-wrapper"> <div class="page-wrapper">
<!-- <common-header <!-- <common-header
:bg-color="bgColor" :bg-color="bgColor"
...@@ -183,8 +183,10 @@ export default { ...@@ -183,8 +183,10 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.coupon-list-wrapper { .pt-88 {
padding-top: 88px; padding-top: 88px;
}
.coupon-list-wrapper {
min-height: 100vh; min-height: 100vh;
background: #f8f9fa; background: #f8f9fa;
&.no-pt { &.no-pt {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<style lang="less" scoped> <style lang="less" scoped>
.empty { .empty {
text-align: center; text-align: center;
margin-top: 300px; margin-top: 40%;
height: 100%; height: 100%;
&-image { &-image {
width: 218px; width: 218px;
......
<template> <template>
<section class="coupon-list-wrapper" :class="{ 'no-pt': isWeb }"> <section class="coupon-list-wrapper" :class="{ 'no-pt': isWeb ,'pt-88':isWeb }">
<div class="page-wrapper"> <div class="page-wrapper">
<!-- <common-header <!-- <common-header
:bg-color="bgColor" :bg-color="bgColor"
...@@ -156,10 +156,10 @@ export default { ...@@ -156,10 +156,10 @@ export default {
this.$store.dispatch("setToken", this.token); this.$store.dispatch("setToken", this.token);
// this.$store.dispatch("getUserInfo"); // this.$store.dispatch("getUserInfo");
}); });
} }
// 从登陆页面过来的 // 从登陆页面过来的
this.getMyCouponsList(); this.getMyCouponsList();
} else { } else {
this.getUserInfo(); this.getUserInfo();
} }
}, },
...@@ -199,6 +199,7 @@ export default { ...@@ -199,6 +199,7 @@ export default {
}, },
chooseCoupon(item) { chooseCoupon(item) {
if (item.couponStatus === 1) { if (item.couponStatus === 1) {
rocNative.goBack();
// uni.switchTab({ // uni.switchTab({
// url: '/pages/home/index', // url: '/pages/home/index',
// }); // });
...@@ -208,8 +209,10 @@ export default { ...@@ -208,8 +209,10 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.coupon-list-wrapper { .pt-88 {
padding-top: 88px; padding-top: 88px;
}
.coupon-list-wrapper {
min-height: 100vh; min-height: 100vh;
background: #f8f9fa; background: #f8f9fa;
&.no-pt { &.no-pt {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册