video.js 813 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // 引入 QCloud 小程序增强 SDK
  2. var qcloud = require('../../vendor/qcloud-weapp-client-sdk/index');
  3. // 引入配置
  4. var config = require('../../config');
  5. // 显示繁忙提示
  6. var showBusy = text => wx.showToast({
  7. title: text,
  8. icon: 'loading',
  9. duration: 10000
  10. });
  11. // 显示成功提示
  12. var showSuccess = text => {
  13. wx.hideToast();
  14. wx.showToast({
  15. title: text,
  16. icon: 'success'
  17. });
  18. };
  19. // 显示失败提示
  20. var showModel = (title, content) => {
  21. wx.hideToast();
  22. wx.showModal({
  23. title,
  24. content: JSON.stringify(content),
  25. showCancel: false
  26. });
  27. };
  28. //获取应用实例
  29. var app = getApp()
  30. Page({
  31. data: {
  32. },
  33. onLoad: function (e) {
  34. console.log('onLoad');
  35. },
  36. onShow: function () {
  37. console.log('onShow');
  38. },
  39. })