demo.js 678 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. const wxml = (url) => `<view class="container">
  2. <image class="img" mode="aspectFit" src="${url}"></image>
  3. <text class="title">
  4. 微信开放社区简介(视频)
  5. </text>
  6. <text class="desc">
  7. 微信开放社区,是一个为使用者提供交流、服务的平台。
  8. </text>
  9. </view>
  10. `
  11. const style = {
  12. img: {
  13. width: 200,
  14. height: 120,
  15. },
  16. container: {
  17. height: 200,
  18. width: 200,
  19. flexDirection: 'column'
  20. },
  21. title: {
  22. height: 20,
  23. width: 200,
  24. color: '#15c15f',
  25. margin: 4,
  26. },
  27. desc: {
  28. fontSize: 13,
  29. height: 40,
  30. width: 200,
  31. color: '#4c4c4c',
  32. margin: 4,
  33. }
  34. }
  35. module.exports = {
  36. wxml,
  37. style
  38. }