index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="container">
  3. <navBar title="充值次数" :back="true" color="#333333" background="#FFFFFF" />
  4. <view class="addBg">
  5. <view class="topBox">
  6. <view class="userBox">
  7. <image class="avatar" :src="picBase+'edit.png'" mode=""></image>
  8. <view class="right">
  9. <view class="nickname">
  10. 刘晓艺
  11. </view>
  12. <view class="bot">
  13. <image class="icon" :src="picBase+'edit.png'" mode=""></image>
  14. 绘画次数:3
  15. </view>
  16. </view>
  17. </view>
  18. <view class="btn">
  19. 记录
  20. </view>
  21. </view>
  22. <view class="mainBox">
  23. <view class="tagLine">
  24. </view>
  25. <view class="carItem " :class="[index==curIndex?'bor':'']" v-for="(item,index) in 8"
  26. @click="selTaocan(index)">
  27. <view class="left">
  28. <view class="name">
  29. 新用户专享套餐
  30. </view>
  31. <view class="count">
  32. 次数:1
  33. </view>
  34. </view>
  35. <view class="right">
  36. ¥1
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="btnBox">
  42. <view class="btn">
  43. 立即购买
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. // import navBar from '@/components/navBar/index.vue'
  50. export default {
  51. // components: {
  52. // navBar
  53. // },
  54. data() {
  55. return {
  56. picBase: this.$picBase2,
  57. curIndex: 0,
  58. }
  59. },
  60. onLoad() {
  61. },
  62. methods: {
  63. selTaocan(i) {
  64. this.curIndex = i
  65. }
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. @import "./index.scss";
  71. </style>