purchase.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. <RechargeHave></RechargeHave>
  45. </div>
  46. </template>
  47. <script lang="ts">
  48. import { Component, Vue } from 'vue-property-decorator'
  49. import { Checkbox, CheckboxGroup, Field, CellGroup } from 'vant'
  50. import { mapActions, mapMutations } from 'vuex'
  51. import RechargeHave from '../../components/RechargeHave.vue'
  52. @Component({
  53. name: 'purchase-page',
  54. components: {
  55. RechargeHave,
  56. [Checkbox.name]: Checkbox,
  57. [CheckboxGroup.name]: CheckboxGroup,
  58. [Field.name]: Field,
  59. [CellGroup.name]: CellGroup
  60. },
  61. methods: {
  62. ...mapMutations({
  63. saveLogout: 'logout/setLogout'
  64. }),
  65. ...mapActions({
  66. sureLogout: 'logout/sureLogout'
  67. })
  68. }
  69. })
  70. export default class extends Vue {
  71. protected sureLogout!: any
  72. protected saveLogout!: any
  73. checked = false
  74. tel = 1
  75. $router: any
  76. exchange () {
  77. this.$router.push('/purchasesuccess')
  78. }
  79. // 剑鱼标讯服务条款
  80. clause () {
  81. // this.$router.push('/readme')
  82. }
  83. }
  84. </script>
  85. <style lang="scss">
  86. .purchase-page{
  87. box-sizing: border-box;
  88. background: #F5F6F7;
  89. .exchange_main{
  90. .docs_infor{
  91. display: flex;
  92. justify-content: space-between;
  93. align-items: flex-start;
  94. padding: 20px 16px;
  95. background: #ffffff;
  96. .docs_left{
  97. width: 100px;
  98. height: 124px;
  99. border-radius: 4px;
  100. border: 1px solid #000000;
  101. .docs_img{
  102. width: 100%;
  103. height: 100%;
  104. }
  105. }
  106. .docs_right{
  107. flex: 1;
  108. margin-left: 16px;
  109. .docs_title{
  110. color: #171826;
  111. font-weight: bold;
  112. font-size: 14px;
  113. line-height: 20px;
  114. letter-spacing: 0px;
  115. text-align: left;
  116. }
  117. .docs_other{
  118. margin-top: 22px;
  119. color: #9B9CA3;
  120. font-weight: medium;
  121. font-size: 12px;
  122. line-height: 18px;
  123. letter-spacing: 0px;
  124. text-align: left;
  125. .docs_download{
  126. line-height: 18px;
  127. }
  128. .docs_money{
  129. margin-top: 2px;
  130. line-height: 24px;
  131. .docs_num{
  132. font-size: 16px;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. .docs_phone {
  139. padding: 15px 0;
  140. width: 100%;
  141. .van-field__control{
  142. font-size: 16px;
  143. }
  144. .van-field__control::placeholder {
  145. color: #C0C4CC;
  146. font-weight: medium;
  147. font-size: 16px;
  148. line-height: 24px;
  149. }
  150. }
  151. }
  152. .exchange_footer{
  153. padding: 0 16px;
  154. height: 148px;
  155. background: #ffffff;
  156. .apply_detail{
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. height: 38px;
  161. .det_left{
  162. color: #9B9CA3;
  163. font-family: PingFang SC;
  164. font-weight: medium;
  165. font-size: 12px;
  166. line-height: 18px;
  167. }
  168. .det_right{
  169. display: flex;
  170. align-items: center;
  171. color: #2ABED1;
  172. font-weight: medium;
  173. font-size: 14px;
  174. line-height: 30px;
  175. .det_money{
  176. display: flex;
  177. margin-right: 4px;
  178. font-size: 20px;
  179. }
  180. }
  181. }
  182. .apply_footer {
  183. display: flex;
  184. align-items: center;
  185. justify-content: center;
  186. height: 46px;
  187. padding: 8px 0 12px;
  188. background: rgba(255, 255, 255, 0.96);
  189. }
  190. .apply_button {
  191. width: 100%;
  192. height: 46px;
  193. border-radius: 8px;
  194. background: #2abed1;
  195. font-size: 18px;
  196. color: #f7f9fa;
  197. }
  198. .readly{
  199. display:flex;
  200. align-items:center;
  201. min-height:32px;
  202. font-size: 12px;
  203. color: #5F5E64;
  204. .clause{
  205. color:#2ABED1;
  206. }
  207. .van-checkbox__icon{
  208. font-size:18px;
  209. }
  210. }
  211. }
  212. }
  213. </style>