提交 140cc6b6 编写于 作者: guangjun.yang's avatar guangjun.yang

弹框组件样式

上级 8cf215d5
...@@ -33,9 +33,6 @@ export default { ...@@ -33,9 +33,6 @@ export default {
changeClick(){ changeClick(){
this.$emit("changeClick","去兑换") this.$emit("changeClick","去兑换")
}, },
gotoExchange() {
this.$emit("gotoExchange");
},
gotoBuy() { gotoBuy() {
this.$emit("gotoBuy"); this.$emit("gotoBuy");
} }
......
<template> <template>
<section class="change-card-wrapper">
<van-popup <van-popup
v-show="isShow" v-model="isShow"
@click-overlay="cancle" @click-overlay="cancle"
close-icon-position="top-right"
position="bottom" position="bottom"
> >
<section class="bind-cart-wrapper"> <section class="bind-cart-wrapper">
<article class="title">兑换详情</article> <article class="title">
<span>兑换详情</span>
<img @click="cancle" src="../../images/cme/close.png" />
</article>
<article class="tip"> <article class="tip">
<div class="left"> <div class="left">
<img src="../../images/cme/phrase2/info.png" /> <img src="../../images/cme/phrase2/info.png" />
...@@ -17,10 +18,10 @@ ...@@ -17,10 +18,10 @@
<article class="code"> <article class="code">
<van-field <van-field
v-model="activationCode" v-model="activationCode"
border
clearable clearable
label="激活码" label="激活码"
placeholder="请输入激活码" placeholder="请输入激活码"
error-message="请输入正确的激活码"
/> />
</article> </article>
<article class="bottom"> <article class="bottom">
...@@ -28,14 +29,13 @@ ...@@ -28,14 +29,13 @@
</article> </article>
</section> </section>
</van-popup> </van-popup>
</section>
</template> </template>
<script> <script>
export default { export default {
props: { props: {
isShow: { isShow: {
type: Boolean, type: Boolean,
default: false default: true
} }
}, },
// computed: { // computed: {
...@@ -76,10 +76,17 @@ export default { ...@@ -76,10 +76,17 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
font-size: 18px; font-size: 18px;
font-weight: 700;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%; width: 100%;
margin-top: px2rem(20px); margin-top: px2rem(20px);
img {
position: relative;
top: 0;
right: px2rem(-120px);
width: 12px;
}
} }
.tip { .tip {
display: flex; display: flex;
...@@ -99,6 +106,8 @@ export default { ...@@ -99,6 +106,8 @@ export default {
} }
.code { .code {
display: flex; display: flex;
padding: px2rem(20px) 0;
padding-top: 0;
} }
.bottom { .bottom {
display: flex; display: flex;
......
...@@ -110,3 +110,22 @@ ...@@ -110,3 +110,22 @@
.van-cell__title span { .van-cell__title span {
font-weight: 700 !important; font-weight: 700 !important;
} }
.bind-cart-wrapper .van-field__control {
border-radius: px2rem(4px);
border: 1px solid #C7C8C9;
padding: px2rem(7px);
text-align: left !important;
}
.bind-cart-wrapper .van-cell__title .van-field__label {
span {
font-size: px2rem(15px) !important;
color: #373839 !important;
}
}
.bind-cart-wrapper .van-field__label {
width: px2rem(56px) !important;
padding-top: px2rem(8px);
}
\ No newline at end of file
...@@ -134,8 +134,8 @@ ...@@ -134,8 +134,8 @@
<BindCardButton <BindCardButton
v-if="project.cmeType == 2 && !hasBindCard" v-if="project.cmeType == 2 && !hasBindCard"
:cardInfo="cardInfo" :cardInfo="cardInfo"
:gotoBuy="confirm"
@changeClick="changeClick" @changeClick="changeClick"
@gotoBuy="confirm"
></BindCardButton> ></BindCardButton>
<!--去兑换--> <!--去兑换-->
...@@ -327,9 +327,10 @@ export default { ...@@ -327,9 +327,10 @@ export default {
// let param = {}; // let param = {};
// __getUserInfo64Comp(param); // __getUserInfo64Comp(param);
// } // }
// if (__isWeb) {
// _this.getProjectParticularsV2(); if (__isWeb) {
// } _this.getProjectParticularsV2();
}
window.__refresh = function() { window.__refresh = function() {
_this.getUserInfo(); _this.getUserInfo();
}; };
...@@ -555,7 +556,7 @@ export default { ...@@ -555,7 +556,7 @@ export default {
// 跳转到原生的购买页面 // 跳转到原生的购买页面
confirm() { confirm() {
let appVersion = this.userInfo.appVersion; let appVersion = this.userInfo.appVersion || '';
let appVersionNum = appVersion.split('.').join(''); let appVersionNum = appVersion.split('.').join('');
if(appVersionNum < 341) { if(appVersionNum < 341) {
Toast('请您下载新版本App'); Toast('请您下载新版本App');
...@@ -734,6 +735,7 @@ export default { ...@@ -734,6 +735,7 @@ export default {
//去兑换 //去兑换
changeClick(msg){ changeClick(msg){
console.log('in changeClick');
this.showChangeCard = true; this.showChangeCard = true;
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册