accountSet.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <div class="per-info__container">
  3. <van-nav-bar
  4. class="headerbar no-down-icon"
  5. title="账号密码"
  6. left-text="返回"
  7. @click-left="$route_back"
  8. left-arrow
  9. >
  10. <template slot="right" class="department_right_nav">
  11. <van-dropdown-menu
  12. duration="0.3"
  13. text="text"
  14. class="head_dropdown_menu"
  15. >
  16. <van-dropdown-item
  17. title="更多"
  18. @change="plus_menu"
  19. :options="option"
  20. />
  21. </van-dropdown-menu>
  22. </template>
  23. </van-nav-bar>
  24. <van-cell-group>
  25. <van-cell title="修改密码" to="change_pwd" is-link />
  26. </van-cell-group>
  27. </div>
  28. </template>
  29. <script>
  30. import Vue from "vue";
  31. import { Cell, CellGroup, DropdownMenu, DropdownItem } from "vant";
  32. Vue.use(Cell)
  33. .use(CellGroup)
  34. .use(DropdownMenu)
  35. .use(DropdownItem);
  36. export default {
  37. name: "accountSet",
  38. data() {
  39. return {
  40. option: [{ text: "账号注销", value: 1 }]
  41. };
  42. },
  43. methods: {
  44. plus_menu(val) {
  45. if (val) {
  46. this.$router.push({
  47. path: "/verify",
  48. query: {
  49. type: 2
  50. }
  51. });
  52. }
  53. }
  54. }
  55. };
  56. </script>
  57. <style scoped lang="less">
  58. .text {
  59. text-align: center;
  60. color: #969799;
  61. font-size: 0.28rem;
  62. padding: 0.2rem 0;
  63. }
  64. .headerbar /deep/.van-dropdown-menu__title {
  65. padding: 0;
  66. padding-right: 0rem;
  67. font-size: 0.3rem;
  68. color: #fff;
  69. }
  70. /deep/ .van-dropdown-menu__bar {
  71. background-color: transparent;
  72. }
  73. /deep/ .van-nav-bar__right{
  74. overflow: hidden;
  75. }
  76. /deep/ .van-dropdown-menu__title--active {
  77. color: #fff !important;
  78. }
  79. </style>