personalFunction.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <!-- 个人功能 -->
  3. <view class="team">
  4. <text class="team-title">{{ i18n.thatPerson }}</text>
  5. <view class="function-team">
  6. <view class="icon-center" @click="toSetleIn">
  7. <image class="form-icon" src="../../../static/mine/322.png" mode=""></image>
  8. <view class="characters">{{ i18n.become }}</view>
  9. </view>
  10. <view class="icon-center" @click="tokefu">
  11. <image class="form-icon" src="../../../static/mine/317.png" mode=""></image>
  12. <view class="characters">{{ i18n.pontact }}</view>
  13. </view>
  14. <view class="icon-center" @click="toSetup">
  15. <image class="form-icon" src="../../../static/mine/321.png" mode=""></image>
  16. <view class="characters">{{ i18n.accountSettings }}</view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {};
  25. },
  26. computed: {
  27. i18n() {
  28. return this.$t("index");
  29. },
  30. },
  31. methods: {
  32. tokefu() {
  33. uni.navigateTo({
  34. url: '/pageA/service/service'
  35. })
  36. },
  37. toSetup() {
  38. uni.navigateTo({
  39. url: "/pageC/accountSetup/accountSetup",
  40. });
  41. },
  42. toSetleIn() {
  43. uni.$u.http.post(`/api/merchant/status`).then((res) => {
  44. console.log(res);
  45. if (res.status == 1 || res.status == 0 || res.status == 2) {
  46. uni.navigateTo({
  47. url: "/pageD/resultFeedback/resultFeedback",
  48. });
  49. } else {
  50. uni.navigateTo({
  51. url: "/pageD/settleIn/settleIn",
  52. });
  53. }
  54. });
  55. },
  56. },
  57. };
  58. </script>
  59. <style lang="scss">
  60. .team {
  61. // height: 110px;
  62. width: 100%;
  63. background-color: #fff;
  64. border-radius: 10px;
  65. margin-top: 10px;
  66. padding: 14px 0;
  67. .team-title {
  68. color: #222;
  69. font-size: 14px;
  70. font-weight: 600;
  71. display: block;
  72. margin-left: 10px;
  73. }
  74. .function-team {
  75. display: flex;
  76. flex-wrap: wrap;
  77. align-items: center;
  78. .icon-center {
  79. width: 18%;
  80. margin-top: 18px;
  81. display: flex;
  82. flex-wrap: wrap;
  83. padding: 0 10px;
  84. justify-content: center;
  85. flex-direction: column;
  86. align-items: center;
  87. }
  88. .form-icon {
  89. width: 24px;
  90. height: 24px;
  91. }
  92. .characters {
  93. color: #202020;
  94. font-size: 12px;
  95. margin-top: 10px;
  96. text-align: center;
  97. }
  98. }
  99. }
  100. </style>