appraise.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="appraise-Form">
  3. <uni-forms :modelValue="formData" label-width="120">
  4. <uni-forms-item label="卡号" name="cardNo">
  5. <uni-easyinput type="text" trim="all" v-model="formData.cardNo" placeholder="请输入卡号" />
  6. </uni-forms-item>
  7. <uni-forms-item name="remark" label="备注">
  8. <uni-easyinput type="textarea" autoHeight v-model="formData.remark" placeholder="请输入备注" trim="all"></uni-easyinput>
  9. </uni-forms-item>
  10. </uni-forms>
  11. <button class="submit-BT" type="primary" @click="submitForm">提交</button>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name:"appraise",
  17. data() {
  18. return {
  19. formData:{
  20. remark:"",
  21. cardNo:undefined
  22. }
  23. };
  24. },
  25. methods:{
  26. submitForm(){
  27. this.$emit('submit',this.formData)
  28. },
  29. reset(){
  30. this.formData={
  31. remark:"",
  32. cardNo:undefined
  33. }
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="less" scoped>
  39. .appraise-Form{
  40. .submit-BT{
  41. color: #fff;
  42. background-color: #007aff !important;
  43. margin-top: 60upx;
  44. }
  45. .uni-rate-container{
  46. height: 100%;
  47. display: flex;
  48. align-items: center;
  49. }
  50. }
  51. </style>