| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <template>
- <view class="sign-page">
-
- <view class="page-inner">
- <view class="page-bg">
- <image class="inner-img" src="/static/app/page1/home_bg.png" mode="widthFix"></image>
- </view>
- <view class="page-head">
- <image class="inner-img" src="/static/app/page1/head_top.png" mode="widthFix"></image>
- </view>
- <button class="page-btn u-reset-button" type="default" @click="navToSubscribe">
- <view class="inner">
- <image class="inner-img" src="/static/app/page1/btn.png" mode="aspectFill"></image>
- <view class="circle-round border-1"></view>
- <view class="circle-round border-2"></view>
- </view>
- </button>
-
- <!-- 手机号 -->
- <c-pop-phone ref="modelPhone"></c-pop-phone>
-
- <!-- 默认loading -->
- <u-toast ref="uToast"></u-toast>
-
- <!-- 授权 -->
- <c-pop-auth id="test" ref="modelAuth"></c-pop-auth>
- </view>
- </view>
- </template>
- <script>
- import store from "@/store/index.js";
- export default {
- components: {},
- data() {
- return {
- };
- },
- methods: {
- navToSubscribe(){
- this.$nextTick(() => {
- console.log(this)
- if(this.$refs.modelAuth){
- this.$refs.modelAuth.$confirm({}).then(res => {
- if(res == 1){
- this.$u.route({
- url: '/pages/signs/subscribe/subscribe',
- type: "navigateTo",
- })
- }
- })
- }else {
- this.$u.route({
- url: '/pages/signs/subscribe/subscribe',
- type: "navigateTo",
- })
- }
- })
- },
- test() {
- this.$nextTick(() => {
- console.log(this)
- const com = this.selectComponent('#test')
- console.log(com)
- console.log(com.$vm)
- com.$vm.$confirm({}).then(res => {
- if(res == 1){
- this.$u.route({
- url: '/pages/signs/subscribe/subscribe',
- type: "navigateTo",
- })
- }
- })
- })
- }
- },
- created() {
- },
- onLoad() {
- console.log('---------',this)
- },
- onShow() {
- console.log('---------',this)
- },
- }
- </script>
- <style lang="scss" scoped>
- @import "./index.scss";
- </style>
|