componentProperties.js 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. const componentProperties = new Map()
  2. // 数据版本 每次修改组件数据 需要对版本进行修改
  3. // componentProperties.set('componentPropertiesVersion', 'V1.0.0')
  4. componentProperties.set('captiontext', {
  5. component: 'captiontext',
  6. text: '标题文字',
  7. type: '1-3',
  8. active: true,
  9. style: 'captiontextsstyle',
  10. setStyle: {
  11. text: '标题文字',
  12. name: '标题文字',//标题内容
  13. description: '',//描述内容
  14. wordSize: 16,//标题大小
  15. descriptionSize: 12,//描述大小
  16. wordWeight: 400,//标题粗细
  17. positions: 'left', //显示位置 可选left/center
  18. descriptionWeight: 200,//描述粗细
  19. wordColor: 'rgba(50, 50, 51, 10)',//标题颜色
  20. descriptionColor: 'rgba(150, 151, 153, 10)',//描述颜色
  21. backColor: 'rgba(255, 255, 255, 10)', //背景颜色
  22. borderBott: false, //底部分割线
  23. wordHeight: 24,//框体高度
  24. more: { //查看更多
  25. show: false,//是否显示查看更多
  26. type: 1, // 样式选择
  27. text: '查看更多', //自定义文字
  28. httpType: 10,//链接类型
  29. http: '',//链接
  30. },
  31. },
  32. })
  33. componentProperties.set('listswitching', {
  34. component: 'listswitching',
  35. text: '商品',
  36. type: '2-1',
  37. active: true,
  38. style: 'listswitchingstyle',
  39. setStyle: {
  40. text: '商品',
  41. commodityType: 0,
  42. moditystyle: 0,
  43. borderRadius: 0,
  44. pageMargin: 15,
  45. commodityMargin: 10,
  46. textWeight: 400,
  47. positions: 'left',
  48. priceofcommodity: true,
  49. purchasebutton: true,
  50. commoditycorner: true,
  51. purchasebuttonType: 0,
  52. commoditycornertype: 0,
  53. commodityTagColor: '#07c160',
  54. tagPosition: 0,
  55. imageList: [],
  56. purchase: '马上抢',
  57. commoditylisttype: 0,
  58. commoditylisttypetab: [
  59. {
  60. text: '分组',
  61. imageList: [],
  62. },
  63. {
  64. text: '分组',
  65. imageList: [],
  66. },
  67. ],
  68. tabColor: '#f39800',
  69. showMore: false,
  70. moreUrl: null,
  71. bgImg: '',
  72. },
  73. })
  74. componentProperties.set('pictureads', {
  75. component: 'pictureads',
  76. text: '图片广告',
  77. type: '1-3',
  78. active: true,
  79. style: 'pictureadsstyle',
  80. setStyle: {
  81. text: '图片广告',
  82. swiperType: 0, // 选择模板
  83. borderRadius: 0,// 图片倒角
  84. pageMargin: 0, // 页面边距
  85. imageMargin: 0, // 图片边距
  86. pagingType: 0, // 分页类型: 0/"bullets"/"fraction"/"progressbar"
  87. rowindividual: 2,// 一行个数
  88. imageList: [], // 添加图片
  89. },
  90. })
  91. componentProperties.set('graphicnavigation', {
  92. component: 'graphicnavigation',
  93. text: '图文导航',
  94. type: '1-4',
  95. active: true,
  96. style: 'graphicnavigationstyle',
  97. setStyle: {
  98. text: '图文导航',
  99. imageList: [], // 图片导航列表
  100. navigationType: 0, //图片导航类型
  101. imgStyle: 0, //图片样式
  102. backgroundColor: 'rgb(255, 255, 255)', //背景颜色
  103. textColor: 'rgb(0, 0, 0)', //文字颜色
  104. borderRadius: 0, //图片倒角
  105. showSize: 5, //一屏显示个数
  106. textHeight: 24, // 字体高度
  107. textSize: 12, // 字体大小
  108. bgImg: '',
  109. },
  110. })
  111. componentProperties.set('richtext', {
  112. component: 'richtext',
  113. text: '富文本',
  114. type: '1-10',
  115. active: true,
  116. style: 'richtextstyle',
  117. setStyle: {
  118. text: '富文本',
  119. myValue: '', //富文本内容
  120. backColor: 'rgb(249, 249, 249)', //背景颜色
  121. },
  122. })
  123. componentProperties.set('magiccube', {
  124. component: 'magiccube',
  125. text: '魔方',
  126. type: '1-6',
  127. active: true,
  128. style: 'magiccubestyle',
  129. setStyle: {
  130. text: '魔方',
  131. rubiksCubeType: 0, // 魔方类型
  132. pageMargin: 0, //页面间距
  133. imgMargin: 0, //图片间隙
  134. imageList: [
  135. {
  136. src: '',
  137. linktype: '10',
  138. http: {},
  139. },
  140. {
  141. src: '',
  142. linktype: '10',
  143. http: {},
  144. },
  145. {
  146. src: '',
  147. linktype: '10',
  148. http: {},
  149. },
  150. {
  151. src: '',
  152. linktype: '10',
  153. http: {},
  154. },
  155. {
  156. src: '',
  157. linktype: '10',
  158. http: {},
  159. },
  160. ], //图片列表
  161. },
  162. })
  163. componentProperties.set('auxiliarysegmentation', {
  164. component: 'auxiliarysegmentation',
  165. text: '辅助分割',
  166. type: '1-11',
  167. active: true,
  168. style: 'auxiliarysegmentationstyle',
  169. setStyle: {
  170. text: '辅助分割',
  171. blankHeight: 30, //空白高度
  172. segmentationtype: 0, //分割类型
  173. paddType: 0, //边距
  174. auxliarColor: 'rgb(229, 229, 229)', //辅助线颜色
  175. bordertp: 'solid', //线的类型
  176. },
  177. })
  178. componentProperties.set('commoditysearch', {
  179. component: 'commoditysearch',
  180. text: '商品搜索',
  181. type: '1-1',
  182. active: true,
  183. style: 'commoditysearchstyle',
  184. setStyle: {
  185. text: '商品搜索',
  186. heights: 28, //搜索栏高度
  187. position: 0, //显示位置
  188. sweep: false, // 显示扫一扫
  189. borderRadius: 0, //框体样式
  190. textPosition: 0, //文本位置
  191. backgroundColor: 'rgb(249, 249, 249)', //背景颜色
  192. borderColor: 'rgb(255, 255, 255)', //框体颜色
  193. textColor: 'rgb(150, 151, 153)', //字体颜色
  194. hotords: [], //热词
  195. },
  196. })
  197. componentProperties.set('storeinformation', {
  198. component: 'storeinformation',
  199. text: '店铺信息',
  200. type: '1-12',
  201. active: true,
  202. style: 'storeinformationstyle',
  203. setStyle: {
  204. text: '店铺信息',
  205. bakcgroundImg: '', //背景图片
  206. headPortrait: '', //店铺头像
  207. rubiksCubeType: 0, //类型
  208. name: '店铺名称', //店铺名称
  209. Discount: '在线支付满150减30,满100减20', //优惠信息
  210. },
  211. })
  212. componentProperties.set('entertheshop', {
  213. component: 'entertheshop',
  214. text: '单元格',
  215. type: '1-13',
  216. active: true,
  217. style: 'entertheshopstyle',
  218. setStyle: {
  219. text: '单元格',
  220. icon: '', // 左侧图标
  221. shopName: '左侧标题',
  222. copywriting: '右侧内容',
  223. type: '10',
  224. http: {},
  225. },
  226. })
  227. componentProperties.set('notice', {
  228. component: 'notice',
  229. text: '公告',
  230. type: '1-7',
  231. active: true,
  232. style: 'noticestyle',
  233. setStyle: {
  234. text: '公告',
  235. noticeText: '请填写内容,如果过长,将会在手机上滚动显示', //内容
  236. backColor: 'rgb(255, 248, 233)', //背景颜色
  237. textColor: 'rgba(100, 101, 102)', //文字颜色
  238. },
  239. })
  240. componentProperties.set('videoss', {
  241. component: 'videoss',
  242. text: '视频',
  243. type: '1-8',
  244. active: true,
  245. style: 'videostyle',
  246. setStyle: {
  247. text: '视频',
  248. src: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4', // 视频地址
  249. coverUrl:null, // 封面地址
  250. autoplay: false, // 是否自动播放
  251. },
  252. })
  253. componentProperties.set('custommodule', {
  254. component: 'custommodule',
  255. text: '自定义模块',
  256. type: 'demo',
  257. active: true,
  258. style: 'custommodulestyle',
  259. setStyle: {
  260. text: '自定义模块',
  261. demo:'自定义内容',
  262. img:'https://img2.baidu.com/it/u=1905875968,4289754134&fm=26&fmt=auto&gp=0.jpg'
  263. },
  264. })
  265. componentProperties.set('communitypowder', {
  266. component: 'communitypowder',
  267. text: '社群涨粉',
  268. type: '1-14',
  269. active: true,
  270. style: 'communitypowderstyle',
  271. setStyle: {
  272. text: '社群涨粉',
  273. mainImg: '', //入口图片
  274. qrcodeImg: '', //二维码
  275. title: '标题', //标题
  276. describe: '辅助描述', //描述
  277. buttonName: '立即添加', //按钮名称
  278. backColor: 'rgb(255, 255, 255)', //背景颜色
  279. },
  280. })
  281. componentProperties.set('storenotecard', {
  282. component: 'storenotecard',
  283. text: '文章模块',
  284. type: '2-2',
  285. active: true,
  286. style: 'storenotecardstyle',
  287. setStyle: {
  288. text: '文章模块',
  289. name: '这里显示专题名称', //专题名称
  290. commodityType: 0, // 选择模板
  291. moditystyle: 0, // 卡片样式选择
  292. borderRadius: 0, // 图片边角
  293. textWeight: 400, // 标题粗细
  294. noteLabels: true, // 笔记标签
  295. readingNumber: true, // 阅读数
  296. praisePoints: true, //点赞数
  297. viewMore1: true, //更多1
  298. viewMore2: true, //更多2
  299. imageList: [],
  300. positions: 'bottom', //标题位置
  301. linktype: '10',
  302. http: {},
  303. },
  304. })
  305. componentProperties.set('crowdoperation', {
  306. component: 'crowdoperation',
  307. text: '人群运营',
  308. type: '1-17',
  309. active: true,
  310. style: 'crowdoperationstyle',
  311. setStyle: {
  312. text: '人群运营',
  313. },
  314. })
  315. componentProperties.set('personalizedrecommendation', {
  316. component: 'personalizedrecommendation',
  317. text: '个性化推荐',
  318. type: '1-18',
  319. active: true,
  320. style: 'personalizedrecommendationstyle',
  321. setStyle: {
  322. text: '个性化推荐',
  323. },
  324. })
  325. componentProperties.set('onlineservice', {
  326. component: 'onlineservice',
  327. text: '在线客服',
  328. type: '1-19',
  329. active: true,
  330. style: 'onlineservicestyle',
  331. setStyle: {
  332. text: '在线客服',
  333. },
  334. })
  335. componentProperties.set('investigate', {
  336. component: 'investigate',
  337. text: '表单模块',
  338. type: '2-3',
  339. active: true,
  340. style: 'investigatestyle',
  341. setStyle: {
  342. text: '表单模块',
  343. title: '表单模块',
  344. jsonData: [], //value1为sass显示内容,value2为前端显示内容
  345. },
  346. })
  347. componentProperties.set('tabBar', {
  348. component: 'tabBar',
  349. text: '底部导航',
  350. type: '1-5',
  351. active: true,
  352. style: 'tabBarStyle',
  353. setStyle: {
  354. text: '底部导航',
  355. activeColor: '#1989fa',
  356. inactiveColor: '#7d7e80',
  357. isShowBorder: true,
  358. iconWidth: '25',
  359. iconHeight: '25',
  360. fontSize: '14',
  361. Highlight: 0,
  362. iconList: [],
  363. },
  364. })
  365. componentProperties.set('follow', {
  366. component: 'follow',
  367. text: '关注公众号',
  368. type: '1-15',
  369. active: true,
  370. style: 'followStyle',
  371. setStyle: {
  372. text: '关注公众号',
  373. heade: 'https://imgs.starfirelink.com/miniShop//logo_1618466110849.png',
  374. followName: '公众号名称',
  375. followAppId: '',
  376. },
  377. })
  378. componentProperties.set('suspension', {
  379. component: 'suspension',
  380. text: '悬浮按钮',
  381. type: '1-16',
  382. active: true,
  383. style: 'suspensionstyle',
  384. setStyle: {
  385. text: '悬浮按钮',
  386. linktype: '10',
  387. http: {},
  388. },
  389. })
  390. export default componentProperties