otherAccount.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="box">
  3. <cu-custom bgColor="bg-blue" :isBack="true">
  4. <block slot="backText">第三方账号</block>
  5. <block slot="content"></block>
  6. <block slot="right">
  7. <view class=" flex justify-center">
  8. <button class="margin-top-ssm cu-btn round bg-blue text-blue"><text class="cuIcon-add"></text></button>
  9. </view>
  10. </block>
  11. </cu-custom>
  12. <scroll-view scroll-y="true" class="DrawerPage margin-bottom-xxxl">
  13. <view class="cu-list menu">
  14. <!-- 菜单-->
  15. <view class="cu-item arrow" v-for="item in menuList" :key="item.name">
  16. <view class="content" @click="navTo(item.url)">
  17. <text class="text-black ">{{item.name}}</text>
  18. </view>
  19. </view>
  20. </view>
  21. </scroll-view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. menuList:[
  29. {name:"微信",url:"./accountType/accountType?type=1"},
  30. {name:"QQ",url:"./accountType/accountType?type=2"},
  31. {name:"新浪微博",url:"./accountType/accountType?type=3"},
  32. ],
  33. }
  34. },
  35. methods: {
  36. navTo(url){
  37. if(url){
  38. uni.navigateTo({
  39. url:url
  40. })
  41. }
  42. },
  43. }
  44. }
  45. </script>
  46. <style>
  47. .text-black{
  48. color:#101010;
  49. }
  50. .cu-list.menu>.cu-item:after {border-bottom: 2rpx solid #E3E1E1!important;}
  51. </style>