index.jsx 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. import { Component } from "react";
  2. import { View, Text, Image } from "@tarojs/components";
  3. import { AtIcon } from "taro-ui";
  4. import Taro from "@tarojs/taro";
  5. import "./index.less";
  6. import vip from "../../images/member/vip.png";
  7. import home from "../../images/nav/home.png";
  8. import toDetail from "../../images/member/toDetail.png";
  9. import warning from "../../images/member/warning.png";
  10. import withdrawable from "../../images/member/withdrawable.png";
  11. import order from "../../images/member/order.png";
  12. export default class Index extends Component {
  13. componentWillMount() {}
  14. componentDidMount() {}
  15. componentWillUnmount() {}
  16. componentDidShow() {}
  17. componentDidHide() {}
  18. render() {
  19. return (
  20. <View className="member">
  21. <View className="member-bg"></View>
  22. <View className="member-content">
  23. {/* 会员信息卡 */}
  24. <View className="member-info-card">
  25. <View className="member-info-card-header">
  26. <Image className="avatar" src="" />
  27. <View className="member-info-card-header-text">
  28. <Text className="user-name">会员</Text>
  29. <View className="member-info-card-header-text-level">
  30. <Text className="level-text">店长</Text>
  31. <Image className="level-icon" src={vip} />
  32. </View>
  33. </View>
  34. </View>
  35. {/* 我的小店 */}
  36. <View onClick={() => Taro.navigateTo({ url: `/pages/storeManagement/index?isManager=${true}` })} className="my-shop">
  37. <Image className="my-shop-icon" src={home} />
  38. <Text className="my-shop-text">我的小店</Text>
  39. </View>
  40. </View>
  41. {/* 预估收益 */}
  42. <View className="estimated-income">
  43. <Text className="estimated-income-title">预估收益</Text>
  44. <View className="estimated-income-content">
  45. <View className="income-item">
  46. <Text className="amount">0.00</Text>
  47. <Text className="label">今日预估收益</Text>
  48. </View>
  49. <View className="divider"></View>
  50. <View className="income-item">
  51. <Text className="amount">0.00</Text>
  52. <Text className="label">累计收益</Text>
  53. </View>
  54. </View>
  55. <view onClick={() => Taro.navigateTo({ url: `/pages/earningsDetail/index` })} className="estimated-income-detail">
  56. 收益详情
  57. <Image className="to-detail" src={toDetail} />
  58. </view>
  59. </View>
  60. {/* 可提现金额 */}
  61. <View className="withdrawable-amount">
  62. <View className="withdrawable-amount-header">
  63. <Image className="withdrawable-amount-icon" src={withdrawable} />
  64. <Text className="withdrawable-amount-title">可提现金额</Text>
  65. </View>
  66. <View className="withdrawable-amount-content">
  67. <View className="left">
  68. <Text className="amount">¥0.00</Text>
  69. <View className="warning-icon-box">
  70. <Image className="warning-icon" src={warning} />
  71. <Text className="warning-text">未完成提现认证</Text>
  72. </View>
  73. </View>
  74. <View className="right">点击提现</View>
  75. </View>
  76. </View>
  77. {/* 今日订单 */}
  78. <View className="today-order">
  79. <View className="today-order-header">
  80. <View className="today-order-header-left">
  81. <Image className="today-order-icon" src={order} />
  82. <Text className="today-order-title">今日订单</Text>
  83. </View>
  84. <View className="today-order-header-right">
  85. 历史订单
  86. <AtIcon value='chevron-right' size='10' color='#A1A1A1'></AtIcon>
  87. </View>
  88. </View>
  89. <View className="today-order-content">
  90. <View className="order-item">
  91. <Text className="label">订单总量</Text>
  92. <Text className="amount">0</Text>
  93. </View>
  94. <View className="order-item">
  95. <Text className="label">推广订单</Text>
  96. <Text className="amount">0</Text>
  97. </View>
  98. <View className="order-item">
  99. <Text className="label">购买历史</Text>
  100. <Text className="amount">0</Text>
  101. </View>
  102. </View>
  103. </View>
  104. </View>
  105. </View>
  106. );
  107. }
  108. }