index.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="shopping-wrapper">
  3. <view class="common-card" v-for="(item, index) in list" :key="index" @click="toSubPages(item.index)">
  4. <view class="display-flex-between">
  5. <view class="mt15 mb15 display-flex-content-center">
  6. <image :src="item.url" class="mr12" mode="heightFix" style="width: 36rpx;height: 36rpx"></image>
  7. <text class="member-other-card-name">{{ item.name }}</text>
  8. </view>
  9. <view>
  10. <u-icon name="arrow-right" bold color="#333333" size="14"></u-icon>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import tabbarCom from "@/components/tabbar/tabbar.vue";
  18. export default {
  19. components: {tabbarCom},
  20. data() {
  21. return {
  22. list: [
  23. {
  24. url: "/static/setting-a.png",
  25. index: "/subPages/personalDataManagement/index",
  26. name: "个人资料"
  27. },
  28. {
  29. url: "/static/setting-b.png",
  30. index: "/subPages/setting/setPwd?type=add",
  31. name: "安全密码"
  32. },
  33. {
  34. url: "/static/setting-c.png",
  35. index: "/subPages/setting/setPwd?type=set-2",
  36. name: "忘记安全密码"
  37. }
  38. ],
  39. };
  40. },
  41. methods: {
  42. toSubPages(index) {
  43. uni.navigateTo({
  44. url: index,
  45. });
  46. },
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .shopping-wrapper {
  52. padding: 30rpx 30rpx 178rpx;
  53. .common-card {
  54. background: #FFFFFF;
  55. border-radius: 16rpx 16rpx 16rpx 16rpx;
  56. padding: 0 20rpx;
  57. member-other-card -name {
  58. font-family: PingFang SC, PingFang SC;
  59. font-weight: 400;
  60. font-size: 28rpx;
  61. color: #333333;
  62. line-height: 48rpx;
  63. text-align: left;
  64. font-style: normal;
  65. text-transform: none;
  66. }
  67. }
  68. }
  69. </style>