linkedAccountSet.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="page">
  3. <uni-Cell :celllist="celllist" :leftStyle="{fontSize:'30rpx'}">
  4. <template #customContent="{ item }">
  5. <view class="" v-if="item.title=='微信'">
  6. <view class="authtag">
  7. 未绑定
  8. </view>
  9. </view>
  10. <view class="" v-if="item.title=='支付宝'">
  11. <text>立即解绑</text>
  12. </view>
  13. </template>
  14. </uni-Cell>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. celllist: [{
  22. title: "微信",
  23. useSlot: true, //是否插槽,
  24. icon: '/static/icon/my/weChat.png',
  25. clickType: 'weChat',
  26. },
  27. {
  28. title: "支付宝",
  29. useSlot: true,
  30. icon: '/static/icon/my/alipay.png',
  31. clickType: 'alipay',
  32. },
  33. ],
  34. }
  35. },
  36. onShow() {
  37. },
  38. onLoad() {
  39. },
  40. methods: {
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .page {
  46. background-color: #F8F8F8;
  47. height: 100vh;
  48. }
  49. .authtag {
  50. padding: 2rpx 8rpx;
  51. box-sizing: border-box;
  52. background: linear-gradient(270deg, #FDE935 0%, #F1FF91 100%);
  53. border-radius: 4rpx 4rpx 4rpx 4rpx;
  54. font-size: 22rpx;
  55. color: #333;
  56. }
  57. </style>