logroll.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <view class="center">
  3. <view class="bg"><image src="../../static/img/logroll-bg.png" mode=""></image></view>
  4. <view class="main-box">
  5. <view class="main-title">
  6. <!-- <view class="main-title-image"><image class="image" src="../../static/icon/title.png" mode=""></image></view> -->
  7. <view class="main-title-font">互助说明</view>
  8. </view>
  9. <view class="main">
  10. <view class="people-info">
  11. <view class="info-font">收款人</view>
  12. <view class="info-main">
  13. <view class="info-left">
  14. <view class="avtor" v-if="info.next_checker"><image :src="info.next_checker.avatar" mode=""></image></view>
  15. <view class="left-font" v-if="info.next_checker">
  16. <view class="name clamp">{{ info.next_checker.nickname}}</view>
  17. <view class="phone">{{ info.next_checker.phone }}</view>
  18. </view>
  19. </view>
  20. <view class="info-right" v-if="info.next_checker">
  21. <view class="num">{{ info.my_last_join == null ? info.l1_money*1 : info.my_last_join == 1 ? info.l2_money*1 : info.l3_money*1 }}</view>
  22. <view class="right-font">{{ info.my_last_join == null ? info.l1_money_type : info.my_last_join == 1 ? info.l2_money_type : info.l3_money_type}}</view>
  23. </view>
  24. </view>
  25. <view class="pwd-box">
  26. <view class="pwd-font">密码</view>
  27. <view class="input"><input type="password" value="pwd" v-model="pwd" placeholder="请输入支付密码" placeholder-class="pwd-tip" /></view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="btn" @click="open()">加入互助</view>
  33. </view>
  34. </template>
  35. <script>
  36. import { activityDetail,joinActivity } from '@/api/market.js'
  37. export default {
  38. data() {
  39. return {
  40. pwd: '',
  41. info:{},
  42. };
  43. },
  44. onLoad() {
  45. this.loadData();
  46. },
  47. methods: {
  48. open() {
  49. if(this.pwd == ''){
  50. this.$api.msg('密码不能为空');
  51. return
  52. }
  53. joinActivity({trade_psw:this.pwd},1).then(e =>{
  54. console.log(e)
  55. this.$api.msg('参与互助成功');
  56. }).catch(e =>{
  57. console.log(e)
  58. })
  59. },
  60. loadData(){
  61. activityDetail({},1).then(e =>{
  62. this.info =e.data
  63. })
  64. }
  65. }
  66. };
  67. </script>
  68. <style lang="scss">
  69. .center {
  70. width: 100%;
  71. height: 100%;
  72. position: relative;
  73. padding-bottom: 40rpx;
  74. .bg {
  75. position: absolute;
  76. top: 0;
  77. left: 0;
  78. right: 0;
  79. height: 100%;
  80. image {
  81. width: 100%;
  82. height: 100%;
  83. }
  84. }
  85. }
  86. .main-box {
  87. position: relative;
  88. z-index: 10;
  89. width: 690rpx;
  90. padding-top: 600rpx;
  91. margin: 0 auto;
  92. border-radius: 10rpx;
  93. .main-title {
  94. position: relative;
  95. z-index: 11;
  96. width: 322rpx;
  97. height: 80rpx;
  98. margin: -60rpx auto 0;
  99. border-radius: 50rpx;
  100. position: relative;
  101. background-color: #55a7f4;
  102. .main-title-image {
  103. position: absolute;
  104. left: 0;
  105. top: 0;
  106. width: 322rpx;
  107. height: 80rpx;
  108. .image {
  109. width: 100%;
  110. height: 100%;
  111. border-radius: 50rpx;
  112. }
  113. }
  114. .main-title-font {
  115. position: relative;
  116. z-index: 10;
  117. text-align: center;
  118. line-height: 80rpx;
  119. font-size: 46rpx;
  120. font-weight: bold;
  121. color: #141564;
  122. }
  123. }
  124. .main {
  125. margin-top: -40rpx;
  126. width: 100%;
  127. padding: 112rpx 30rpx 30rpx;
  128. background: #365eab;
  129. position: relative;
  130. border-radius: 20rpx;
  131. font-size: 30rpx;
  132. font-family: PingFang SC;
  133. font-weight: 500;
  134. color: #ffffff;
  135. }
  136. }
  137. .btn {
  138. position: relative;
  139. z-index: 12;
  140. width: 684rpx;
  141. height: 96rpx;
  142. background: #29f3fd;
  143. border-radius: 48rpx;
  144. margin: 78rpx auto 0;
  145. line-height: 96rpx;
  146. text-align: center;
  147. font-size: 42rpx;
  148. font-family: PingFang SC;
  149. font-weight: bold;
  150. color: #030454;
  151. }
  152. .people-info {
  153. margin-top: 56rpx;
  154. padding: 0 26rpx;
  155. text-align: left;
  156. .info-font {
  157. font-size: 40rpx;
  158. font-family: PingFang SC;
  159. font-weight: 500;
  160. color: #FFFFFF;
  161. }
  162. .info-main {
  163. margin-top: 26rpx;
  164. display: flex;
  165. justify-content: space-between;
  166. align-items: center;
  167. .info-left {
  168. display: flex;
  169. justify-content: flex-start;
  170. align-items: center;
  171. .avtor {
  172. width: 100rpx;
  173. height: 100rpx;
  174. border-radius: 50%;
  175. image {
  176. width: 100rpx;
  177. height: 100rpx;
  178. border-radius: 50%;
  179. }
  180. }
  181. .left-font {
  182. margin-left: 10rpx;
  183. .name {
  184. max-width: 300rpx;
  185. font-size: 40rpx;
  186. font-family: PingFang SC;
  187. font-weight: 500;
  188. color: #FFFFFF;
  189. }
  190. .phone {
  191. font-size: 28rpx;
  192. font-family: PingFang SC;
  193. font-weight: 400;
  194. color: #FFFFFF;
  195. opacity: 0.8;
  196. }
  197. }
  198. }
  199. .info-right {
  200. display: flex;
  201. flex-direction: column;
  202. align-items: center;
  203. line-height: 1;
  204. .num {
  205. font-size: 54rpx;
  206. font-family: PingFang SC;
  207. font-weight: bold;
  208. color: #FFFFFF;
  209. }
  210. .right-font {
  211. margin-top: 10rpx;
  212. font-size: 28rpx;
  213. font-family: PingFang SC;
  214. font-weight: 500;
  215. color: #FFFFFF;
  216. }
  217. }
  218. }
  219. }
  220. .pwd-box {
  221. width: 490rpx;
  222. background: #f4f4f4;
  223. border-radius: 10rpx;
  224. display: flex;
  225. align-items: center;
  226. justify-content: flex-start;
  227. margin: 50rpx auto 0;
  228. padding: 20rpx 20rpx;
  229. .pwd-font {
  230. font-size: 30rpx;
  231. font-family: PingFang SC;
  232. font-weight: 500;
  233. color: #333333;
  234. }
  235. .pwd-tip {
  236. font-size: 28rpx;
  237. font-family: PingFang SC;
  238. font-weight: 500;
  239. color: #999999;
  240. opacity: 0.51;
  241. }
  242. .input {
  243. margin-left: 20rpx;
  244. color: #999999;
  245. }
  246. }
  247. </style>