recommend.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="recommend">
  3. <image src="../../static/img/rmbg.png" mode="" class="bg"></image>
  4. <image src="https://zccy.liuniu946.com/static/img/ewmbg1.png" mode="" class="ewmbg"></image>
  5. <view class="tit">
  6. 充值
  7. </view>
  8. <view class="sotre-name">
  9. {{userInfo.store_info.name}}充值码 >
  10. </view>
  11. <view class="store-info">
  12. <image :src="userInfo.store_info.image" mode="" class="store-logo"></image>
  13. <view class="store-name">
  14. {{userInfo.store_info.name}}
  15. </view>
  16. </view>
  17. <view class="ewm-wrapper">
  18. <tki-qrcode :key="'?store_id='+userInfo.store_info.id + '&store_logo=' + userInfo.store_info.image + '&store_name=' + userInfo.store_info.name" cid="tki-qrcode-canvas" ref="qrcode"
  19. :val="'?store_id='+userInfo.store_info.id + '&store_logo=' + userInfo.store_info.image + '&store_name=' + userInfo.store_info.name" :size="426" unit="upx" background="#ffffff"
  20. foreground="#333333" pdground="#333333" icon="" :iconSize="0" :lv="3" :onval="true"
  21. :loadMake="true" :usingComponents="true" />
  22. <view class="ewm-tit">
  23. 扫描二维码完成充值
  24. </view>
  25. </view>
  26. <view class="record-wrapper" @click="goCode">
  27. <view class="record-left">
  28. <image src="../../static/icon/recode.png" mode=""></image>
  29. 充值记录
  30. </view>
  31. <view class="record-right">
  32. <image src="../../static/img/img39.png" mode=""></image>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import { mapState, mapMutations } from 'vuex';
  39. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  40. export default {
  41. components: {
  42. tkiQrcode
  43. },
  44. data() {
  45. return {
  46. }
  47. },
  48. computed: {
  49. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  50. },
  51. onLoad() {
  52. console.log(this.userInfo)
  53. },
  54. methods: {
  55. goCode() {
  56. uni.navigateTo({
  57. url: '/user/page/recode'
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. page {
  65. height: 100%;
  66. background-color: #343434;
  67. }
  68. .recommend {
  69. height: 100%;
  70. width: 750rpx;
  71. position: relative;
  72. .store-info {
  73. width: 750rpx;
  74. height: 300rpx;
  75. display: flex;
  76. flex-direction: column;
  77. justify-content: center;
  78. align-items: center;
  79. position: absolute;
  80. top: 237rpx;
  81. .store-logo {
  82. width: 140rpx;
  83. height: 140rpx;
  84. border-radius: 50%;
  85. background-color: #eee;
  86. }
  87. .store-name {
  88. padding-top: 20rpx;
  89. font-size: 34rpx;
  90. font-family: PingFang SC;
  91. font-weight: bold;
  92. color: #333333;
  93. }
  94. }
  95. .bg {
  96. width: 750rpx;
  97. height: 486rpx;
  98. position: absolute;
  99. top: 0;
  100. left: 0;
  101. }
  102. .ewmbg {
  103. width: 671rpx;
  104. height: 966rpx;
  105. position: absolute;
  106. top: 237rpx;
  107. left: 0;
  108. right: 0;
  109. margin: 0 auto;
  110. }
  111. .tit {
  112. // display: inline-block;
  113. font-size: 40rpx;
  114. font-family: Source Han Sans CN;
  115. font-weight: 400;
  116. color: #FFFFFF;
  117. position: absolute;
  118. top: 95rpx;
  119. left: 26rpx;
  120. }
  121. .sotre-name {
  122. font-size: 29rpx;
  123. font-family: Source Han Sans CN;
  124. font-weight: 400;
  125. color: rgba(255, 255, 255, 0.7);
  126. position: absolute;
  127. top: 160rpx;
  128. left: 28rpx;
  129. // line-height: 67px;
  130. }
  131. .ewm-wrapper {
  132. width: 429rpx;
  133. height: 426rpx;
  134. // background-color: red;
  135. position: absolute;
  136. top: 577rpx;
  137. left: 0;
  138. right: 0;
  139. margin: 0 auto;
  140. .ewm-tit {
  141. font-size: 24rpx;
  142. font-family: Source Han Sans CN;
  143. font-weight: 400;
  144. color: #999999;
  145. position: absolute;
  146. text-align: center;
  147. bottom: -50rpx;
  148. left: 0;
  149. right: 0;
  150. margin: 0 auto;
  151. }
  152. }
  153. .record-wrapper {
  154. display: flex;
  155. justify-content: space-between;
  156. align-items: center;
  157. position: absolute;
  158. top: 1099rpx;
  159. padding: 0 72rpx;
  160. width: 750rpx;
  161. .record-left {
  162. display: flex;
  163. align-items: center;
  164. }
  165. image {
  166. width: 32rpx;
  167. height: 30rpx;
  168. margin-right: 11rpx;
  169. }
  170. .record-right {
  171. image {
  172. width: 12rpx;
  173. height: 21rpx;
  174. margin-right: 11rpx;
  175. }
  176. }
  177. }
  178. }
  179. </style>