详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view></view>
  3. </template>
  4. <script>
  5. export default {
  6. data(){
  7. return {
  8. }
  9. },
  10. onLoad(options){
  11. // #ifdef H5
  12. const URL = this.API.CALLBACKURL;
  13. const page = '/pages/index/index';
  14. const callbackURL = encodeURIComponent(URL + page);
  15. const appId = this.API.APPID;
  16. const dataStr = '1';
  17. const redirectURI = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${callbackURL}&response_type=code&scope=snsapi_userinfo&state=${dataStr}#wechat_redirect`;
  18. location.replace(redirectURI);
  19. // #endif
  20. // #ifdef MP-WEIXIN
  21. this.$url(page, {type: 'redirect'});
  22. // #endif
  23. },
  24. methods: {
  25. }
  26. }
  27. </script>
  28. <style>
  29. page{
  30. overflow: hidden;
  31. }
  32. </style>
  33. <style lang="scss" scoped="scoped">
  34. .box{
  35. padding: 60rpx 32rpx;
  36. width: 750rpx;
  37. height: auto;
  38. box-sizing: border-box;
  39. position: relative;
  40. .img{
  41. width: 180rpx;
  42. height: 180rpx;
  43. border-radius: 50%;
  44. }
  45. .btn{
  46. background-color: #09BB07;
  47. color: #FFFFFF;
  48. width: 100%;
  49. height: 88rpx;
  50. border-radius: 42rpx;
  51. font-size: 32rpx;
  52. line-height: 88rpx;
  53. margin-top: 80rpx;
  54. }
  55. }
  56. .fixed-bottom{
  57. position: fixed;
  58. bottom: 60rpx;
  59. left: 0;
  60. padding: 0 32rpx;
  61. .highlight{
  62. color: #1e90ff;
  63. }
  64. }
  65. .mask{
  66. position: absolute;
  67. bottom: 46rpx;
  68. left: 0;
  69. width: 100%;
  70. height: 190rpx;
  71. }
  72. .display-inline-block{
  73. display: inline-block;
  74. }
  75. </style>