about.js 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // about.js
  2. var app = getApp()
  3. var util = require("../../utils/util.js");
  4. var api = require("../../config/api.js");
  5. Page({
  6. /**
  7. * 页面的初始数据
  8. */
  9. data: {
  10. load_statue: true,
  11. shopInfo: {
  12. name: 'litemall',
  13. address: 'https://github.com/linlinjava/litemall',
  14. latitude: 31.201900,
  15. longitude: 121.587839,
  16. linkPhone: '021-xxxx-xxxx',
  17. qqNumber: '738696120'
  18. },
  19. },
  20. /**
  21. * 生命周期函数--监听页面加载
  22. */
  23. onLoad: function (options) {
  24. },
  25. showLocation: function (e) {
  26. var that = this
  27. wx.openLocation({
  28. latitude: that.data.shopInfo.latitude,
  29. longitude: that.data.shopInfo.longitude,
  30. name: that.data.shopInfo.name,
  31. address: that.data.shopInfo.address,
  32. })
  33. },
  34. callPhone: function (e) {
  35. var that = this
  36. wx.makePhoneCall({
  37. phoneNumber: that.data.shopInfo.linkPhone,
  38. })
  39. },
  40. reLoad: function (e) {
  41. this.loadShopInfo();
  42. }
  43. })