template.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. return [
  3. [
  4. "name" => "找朋友帮忙付模板", // 海报模板名称
  5. 'type' => 'friendspay', // 海报类型
  6. "data" => [
  7. "global" => [
  8. "width" => 720,
  9. "height" => 1280,
  10. "bgType" => "url",
  11. "bgColor" => "#ffffff",
  12. "bgUrl" => "static/resource/images/pay/friendspay_bg.jpg"
  13. ],
  14. "value" => [
  15. [
  16. "type" => "text",
  17. "path" => "text",
  18. "uses" => 0,
  19. "relate" => "",
  20. "value" => "您的帮付金额",
  21. "id" => "wgvspr9fafk",
  22. "componentName" => "Text",
  23. "componentTitle" => "文本",
  24. "width" => 518,
  25. "height" => 48,
  26. "minWidth" => 120,
  27. "minHeight" => 44,
  28. "x" => "center",
  29. "y" => 759,
  30. "angle" => 0,
  31. "zIndex" => 8,
  32. "fontFamily" => "static/font/SourceHanSansCN-Regular.ttf",
  33. "fontSize" => 24,
  34. "weight" => false,
  35. "lineHeight" => 20,
  36. "fontColor" => "#333333"
  37. ],
  38. [
  39. "type" => "text",
  40. "path" => "friendspay-money",
  41. "uses" => 1,
  42. "relate" => "friendspay_money",
  43. "value" => "¥369.00",
  44. "id" => "2waud25nthq0",
  45. "componentName" => "FriendsPayMoney",
  46. "componentTitle" => "帮付金额",
  47. "width" => 518,
  48. "height" => 58,
  49. "minWidth" => 120,
  50. "minHeight" => 44,
  51. "x" => "center",
  52. "y" => 694,
  53. "angle" => 0,
  54. "zIndex" => 9,
  55. "fontFamily" => "static/font/price.ttf",
  56. "fontSize" => 56,
  57. "weight" => false,
  58. "lineHeight" => 10,
  59. "fontColor" => "#FF4142"
  60. ],
  61. [
  62. "type" => "text",
  63. "path" => "text",
  64. "uses" => 0,
  65. "relate" => "",
  66. "value" => "长按识别二维码,帮我付款",
  67. "id" => "639vjo8ebo40",
  68. "componentName" => "Text",
  69. "componentTitle" => "文本",
  70. "width" => 518,
  71. "height" => 59,
  72. "minWidth" => 120,
  73. "minHeight" => 44,
  74. "x" => "center",
  75. "y" => 1097,
  76. "angle" => 0,
  77. "zIndex" => 10,
  78. "fontFamily" => "static/font/SourceHanSansCN-Regular.ttf",
  79. "fontSize" => 26,
  80. "weight" => false,
  81. "lineHeight" => 26,
  82. "fontColor" => "#333333"
  83. ],
  84. [
  85. "type" => "text",
  86. "path" => "friendspay-message",
  87. "uses" => 1,
  88. "relate" => "friendspay_message",
  89. "value" => "帮我付一下这笔订单吧,谢谢啦~",
  90. "id" => "5oyikcgoylo0",
  91. "componentName" => "FriendsPayMessage",
  92. "componentTitle" => "帮付留言",
  93. "width" => 600,
  94. "height" => 48,
  95. "minWidth" => 120,
  96. "minHeight" => 44,
  97. "x" => "center",
  98. "y" => 570,
  99. "angle" => 0,
  100. "zIndex" => 4,
  101. "fontFamily" => "static/font/SourceHanSansCN-Regular.ttf",
  102. "fontSize" => 26,
  103. "weight" => false,
  104. "lineHeight" => 10,
  105. "fontColor" => "#666666"
  106. ],
  107. [
  108. "type" => "qrcode",
  109. "path" => "qrcode",
  110. "uses" => 1,
  111. "relate" => "url",
  112. "value" => "",
  113. "id" => "3m6szk6d98m0",
  114. "componentName" => "Qrcode",
  115. "componentTitle" => "二维码",
  116. "width" => 214,
  117. "height" => 214,
  118. "minWidth" => 60,
  119. "minHeight" => 60,
  120. "x" => 254,
  121. "y" => 844,
  122. "angle" => 0,
  123. "zIndex" => 8
  124. ],
  125. [
  126. "type" => "text",
  127. "path" => "nickname",
  128. "uses" => 1,
  129. "relate" => "nickname",
  130. "value" => "",
  131. "id" => "31wsjudfc7m0",
  132. "componentName" => "NickName",
  133. "componentTitle" => "昵称",
  134. "width" => 600,
  135. "height" => 40,
  136. "minWidth" => 120,
  137. "minHeight" => 50,
  138. "x" => "center",
  139. "y" => 512,
  140. "angle" => 0,
  141. "zIndex" => 6,
  142. "fontFamily" => "static/font/SourceHanSansCN-Regular.ttf",
  143. "fontSize" => 30,
  144. "weight" => false,
  145. "lineHeight" => 10,
  146. "fontColor" => "#303133"
  147. ],
  148. [
  149. "type" => "image",
  150. "path" => "headimg",
  151. "uses" => 1,
  152. "relate" => "headimg",
  153. "value" => "",
  154. "id" => "5asgzwz9f5s0",
  155. "componentName" => "HeadImg",
  156. "componentTitle" => "头像",
  157. "width" => 149,
  158. "height" => 149,
  159. "minWidth" => 60,
  160. "minHeight" => 60,
  161. "x" => 286,
  162. "y" => 344,
  163. "angle" => 0,
  164. "zIndex" => 7,
  165. "shape" => "circle"
  166. ]
  167. ]
  168. ]
  169. ],
  170. ];