环卫车小程序前端代码
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.

54 lines
1.1 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="se-p-60">
  3. <view class="se-p-40 se-flex se-bgc-white se-br-20 se-bs se-flex-v-sa">
  4. <text class="se-pb-50 se-pt-100">邀请好友</text>
  5. <image class="se-a-300 se-br-20" src="https://cdn.uviewui.com/uview/swiper/swiper1.png" mode=""></image>
  6. <text class="se-pt-50 se-pb-80">邀请码TKAFGED</text>
  7. </view>
  8. <view class="se-px-100 se-pt-80 se-fs-20 se-flex">
  9. <view @click="onSubmit"
  10. class="se-mx-10 se-flex-1 se-br-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-28 se-c-white se-bgc-green">
  11. <text>保存到本地</text>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import { getInviteCode } from "@/common/api.js"
  18. export default {
  19. data() {
  20. return {
  21. }
  22. },
  23. watch: {
  24. },
  25. onLoad(options) {
  26. this.onInviteCode()
  27. },
  28. methods: {
  29. onInviteCode(){
  30. let that = this
  31. let params={}
  32. getInviteCode(params).then(response=>{
  33. console.info("getInviteCode",response)
  34. }).catch(error=>{
  35. })
  36. },
  37. onSubmit(){
  38. console.info("保存成功")
  39. }
  40. },
  41. onReady() {
  42. },
  43. }
  44. </script>
  45. <style>
  46. page {
  47. background-color: #f5f5f5;
  48. }
  49. </style>