|
|
@@ -2,12 +2,12 @@
|
|
|
<div class="app-content">
|
|
|
<div class="user-wrap">
|
|
|
<!-- 未登录 -->
|
|
|
- <template v-if="false">
|
|
|
+ <template v-if="true">
|
|
|
<div class="no-login-attr login-attr-wrap">
|
|
|
<img src="../../static/images/user/attr-default.png" alt mode="widthFix" />
|
|
|
</div>
|
|
|
<div class="button-wrap">
|
|
|
- <div class="button-com">申请会员</div>
|
|
|
+ <div class="button-com" @click="showPopup">申请会员</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<!-- 未登录 -->
|
|
|
@@ -85,7 +85,58 @@
|
|
|
</tui-list-cell>
|
|
|
</tui-list-view>
|
|
|
</div>
|
|
|
-
|
|
|
+ <!-- 登录弹窗 -->
|
|
|
+ <bottom-popup class="popup-wrap" :show="popupShow" @close="hidePopup">
|
|
|
+ <div class="app-close" @click="hidePopup">
|
|
|
+ <i class="iconfont iconclose"></i>
|
|
|
+ </div>
|
|
|
+ <div class="popup-content">
|
|
|
+ <div class="step-wrap">
|
|
|
+ <app-step :index="stepIndex" />
|
|
|
+ </div>
|
|
|
+ <!-- 获取手机号 -->
|
|
|
+ <template v-if="stepIndex == 0">
|
|
|
+ <div class="popup-attr-wrap">
|
|
|
+ <img src="../../static/images/user/attr-default.png" alt />
|
|
|
+ </div>
|
|
|
+ <div class="creat-account-btn">
|
|
|
+ <div class="button-com success">点击创建头像</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- 注册完成 -->
|
|
|
+ <template v-if="stepIndex == 1">
|
|
|
+ <div class="popup-phone-wrap">
|
|
|
+ <div class="phone-icon">
|
|
|
+ <i class="iconfont iconshoujihao"></i>
|
|
|
+ </div>
|
|
|
+ <div class="phone-num font-bold">13285979347</div>
|
|
|
+ </div>
|
|
|
+ <div class="creat-account-btn">
|
|
|
+ <div class="button-com success">点击创建头像</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- 关注公众号 -->
|
|
|
+ <template v-if="stepIndex == 2">
|
|
|
+ <div class="wx-public-wrap">
|
|
|
+ <div class="app-font-color-3">国兰华尚关联的公众号</div>
|
|
|
+ <div class="flex-center-between">
|
|
|
+ <div class="wx-public-left">
|
|
|
+ <div class="wx-public-img">
|
|
|
+ <img src="../../static/images/user/attr-default.png" alt="">
|
|
|
+ </div>
|
|
|
+ <div class="wx-public-det">
|
|
|
+ <div class="wx-public-tit">国兰华尚</div>
|
|
|
+ <div>花艺.品味.生活</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="button-com wx-public-btn">查看</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </bottom-popup>
|
|
|
+ <!-- 登录弹窗 -->
|
|
|
+ <app-trademark />
|
|
|
<!-- <app-footer :activeIndex="3" /> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -94,17 +145,34 @@
|
|
|
// import appFooter from '@/components/app-footer'
|
|
|
import tuiListView from '@/components/plugin/list-view'
|
|
|
import tuiListCell from '@/components/plugin/list-cell'
|
|
|
+import bottomPopup from '@/components/plugin/bottom-popup'
|
|
|
+import appStep from '@/components/app-step'
|
|
|
+import appTrademark from '@/components/module/app-trademark'
|
|
|
export default {
|
|
|
name: 'user',
|
|
|
components: {
|
|
|
// appFooter
|
|
|
tuiListView,
|
|
|
- tuiListCell
|
|
|
+ tuiListCell,
|
|
|
+ bottomPopup,
|
|
|
+ appStep,
|
|
|
+ appTrademark
|
|
|
},
|
|
|
data() {
|
|
|
- return {}
|
|
|
+ return {
|
|
|
+ popupShow: false,
|
|
|
+ stepIndex: 0
|
|
|
+ }
|
|
|
},
|
|
|
- onLoad(option) {}
|
|
|
+ onLoad(option) {},
|
|
|
+ methods: {
|
|
|
+ showPopup() {
|
|
|
+ this.popupShow = true
|
|
|
+ },
|
|
|
+ hidePopup() {
|
|
|
+ this.popupShow = false
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
@@ -127,7 +195,7 @@ export default {
|
|
|
.is-login-attr {
|
|
|
padding: 0 20px 0 48px;
|
|
|
.user-wrap-top {
|
|
|
- @include direction(center, space-between);
|
|
|
+ @include disFlex(center, space-between);
|
|
|
.user-name {
|
|
|
font-size: 36px;
|
|
|
font-weight: 500;
|
|
|
@@ -135,7 +203,7 @@ export default {
|
|
|
color: #fff;
|
|
|
}
|
|
|
.user-level {
|
|
|
- @include direction(center, center);
|
|
|
+ @include disFlex(center, center);
|
|
|
}
|
|
|
.user-blo-right {
|
|
|
margin-right: 30px;
|
|
|
@@ -154,7 +222,7 @@ export default {
|
|
|
left: 0;
|
|
|
display: inline-block;
|
|
|
content: '';
|
|
|
- background-color: #FFE4BD;
|
|
|
+ background-color: #ffe4bd;
|
|
|
width: 200px;
|
|
|
height: 4px;
|
|
|
border-radius: 4px;
|
|
|
@@ -163,11 +231,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.button-wrap {
|
|
|
- @include direction(center, center);
|
|
|
+ @include disFlex(center, center);
|
|
|
}
|
|
|
}
|
|
|
.surplus-wrap {
|
|
|
- @include direction(flex-end, space-between);
|
|
|
+ @include disFlex(flex-end, space-between);
|
|
|
padding: 10px 50px 34px;
|
|
|
background-color: #fff;
|
|
|
.surplus-left {
|
|
|
@@ -195,9 +263,88 @@ export default {
|
|
|
padding-right: 50px;
|
|
|
}
|
|
|
}
|
|
|
- img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- display: inline-block;
|
|
|
+ // 弹窗
|
|
|
+ /deep/.popup-wrap {
|
|
|
+ .tui-popup-class {
|
|
|
+ border-top-left-radius: 20px;
|
|
|
+ border-top-right-radius: 20px;
|
|
|
+ }
|
|
|
+ .popup-content {
|
|
|
+ padding-top: 60px;
|
|
|
+ .step-wrap {
|
|
|
+ width: 80%;
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
+ // 第一步
|
|
|
+ .popup-attr-wrap {
|
|
|
+ width: 160px;
|
|
|
+ height: 160px;
|
|
|
+ margin: 80px auto 60px;
|
|
|
+ }
|
|
|
+ .creat-account-btn {
|
|
|
+ width: 600px;
|
|
|
+ padding-bottom: 80px;
|
|
|
+ margin: 0 auto;
|
|
|
+ .button-com {
|
|
|
+ width: calc(100% - 60px);
|
|
|
+ height: 70px;
|
|
|
+ line-height: 70px;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 32px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 第二步
|
|
|
+ .popup-phone-wrap {
|
|
|
+ @include disFlex(center, flex-start);
|
|
|
+ width: 600px;
|
|
|
+ // height: 94px;
|
|
|
+ margin: 142px auto 62px;
|
|
|
+ padding-left: 40px;
|
|
|
+ padding-bottom: 40px;
|
|
|
+ border-bottom: 1px solid $borderColor;
|
|
|
+ .phone-icon {
|
|
|
+ i {
|
|
|
+ font-size: 44px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .phone-num {
|
|
|
+ font-size: 60px;
|
|
|
+ margin-left: 42px;
|
|
|
+ letter-spacing: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 第三步
|
|
|
+ .wx-public-wrap {
|
|
|
+ width: 90%;
|
|
|
+ padding: 10px 16px 28px;
|
|
|
+ box-shadow: 2px 2px 10px #eee;
|
|
|
+ margin: 118px auto 194px;
|
|
|
+ border-radius: 10px;
|
|
|
+ .flex-center-between {
|
|
|
+ margin-top: 22px;
|
|
|
+ .wx-public-left {
|
|
|
+ @include disFlex(center, flex-start);
|
|
|
+ .wx-public-img {
|
|
|
+ width: 78px;
|
|
|
+ height: 78px;
|
|
|
+ }
|
|
|
+ .wx-public-det {
|
|
|
+ color: #7C7E7D;
|
|
|
+ margin-left: 20px;
|
|
|
+ .wx-public-tit {
|
|
|
+ color: #333;
|
|
|
+ font-size: 32px;
|
|
|
+ margin-bottom: 6px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .wx-public-btn {
|
|
|
+ color: $mainColor1;
|
|
|
+ border-color: $borderColor1;
|
|
|
+ border-radius: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|