Identity.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view class="reset" v-if="ctrlModel.funcname">
  3. <view class="update-line">
  4. <view class="label">
  5. {{ ctrlModel.funcname }}
  6. </view>
  7. <view
  8. class="content"
  9. hover-class="navigator-hover"
  10. @click="onClick(ctrlModel)"
  11. >验证
  12. </view>
  13. </view>
  14. <My_input ref="MyInput" />
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: "Identity",
  20. data() {
  21. return {
  22. ctrlModel: {},
  23. };
  24. },
  25. methods: {
  26. onClick() {
  27. let that = this;
  28. uni.showModal({
  29. title: "提示",
  30. content: "确定验证身份吗?",
  31. success: ({ confirm }) => {
  32. if (confirm) {
  33. that.$refs.MyInput.submit(that.ctrlModel.w_functionid, {E013:this.bluetoothcode});
  34. }
  35. },
  36. });
  37. },
  38. },
  39. };
  40. </script>
  41. <style lang="scss" scoped>
  42. .reset {
  43. margin-bottom: 12px;
  44. .update-line {
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. .label {
  49. font-size: 3.7333333333333vw;
  50. color: #fff;
  51. font-weight: bold;
  52. text-indent: 1.6vw;
  53. }
  54. .content {
  55. background-color: #004a92;
  56. font-size: 12px;
  57. padding: 4px 8px;
  58. border-radius: 4px;
  59. box-sizing: border-box;
  60. color: #fff;
  61. }
  62. }
  63. }
  64. </style>