index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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" @click="toRecord">
  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. toRecord(){
  67. uni.navigateTo({
  68. url: '/pages/my/myRecord/index?tabIndex=0'
  69. })
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. @import "./index.scss";
  76. </style>