pointAuth.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view>
  3. <u-popup :custom-style="popupStyle"
  4. close-icon-size="50"
  5. :mask-close-able="false"
  6. @close="close" class="auth-point" :closeable="true" close-icon-color="#fff"
  7. close-icon="close-circle" v-model="show" mode="center" width="80%" height="680rpx" border-radius="16">
  8. <view class="">
  9. <image class="auth-bg" mode="aspectFill" src="../../static/poster/bg_shouyetc.png">
  10. <view class="auth-msg" style="display: flex;flex-direction: column;">
  11. <view class="margin-bottom-20 flex justify-start"
  12. style="font-size: 26rpx;color: #353535;font-family: PingFang-SC-Medium;line-height: 45rpx;"
  13. v-for="(item,index) in vuex_active_setting.helpExplainList" :key="index">
  14. <view class="center">
  15. <u-icon name="/static/icon/titles.png" size="30"></u-icon>
  16. </view>
  17. <view class="center margin-left-10">
  18. <text>{{item.helpExplain}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. <u-button @click="toAuth" :custom-style="customStyle" shape="circle">去授权</u-button>
  23. </image>
  24. </view>
  25. </u-popup>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. name: "pointAuth",
  31. data() {
  32. return {
  33. show: false,
  34. popupStyle: {
  35. 'u-mode-center-box': 'red'
  36. },
  37. authUrl: '',
  38. customStyle: {
  39. color: 'white',
  40. background: "#E72226",
  41. width: '400rpx',
  42. margin: '25rpx auto'
  43. }
  44. };
  45. },
  46. methods: {
  47. showAuth(url) {
  48. this.authUrl = url;
  49. this.show = true;
  50. },
  51. hide() {
  52. this.show = false;
  53. },
  54. close() {
  55. console.log("close");
  56. this.$emit('close')
  57. },
  58. toAuth() {
  59. let params = {
  60. url: encodeURIComponent(this.authUrl),
  61. title: '移动积分授权'
  62. }
  63. this.$jump('/pages/webview/webview' + this.$u.queryParams(params));
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .auth-bg {
  70. width: 100%;
  71. height: 266rpx;
  72. }
  73. .auth-msg {
  74. padding: 40rpx 40rpx 20rpx 40rpx;
  75. display: flex;
  76. align-items: center;
  77. justify-content: left;
  78. }
  79. </style>
  80. <!-- <template>
  81. <view>
  82. <u-popup :custom-style="popupStyle" class="auth-point" v-model="show" mode="center" width="80%" border-radius="18" >
  83. <image class="auth-bg" mode="aspectFill" src="../../static/poster/bg_shouyetc.png">
  84. <view class="auth-msg">
  85. <view class="info-item" v-for="(item,index) in vuex_active_setting.helpExplainList" :key="index">
  86. {{item.helpExplain}}
  87. </view>
  88. </view>
  89. <u-button @click="toAuth" :custom-style="customStyle" shape="circle" >去授权</u-button>
  90. </image>
  91. </u-popup>
  92. </view>
  93. </template>
  94. <script>
  95. export default {
  96. name:"pointAuth",
  97. data() {
  98. return {
  99. show: true,
  100. popupStyle: {
  101. 'u-mode-center-box': 'red'
  102. },
  103. authUrl: '',
  104. customStyle: {
  105. color: 'white',
  106. background: "#E72226",
  107. width: '400rpx',
  108. margin: '25rpx auto'
  109. }
  110. };
  111. },
  112. methods: {
  113. showAuth(url){
  114. this.authUrl = url;
  115. this.show = true;
  116. },
  117. hide(){
  118. this.show = false;
  119. },
  120. close(){
  121. this.$emit('close')
  122. },
  123. toAuth(){
  124. let params={
  125. url:encodeURIComponent(this.authUrl),
  126. title:'移动积分授权'
  127. }
  128. this.$jump('/pages/webview/webview'+this.$u.queryParams(params));
  129. }
  130. }
  131. }
  132. </script>
  133. <style lang="scss" scoped>
  134. .auth-bg{
  135. width: 100%;
  136. height: 266rpx;
  137. }
  138. .auth-msg{
  139. padding: 40rpx 20rpx 20rpx 20rpx;
  140. .info-item{
  141. font-size: 26rpx;
  142. color: #353535;
  143. position: relative;
  144. padding: 10rpx 30rpx 10rpx 30rpx;
  145. margin-left: 30rpx;
  146. }
  147. .info-item::before{
  148. content: "";
  149. position: absolute;
  150. left: -20rpx;
  151. top: 10rpx;
  152. width: 25rpx;
  153. height: 25rpx;
  154. background: url(../../static/icon/item-dot.png) no-repeat center/contain;
  155. }
  156. }
  157. </style> -->