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.

list.vue 941 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="page">
  3. <view class="btn scanCodeBtn" @click="tapScan">扫码签到</view>
  4. <scanCode ref="refScanCode"></scanCode>
  5. </view>
  6. </template>
  7. <script>
  8. import scanCode from "@/components/scanCode.vue"
  9. export default {
  10. components:{scanCode},
  11. data() {
  12. return {};
  13. },
  14. methods: {
  15. tapScan() {
  16. this.$refs['refScanCode'].scanCode().then(res=>{
  17. if (!res) return;
  18. var userInfo = this.GET_GLOBAL("loginUser");
  19. var result = this.HTTP_GET(
  20. "learun/adms/PersonnelManagement/DutySchedule/scan",
  21. {
  22. userid: userInfo.userId,
  23. dutyid: res.result,
  24. },
  25. "签到时出错"
  26. ).then(res1=>{
  27. this.TOAST(res1.result)
  28. })
  29. })
  30. },
  31. },
  32. };
  33. </script>
  34. <style lang="less" scoped>
  35. @import "~@/common/css/sidepage.less";
  36. @import "~@/common/css/customlist.less";
  37. .scanCodeBtn{
  38. width: 120px;
  39. height: 120px;
  40. border-radius: 50%;
  41. line-height: 120px;
  42. margin-top: 180px;
  43. }
  44. </style>