purchase.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <template>
  2. <div class="purchase-page">
  3. <div class="j-main exchange_main">
  4. <div class="docs_infor">
  5. <div class="docs_left">
  6. <img src="" class="docs_img" alt="">
  7. </div>
  8. <div class="docs_right">
  9. <div class="docs_title ellipsis-2">
  10. 优化招投标市场营商环境与国企采购人主体责任、采购与招标优化招投标市场营商环境与国企采购人主体责任、采购与招标
  11. </div>
  12. <div class="docs_other">
  13. <div class="docs_auther">贡献者:张三</div>
  14. <div class="docs_download">
  15. <span>2020次下载</span> | 共18页 | 220K
  16. </div>
  17. <div class="docs_money"><span class="docs_num">500</span> 剑鱼币</div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="docs_phone">
  22. <van-cell-group>
  23. <van-field v-model="tel" type="tel" label="手机号码" placeholder="请输入手机号码" />
  24. </van-cell-group>
  25. </div>
  26. </div>
  27. <div class="j-footer exchange_footer">
  28. <div class="apply_detail">
  29. <div class="det_left">
  30. 支付积分:
  31. </div>
  32. <div class="det_right">
  33. <span class="det_money">500</span>
  34. <span>剑鱼币</span>
  35. </div>
  36. </div>
  37. <div class="readly">
  38. <van-checkbox v-model="checked" checked-color="#2ABED1" >我已阅读,理解并接受<a href="javascript:;" class="clause" @click="clause()">《剑鱼伙伴服务条款》</a></van-checkbox>
  39. </div>
  40. <div class="apply_footer">
  41. <button class="apply_button" :disabled="!this.checked" @click="exchange()">确定兑换</button>
  42. </div>
  43. </div>
  44. </div>
  45. </template>
  46. <script lang="ts">
  47. import { Component, Vue } from 'vue-property-decorator'
  48. import { Checkbox, CheckboxGroup, Field, CellGroup } from 'vant'
  49. import { mapActions, mapMutations } from 'vuex'
  50. @Component({
  51. name: 'purchase-page',
  52. components: {
  53. [Checkbox.name]: Checkbox,
  54. [CheckboxGroup.name]: CheckboxGroup,
  55. [Field.name]: Field,
  56. [CellGroup.name]: CellGroup
  57. },
  58. methods: {
  59. ...mapMutations({
  60. saveLogout: 'logout/setLogout'
  61. }),
  62. ...mapActions({
  63. sureLogout: 'logout/sureLogout'
  64. })
  65. }
  66. })
  67. export default class extends Vue {
  68. protected sureLogout!: any
  69. protected saveLogout!: any
  70. checked = false
  71. tel = 1
  72. $router: any
  73. exchange () {
  74. this.$router.push('/purchasesuccess')
  75. }
  76. // 剑鱼标讯服务条款
  77. clause () {
  78. // this.$router.push('/readme')
  79. }
  80. }
  81. </script>
  82. <style lang="scss">
  83. .purchase-page{
  84. box-sizing: border-box;
  85. background: #F5F6F7;
  86. .exchange_main{
  87. .docs_infor{
  88. display: flex;
  89. justify-content: space-between;
  90. align-items: flex-start;
  91. padding: 20px 16px;
  92. background: #ffffff;
  93. .docs_left{
  94. width: 100px;
  95. height: 124px;
  96. border-radius: 4px;
  97. border: 1px solid #000000;
  98. .docs_img{
  99. width: 100%;
  100. height: 100%;
  101. }
  102. }
  103. .docs_right{
  104. flex: 1;
  105. margin-left: 16px;
  106. .docs_title{
  107. color: #171826;
  108. font-weight: bold;
  109. font-size: 14px;
  110. line-height: 20px;
  111. letter-spacing: 0px;
  112. text-align: left;
  113. }
  114. .docs_other{
  115. margin-top: 22px;
  116. color: #9B9CA3;
  117. font-weight: medium;
  118. font-size: 12px;
  119. line-height: 18px;
  120. letter-spacing: 0px;
  121. text-align: left;
  122. .docs_download{
  123. line-height: 18px;
  124. }
  125. .docs_money{
  126. margin-top: 2px;
  127. line-height: 24px;
  128. .docs_num{
  129. font-size: 16px;
  130. }
  131. }
  132. }
  133. }
  134. }
  135. .docs_phone {
  136. padding: 15px 0;
  137. width: 100%;
  138. .van-field__control{
  139. font-size: 16px;
  140. }
  141. .van-field__control::placeholder {
  142. color: #C0C4CC;
  143. font-weight: medium;
  144. font-size: 16px;
  145. line-height: 24px;
  146. }
  147. }
  148. }
  149. .exchange_footer{
  150. padding: 0 16px;
  151. height: 148px;
  152. background: #ffffff;
  153. .apply_detail{
  154. display: flex;
  155. justify-content: space-between;
  156. align-items: center;
  157. height: 38px;
  158. .det_left{
  159. color: #9B9CA3;
  160. font-family: PingFang SC;
  161. font-weight: medium;
  162. font-size: 12px;
  163. line-height: 18px;
  164. }
  165. .det_right{
  166. display: flex;
  167. align-items: center;
  168. color: #2ABED1;
  169. font-weight: medium;
  170. font-size: 14px;
  171. line-height: 30px;
  172. .det_money{
  173. display: flex;
  174. margin-right: 4px;
  175. font-size: 20px;
  176. }
  177. }
  178. }
  179. .apply_footer {
  180. display: flex;
  181. align-items: center;
  182. justify-content: center;
  183. height: 46px;
  184. padding: 8px 0 12px;
  185. background: rgba(255, 255, 255, 0.96);
  186. }
  187. .apply_button {
  188. width: 100%;
  189. height: 46px;
  190. border-radius: 8px;
  191. background: #2abed1;
  192. font-size: 18px;
  193. color: #f7f9fa;
  194. }
  195. .readly{
  196. display:flex;
  197. align-items:center;
  198. min-height:32px;
  199. font-size: 12px;
  200. color: #5F5E64;
  201. .clause{
  202. color:#2ABED1;
  203. }
  204. .van-checkbox__icon{
  205. font-size:18px;
  206. }
  207. }
  208. }
  209. }
  210. </style>