pointAuth.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 class="info-item" v-for="(item,index) in vuex_active_setting.helpExplainList" :key="index">
  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. close(){
  42. this.$emit('close')
  43. },
  44. toAuth(){
  45. let params={
  46. url:encodeURIComponent(this.authUrl),
  47. title:'移动积分授权'
  48. }
  49. this.$jump('/pages/webview/webview'+this.$u.queryParams(params));
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .auth-bg{
  56. width: 100%;
  57. height: 266rpx;
  58. }
  59. .auth-msg{
  60. padding: 40rpx 20rpx 20rpx 20rpx;
  61. .info-item{
  62. font-size: 26rpx;
  63. color: #353535;
  64. position: relative;
  65. padding: 10rpx 30rpx 10rpx 30rpx;
  66. margin-left: 30rpx;
  67. }
  68. .info-item::before{
  69. content: "";
  70. position: absolute;
  71. left: -20rpx;
  72. top: 10rpx;
  73. width: 25rpx;
  74. height: 25rpx;
  75. background: url(../../static/icon/item-dot.png) no-repeat center/contain;
  76. }
  77. }
  78. </style>