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

128 lines
2.6 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 weeks ago
  1. <template>
  2. <view class="home">
  3. <image src="/static/image/bg/1.png"
  4. class="page-bg"
  5. mode="aspectFill"></image>
  6. <view class="content_now">
  7. <span class="font-bold">为了给您提供更个性化的服务</span>
  8. <span class="font-bold">请您填写以下基本信息</span>
  9. <view class="flex-col mt-40">
  10. <view class="flex-center">
  11. <span style="margin-right: 30rpx;">您的姓名:</span>
  12. <input class="inputStyle" v-model="form.username" type="text" />
  13. </view>
  14. <view class="flex-center">
  15. <span style="margin-right: 30rpx;">手机号码:</span>
  16. <input class="inputStyle" v-model="form.phone" type="number" />
  17. </view>
  18. </view>
  19. </view>
  20. <view class="an">
  21. <view style="margin-top: 15vh;" @click="query">
  22. <view class="btn2">
  23. 确认
  24. </view>
  25. </view>
  26. <view class="flex-col query" style="gap: 0rpx;">
  27. <text class="second-color">{{ configList.bg_title }}</text>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import { mapState } from 'vuex'
  34. export default {
  35. data() {
  36. return {
  37. form : {
  38. username:'',
  39. phone:''
  40. }
  41. }
  42. },
  43. computed : {
  44. ...mapState(['problemList', 'configList', 'queryMyLog']),
  45. },
  46. onLoad() {
  47. if(uni.getStorageSync('user_phone')){
  48. this.form = JSON.parse(uni.getStorageSync('user_phone'))
  49. }
  50. },
  51. methods: {
  52. query(){
  53. if(!this.form.username && !this.form.phone){
  54. uni.showToast({
  55. title:'您的姓名和手机号都不能为空哦~',
  56. icon: 'none'
  57. })
  58. return
  59. }
  60. if(!this.$utils.verificationPhone(this.form.phone)){
  61. uni.showToast({
  62. title: '请输入正确的手机号',
  63. icon: 'none',
  64. })
  65. return
  66. }
  67. uni.setStorageSync('user_phone', JSON.stringify(this.form))
  68. uni.navigateTo({
  69. url:'/pages_order/info/appoint'
  70. })
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .an{
  77. position: fixed;
  78. bottom: 300rpx;
  79. text-align: center;
  80. display: flex;
  81. flex-direction: column;
  82. align-items: center;
  83. justify-content: center;
  84. width: 100%;
  85. }
  86. .b-btn {
  87. width: 86%;
  88. display: flex;
  89. justify-content: space-between;
  90. padding-top: 20vh;
  91. .pre-btn {
  92. border: 4rpx solid #f1e0c6;
  93. padding: 16rpx 90rpx;
  94. border-radius: 66rpx;
  95. color: #e6bf7f;
  96. }
  97. .next-btn {
  98. // background-image: url('../../static/image/home/btn.png');
  99. background-size: contain;
  100. background-repeat: no-repeat;
  101. background-position: center;
  102. width: 40vw;
  103. display: flex;
  104. align-items: center;
  105. justify-content: center;
  106. color: white;
  107. }
  108. }
  109. .inputStyle{
  110. border: 3rpx solid #e5bf7d;
  111. border-radius: 40rpx;
  112. color: #e5bf7d;
  113. padding: 10rpx 10rpx;
  114. }
  115. </style>