pointAuth.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view>
  3. <u-popup :custom-style="popupStyle" class="auth-point" v-model="show" mode="center" width="80%" border-radius="18" >
  4. <image class="auth-bg" mode="aspectFill" src="../../static/poster/bg_shouyetc.png">
  5. <view class="auth-msg">
  6. <view v-for="item in vuex_active_setting.helpExplainList" >
  7. {{item.helpExplain}}
  8. </view>
  9. </view>
  10. <u-button @click="toAuth" :custom-style="customStyle" shape="circle" >去授权</u-button>
  11. </image>
  12. </u-popup>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. name:"pointAuth",
  18. data() {
  19. return {
  20. show: false,
  21. popupStyle: {
  22. 'u-mode-center-box': 'red'
  23. },
  24. authUrl: '',
  25. customStyle: {
  26. color: 'white',
  27. background: "#E72226",
  28. width: '400rpx',
  29. margin: '25rpx auto'
  30. }
  31. };
  32. },
  33. methods: {
  34. showAuth(url){
  35. this.authUrl = url;
  36. this.show = true;
  37. },
  38. hide(){
  39. this.show = false;
  40. },
  41. toAuth(){
  42. this.$jump('/pages/auth/auth?url='+encodeURIComponent(this.authUrl));
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .auth-bg{
  49. width: 100%;
  50. height: 266rpx;
  51. }
  52. .auth-msg{
  53. padding: 40rpx 40rpx 20rpx 40rpx;
  54. display: flex;
  55. align-items: center;
  56. justify-content: left;
  57. }
  58. </style>