百富门答题小程序
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.

89 lines
1.9 KiB

  1. <template>
  2. <view class="home">
  3. <view class="content" style="padding-top: 25vh;">
  4. <span class="font-bold">为了给您提供更个性化的服务</span>
  5. <span class="font-bold">请您填写以下基本信息</span>
  6. <view class="flex-col mt-40">
  7. <view class="flex-center">
  8. <span style="margin-right: 30rpx;">您的姓名:</span>
  9. <input class="inputStyle" v-model="username" type="text" />
  10. </view>
  11. <view class="flex-center">
  12. <span style="margin-right: 30rpx;">手机号码:</span>
  13. <input class="inputStyle" v-model="phone" type="number" />
  14. </view>
  15. </view>
  16. <view style="margin-top: 15vh;" @click="query">
  17. <view class="btn2">
  18. 确认
  19. </view>
  20. </view>
  21. <view class="flex-col query" style="gap: 0rpx;">
  22. <text class="second-color">欢快无限饮&nbsp;&nbsp;饮酒有限度</text>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. username:'',
  32. phone:''
  33. }
  34. },
  35. methods: {
  36. query(){
  37. if(!this.username && !this.phone){
  38. uni.showToast({
  39. title:'您的姓名和手机号都不能为空哦~',
  40. icon: 'none'
  41. })
  42. }else{
  43. uni.navigateTo({
  44. url:'/pages_order/info/greet'
  45. })
  46. }
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .query {
  53. position: relative;
  54. bottom: -15vh;
  55. }
  56. .b-btn {
  57. width: 86%;
  58. display: flex;
  59. justify-content: space-between;
  60. padding-top: 20vh;
  61. .pre-btn {
  62. border: 4rpx solid #f1e0c6;
  63. padding: 16rpx 90rpx;
  64. border-radius: 66rpx;
  65. color: #e6bf7f;
  66. }
  67. .next-btn {
  68. background-image: url('../../static/image/home/btn.png');
  69. background-size: contain;
  70. background-repeat: no-repeat;
  71. background-position: center;
  72. width: 40vw;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. color: white;
  77. }
  78. }
  79. .inputStyle{
  80. border: 3rpx solid #e5bf7d;
  81. border-radius: 40rpx;
  82. color: #e5bf7d;
  83. padding: 10rpx 10rpx;
  84. }
  85. </style>