componentProperties.js 11 KB

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