ShowPromotion.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 山西牛酷信息科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com.cn
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
  9. * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
  10. * =========================================================
  11. */
  12. declare (strict_types = 1);
  13. namespace app\event;
  14. /**
  15. * 平台推广营销类展示
  16. */
  17. class ShowPromotion
  18. {
  19. /**
  20. * 活动展示
  21. *
  22. * @return multitype:number unknown
  23. */
  24. public function handle()
  25. {
  26. $data = [
  27. 'admin' => [
  28. [
  29. //插件名称
  30. 'name' => 'lucky',
  31. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  32. 'show_type' => 'member',
  33. //展示主题
  34. 'title' => '刮刮卡',
  35. //展示介绍
  36. 'description' => '刮刮卡奖励',
  37. //展示图标
  38. 'icon' => 'public/static/img/lucky.png',
  39. //跳转链接
  40. 'url' => '',
  41. //是否开发中仅展示
  42. 'is_developing' => 1
  43. ],
  44. [
  45. //插件名称
  46. 'name' => 'draw',
  47. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  48. 'show_type' => 'member',
  49. //展示主题
  50. 'title' => '大转盘',
  51. //展示介绍
  52. 'description' => '大转盘奖励',
  53. //展示图标
  54. 'icon' => 'public/static/img/draw.png',
  55. //跳转链接
  56. 'url' => '',
  57. //是否开发中仅展示
  58. 'is_developing' => 1
  59. ],
  60. [
  61. //插件名称
  62. 'name' => 'crazyguess',
  63. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  64. 'show_type' => 'member',
  65. //展示主题
  66. 'title' => '疯狂猜',
  67. //展示介绍
  68. 'description' => '疯狂猜奖励',
  69. //展示图标
  70. 'icon' => 'public/static/img/crazyguess.png',
  71. //跳转链接
  72. 'url' => '',
  73. //是否开发中仅展示
  74. 'is_developing' => 1
  75. ],
  76. [
  77. //插件名称
  78. 'name' => 'coupon_code',
  79. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  80. 'show_type' => 'shop',
  81. //展示主题
  82. 'title' => '优惠码',
  83. //展示介绍
  84. 'description' => '向客户发放优惠码',
  85. //展示图标
  86. 'icon' => 'public/static/img/coupon_code.png',
  87. //跳转链接
  88. 'url' => '',
  89. //是否开发中仅展示
  90. 'is_developing' => 1
  91. ],
  92. [
  93. //插件名称
  94. 'name' => 'community_buy',
  95. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  96. 'show_type' => 'tool',
  97. //展示主题
  98. 'title' => '社区团购',
  99. //展示介绍
  100. 'description' => '社区团购营销',
  101. //展示图标
  102. 'icon' => 'public/static/img/community_buy.png',
  103. //跳转链接
  104. 'url' => '',
  105. //是否开发中仅展示
  106. 'is_developing' => 1
  107. ],
  108. [
  109. //插件名称
  110. 'name' => 'cashier',
  111. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  112. 'show_type' => 'tool',
  113. //展示主题
  114. 'title' => '扫码收款',
  115. //展示介绍
  116. 'description' => '扫码收款',
  117. //展示图标
  118. 'icon' => 'public/static/img/cashier.png',
  119. //跳转链接
  120. 'url' => '',
  121. //是否开发中仅展示
  122. 'is_developing' => 1
  123. ],
  124. [
  125. //插件名称
  126. 'name' => 'appointment',
  127. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  128. 'show_type' => 'tool',
  129. //展示主题
  130. 'title' => '店铺预约',
  131. //展示介绍
  132. 'description' => '店铺预约',
  133. //展示图标
  134. 'icon' => 'public/static/img/appointment.png',
  135. //跳转链接
  136. 'url' => '',
  137. //是否开发中仅展示
  138. 'is_developing' => 1
  139. ],
  140. [
  141. //插件名称
  142. 'name' => 'missioncenter',
  143. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  144. 'show_type' => 'tool',
  145. //展示主题
  146. 'title' => '任务管理',
  147. //展示介绍
  148. 'description' => '会员完成任务奖励',
  149. //展示图标
  150. 'icon' => 'public/static/img/missioncenter.png',
  151. //跳转链接
  152. 'url' => '',
  153. //是否开发中仅展示
  154. 'is_developing' => 1
  155. ],
  156. ],
  157. 'shop' => [
  158. [
  159. //插件名称
  160. 'name' => 'lucky',
  161. //店铺端展示分类 shop:营销活动 member:互动营销
  162. 'show_type' => 'member',
  163. //展示主题
  164. 'title' => '刮刮卡',
  165. //展示介绍
  166. 'description' => '刮刮卡奖励',
  167. //展示图标
  168. 'icon' => 'public/static/img/lucky.png',
  169. //跳转链接
  170. 'url' => '',
  171. //是否开发中仅展示
  172. 'is_developing' => 1
  173. ],
  174. [
  175. //插件名称
  176. 'name' => 'draw',
  177. //店铺端展示分类 shop:营销活动 member:互动营销
  178. 'show_type' => 'member',
  179. //展示主题
  180. 'title' => '大转盘',
  181. //展示介绍
  182. 'description' => '大转盘奖励',
  183. //展示图标
  184. 'icon' => 'public/static/img/draw.png',
  185. //跳转链接
  186. 'url' => '',
  187. //是否开发中仅展示
  188. 'is_developing' => 1
  189. ],
  190. [
  191. //插件名称
  192. 'name' => 'crazyguess',
  193. //店铺端展示分类 shop:营销活动 member:互动营销
  194. 'show_type' => 'member',
  195. //展示主题
  196. 'title' => '疯狂猜',
  197. //展示介绍
  198. 'description' => '疯狂猜',
  199. //展示图标
  200. 'icon' => 'public/static/img/crazyguess.png',
  201. //跳转链接
  202. 'url' => '',
  203. //是否开发中仅展示
  204. 'is_developing' => 1
  205. ],
  206. [
  207. //插件名称
  208. 'name' => 'coupon_code',
  209. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  210. 'show_type' => 'shop',
  211. //展示主题
  212. 'title' => '优惠码',
  213. //展示介绍
  214. 'description' => '向客户发放优惠码',
  215. //展示图标
  216. 'icon' => 'public/static/img/coupon_code.png',
  217. //跳转链接
  218. 'url' => '',
  219. //是否开发中仅展示
  220. 'is_developing' => 1
  221. ],
  222. [
  223. //插件名称
  224. 'name' => 'community_buy',
  225. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  226. 'show_type' => 'tool',
  227. //展示主题
  228. 'title' => '社区团购',
  229. //展示介绍
  230. 'description' => '社区团购营销',
  231. //展示图标
  232. 'icon' => 'public/static/img/community_buy.png',
  233. //跳转链接
  234. 'url' => '',
  235. //是否开发中仅展示
  236. 'is_developing' => 1
  237. ],
  238. [
  239. //插件名称
  240. 'name' => 'cashier',
  241. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  242. 'show_type' => 'tool',
  243. //展示主题
  244. 'title' => '扫码收款',
  245. //展示介绍
  246. 'description' => '扫码收款',
  247. //展示图标
  248. 'icon' => 'public/static/img/cashier.png',
  249. //跳转链接
  250. 'url' => '',
  251. //是否开发中仅展示
  252. 'is_developing' => 1
  253. ],
  254. [
  255. //插件名称
  256. 'name' => 'appointment',
  257. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  258. 'show_type' => 'tool',
  259. //展示主题
  260. 'title' => '店铺预约',
  261. //展示介绍
  262. 'description' => '店铺预约',
  263. //展示图标
  264. 'icon' => 'public/static/img/appointment.png',
  265. //跳转链接
  266. 'url' => '',
  267. //是否开发中仅展示
  268. 'is_developing' => 1
  269. ],
  270. [
  271. //插件名称
  272. 'name' => 'missioncenter',
  273. //展示分类(根据平台端设置,admin(平台营销),shop:店铺营销,member:会员营销, tool:应用工具)
  274. 'show_type' => 'tool',
  275. //展示主题
  276. 'title' => '任务管理',
  277. //展示介绍
  278. 'description' => '会员完成任务奖励',
  279. //展示图标
  280. 'icon' => 'public/static/img/missioncenter.png',
  281. //跳转链接
  282. 'url' => '',
  283. //是否开发中仅展示
  284. 'is_developing' => 1
  285. ],
  286. ]
  287. ];
  288. return $data;
  289. }
  290. }