环卫车小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view>
  3. <view class="se-fs-40 se-fw-6 se-ta-c se-pt-120">
  4. 请选择您的身份
  5. </view>
  6. <view @click="onBusiness" class="business se-mt-80 se-br-10 se-mx-35 se-bgc-red se-flex se-flex-h-sb se-w-680 se-h-240 se-fs-48 se-c-white">
  7. <text class="se-ml-80">企业</text>
  8. <image class="se-a-170 se-br-p-50 se-mr-80" src="@/static/image/7525122.png" mode=""></image>
  9. </view>
  10. <view @click="onPerson" class="master se-mt-80 se-br-10 se-mx-35 se-bgc-orange se-flex se-flex-h-sb se-w-680 se-h-240 se-fs-48 se-c-white">
  11. <text class="se-ml-80">个人</text>
  12. <image class="se-a-170 se-br-p-50 se-mr-80" src="@/static/image/7525121.png" mode=""></image>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default{
  18. data(){
  19. return{
  20. userStatus:null,
  21. }
  22. },
  23. onLoad(options) {
  24. if(options.userStatus){
  25. this.userStatus = options.userStatus
  26. }
  27. },
  28. methods:{
  29. onBusiness(){
  30. uni.navigateTo({
  31. url:"/pages_subpack/business/index?userStatus="+this.userStatus
  32. })
  33. },
  34. onPerson(){
  35. uni.navigateTo({
  36. url:"/pages_subpack/person/index?userStatus="+this.userStatus
  37. })
  38. }
  39. }
  40. }
  41. </script>
  42. <style>
  43. .business{
  44. width: 690rpx;
  45. height: 240rpx;
  46. background: #f0a921;
  47. border: 8rpx solid rgba(255,255,255,0.64);
  48. border-radius: 16rpx;
  49. }
  50. .master{
  51. width: 690rpx;
  52. height: 240rpx;
  53. background: #87bf53;
  54. border: 8rpx solid rgba(255,255,255,0.64);
  55. border-radius: 16rpx;
  56. }
  57. </style>