index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="content">
  3. <!--轮播图-->
  4. <view>
  5. <text>Home图标</text>
  6. <u-icon name="home"></u-icon>
  7. </view>
  8. <view style="padding: 20px;">
  9. <u-button type="primary" text="确定"></u-button>
  10. <u-button type="primary" :plain="true" text="镂空"></u-button>
  11. <u-button type="primary" :plain="true" :hairline="true" text="细边"></u-button>
  12. <u-button type="primary" :disabled="disabled" text="禁用"></u-button>
  13. <u-button type="primary" loading loadingText="加载中"></u-button>
  14. <u-button type="primary" icon="map" text="图标按钮"></u-button>
  15. <u-button type="primary" shape="circle" text="按钮形状"></u-button>
  16. <u-button text="渐变色按钮" color="linear-gradient(to right, rgb(66, 83, 216), rgb(213, 51, 186))"></u-button>
  17. <u-button type="primary" size="small" text="大小尺寸"></u-button>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. title: 'Hello'
  26. }
  27. },
  28. onLoad() {
  29. this.getmessage()
  30. },
  31. methods: {
  32. goOrderDetail(){
  33. uni.navigateTo({
  34. url: '/orderPages/orderDetail/index'
  35. })
  36. },
  37. getmessage(){
  38. this.$api.payTheBill({}).then(res =>{
  39. console.log(res)
  40. })
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. @import '/common/css/common.css';
  47. @import './index.rpx.css';
  48. </style>