login.vue 867 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view class="pages">
  3. <view class="login">
  4. <image class="loginbg" src="/static/img/loginbg.png" mode="widthFix"></image>
  5. <button type="default" class="big-btn" @click="wxclick">微信登录</button>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import { mapState, mapMutations } from 'vuex';
  11. export default{
  12. components:{
  13. },
  14. props:{
  15. },
  16. data(){
  17. return{
  18. hPage:'',
  19. }
  20. },
  21. onLoad(options){
  22. this.backpage = options.backpage
  23. },
  24. methods:{
  25. wxclick(){
  26. window.location.replace(this.config.loginUrl+this.hPage);
  27. }
  28. }
  29. }
  30. </script>
  31. <style scoped>
  32. page{background: #fff;}
  33. .loginbg{width: 100%;height: auto;margin: 80rpx 0 40rpx;}
  34. .big-btn{margin: 0 95rpx;background-color: #65B74E;border-radius: 100rpx;color: #fff;font-size: 32rpx;font-weight: 400;line-height: 45rpx;letter-spacing: 5rpx;}
  35. </style>