activity.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="box">
  3. <view>集客活动</view>
  4. <!-- 手机号授权 -->
  5. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  6. <view class="authorizCont" @click.stop="">
  7. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  8. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  9. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  10. </view>
  11. <view style="text-align: center;padding-top: 56rpx;">
  12. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. components: {
  20. },
  21. data() {
  22. return {
  23. userInfo:'',
  24. authorizShow:false,
  25. code:'',
  26. wxOpenData:'',
  27. }
  28. },
  29. onLoad() {
  30. this.userInfo=this.$store.state.userInfo;
  31. this.wxOpenData=this.$store.state.wxOpenData
  32. //this.getOrderTimes()
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style scoped lang="less">
  39. .box{
  40. background: #F4F5F7;
  41. min-height: 100vh;
  42. }
  43. .authorizBox{
  44. width: 100vw;
  45. height: 100vh;
  46. background: rgba(0, 0, 0, 0.5);
  47. position: fixed;
  48. top: 0;
  49. left: 0;
  50. }
  51. .authorizCont{
  52. margin-top: 30vh;
  53. width: 564rpx;
  54. height: 408rpx;
  55. background: #FFFFFF;
  56. border-radius: 24rpx;
  57. margin-left: 93rpx;
  58. position: relative;
  59. }
  60. .authorizCloseImg{
  61. width: 62rpx;
  62. height: 62rpx;
  63. }
  64. .sqLogoBox{
  65. width: 180rpx;
  66. height: 180rpx;
  67. background: #FFFFFF;
  68. border-radius: 90rpx;
  69. text-align: center;
  70. position: absolute;
  71. top: -50rpx;
  72. left: 192rpx;
  73. }
  74. .authorizName{
  75. color: #333333;
  76. line-height: 42rpx;
  77. font-size: 30rpx;
  78. text-align: center;
  79. padding-top: 58rpx;
  80. }
  81. .authorizMs{
  82. color: #999999;
  83. line-height: 36rpx;
  84. font-size: 26rpx;
  85. width: 452rpx;
  86. padding-top: 24rpx;
  87. text-align: center;
  88. margin-left: 56rpx;
  89. }
  90. .authorizContbutton{
  91. width: 422rpx;
  92. height: 88rpx;
  93. background: #D53533;
  94. border-radius: 44rpx;
  95. line-height: 88rpx;
  96. text-align: center;
  97. font-size:30rpx;
  98. color: #FFFFFF;
  99. margin-top: 62rpx;
  100. margin-left:71rpx;
  101. }
  102. </style>