C端小程序
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

36 rindas
774 B

  1. var config = require("../../config/config.js");
  2. const Http = require("../../utils/HttpBasics");
  3. Page({
  4. data: {},
  5. getPhoneNumber: function(e) {
  6. console.log(e.detail.errMsg);
  7. console.log(e.detail.iv);
  8. console.log(e.detail.encryptedData);
  9. wx.navigateBack({
  10. delta: 1
  11. });
  12. },
  13. onLoad() {
  14. let that = this;
  15. console.log(config.weapp.AppId)
  16. Http.get({
  17. url: config.api.marketicon,
  18. data: {
  19. appId: config.weapp.AppId
  20. }
  21. }).then(res=>{
  22. console.log(res.data.mallImgUrl);
  23. that.setData({
  24. mallImgUrl: res.data.mallImgUrl
  25. });
  26. }).catch(err => {
  27. wx.showToast({
  28. title: err.errMsg,
  29. icon: 'none',
  30. duration: 2000,
  31. mask: false
  32. });
  33. })
  34. }
  35. });