test.vue 749 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="">
  3. </view>
  4. </template>
  5. <script>
  6. import md5Libs from "uview-ui/libs/function/md5";
  7. import crypto from "../../utils/crypto.js"
  8. export default {
  9. name: '',
  10. data() {
  11. return {
  12. };
  13. },
  14. onLoad() {
  15. this.remove()
  16. },
  17. methods: {
  18. list() {
  19. this.$api.shop.list({
  20. id: '1453602587696812034'
  21. }).then(res => {
  22. console.log(res, "/******");
  23. })
  24. },
  25. submit() {
  26. let params = {
  27. "phone": "19124812874",
  28. "secret": "123456"
  29. }
  30. this.$api.test.submit(params).then(res => {
  31. console.log(res);
  32. })
  33. },
  34. remove() {
  35. this.$api.test.remove("1455095357455790082").then(res => {
  36. console.log(res);
  37. })
  38. }
  39. }
  40. };
  41. </script>
  42. <style lang="scss" scoped>
  43. </style>