config.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. const accountInfo = wx.getAccountInfoSync();
  2. const env = accountInfo.miniProgram.envVersion;
  3. const URLMap = {
  4. develop: 'https://api-qa.bbztx.com/', //开发版
  5. trial: 'https://wap.bbztx.com/', //体验版
  6. release: 'https://api.bbztx.com/', //正式版
  7. qa: 'https://api-qa.bbztx.com/'
  8. }
  9. // URLMap[env] https://api-qa.bbztx.com/
  10. console.log(accountInfo, URLMap, URLMap[env])
  11. module.exports = {
  12. version:"1.25.0",
  13. // apiServer:'http://192.168.0.179:8081/bbztx/',//夏目
  14. apiServer: URLMap[env],//api,wap "http://192.168.0.29:8081/bbztx/"
  15. imgPath: 'https://img.bbztx.com/' + (URLMap[env] == 'https://api.bbztx.com/' ? 'images' : 'image_test') + '/covor_image/',
  16. ossImgPath: "https://img.bbztx.com/",
  17. imgUrl: "https://m.bbztx.com",//服务器图片https://test.bbztx.com;https://m.bbztx.com
  18. appId: "wx1e4186c018191840",//正式wxe9bc31763c55724d 测试wx2be0591b14e8883a
  19. // "appid": "wxe9bc31763c55724d",
  20. invitePrice: parseFloat(160),
  21. duration: 5,
  22. npsNum: 3,
  23. channelInfo: {
  24. channel: 0,
  25. channelTimes: 0
  26. },
  27. invitePopupTime: true, //约伴邀请弹窗显示一次
  28. cardTypeArr: ["内地身份证号", "护照号", "军官证号", "港澳通行证号", "台胞证号", "其他证号"],
  29. medal: [{
  30. 'name': '宝贝勋章',
  31. 'img': '/img/x1.png'
  32. }, {
  33. 'name': '勇士勋章',
  34. 'img': '/img/x2.png'
  35. }, {
  36. 'name': '英雄勋章',
  37. 'img': '/img/x3.png'
  38. }, {
  39. 'name': '骑士勋章',
  40. 'img': '/img/x4.png'
  41. }, {
  42. 'name': '王者勋章',
  43. 'img': '/img/x5.png'
  44. }, {
  45. 'name': '彩虹勋章·赤',
  46. 'img': '/img/x6.png'
  47. }, {
  48. 'name': '彩虹勋章·橙',
  49. 'img': '/img/x7.png'
  50. }, {
  51. 'name': '彩虹勋章·黄',
  52. 'img': '/img/x8.png'
  53. }, {
  54. 'name': '彩虹勋章·绿',
  55. 'img': '/img/x9.png'
  56. }, {
  57. 'name': '彩虹勋章·青',
  58. 'img': '/img/x10.png'
  59. }, {
  60. 'name': '彩虹勋章·蓝',
  61. 'img': '/img/x11.png'
  62. }, {
  63. 'name': '彩虹勋章·紫',
  64. 'img': '/img/x12.png'
  65. }],
  66. countrys: {
  67. "英国": "britain",
  68. "新加坡": "singapore",
  69. "日本": "japan",
  70. "泰国": "thailand"
  71. },
  72. provinces: {
  73. "内蒙古": "neimenggu",
  74. "北京": "beijing",
  75. "上海": "shanghai",
  76. "浙江": "zhejiang",
  77. "广东": "guangdong",
  78. "天津": "tianjin",
  79. "江苏": "jiangsu",
  80. "陕西": "shanxi",
  81. "山东": "sandong",
  82. "河南": "henan",
  83. "湖北": "hubei",
  84. "湖南": "hunan",
  85. "福建": "fujian",
  86. "安徽": "anhui",
  87. "四川": "sichuan",
  88. "广西": "guangxi",
  89. "海南": "hainan",
  90. "云南": "yunnan",
  91. "辽宁": "liaoning"
  92. },
  93. userRole: [{
  94. startPoint: 0,
  95. endPoint: 499,
  96. "levelName": "普通",
  97. "level": 0
  98. }, {
  99. startPoint: 500,
  100. endPoint: 999,
  101. "levelName": "青铜",
  102. "level": 1,
  103. days: 9.8,
  104. mini: 9.8
  105. }, {
  106. startPoint: 1000,
  107. endPoint: 2999,
  108. "levelName": "白银",
  109. "level": 2,
  110. time: 2,
  111. days: 9.6,
  112. mini: 9.7,
  113. camp: 9.9
  114. }, {
  115. startPoint: 3000,
  116. endPoint: 4999,
  117. "levelName": "黄金",
  118. "level": 3,
  119. time: 5,
  120. days: 9.2,
  121. mini: 9.6,
  122. camp: 9.8
  123. }, {
  124. startPoint: 5000,
  125. endPoint: 9999,
  126. "levelName": "铂金",
  127. "level": 4,
  128. time: 10,
  129. days: 9,
  130. mini: 9.5,
  131. camp: 9.7
  132. }, {
  133. startPoint: 10000,
  134. endPoint: 29999,
  135. "levelName": "钻石",
  136. "level": 5,
  137. time: 15,
  138. days: 8.8,
  139. mini: 9.2,
  140. camp: 9.6
  141. }, {
  142. startPoint: 30000,
  143. "levelName": "星耀",
  144. "level": 6,
  145. time: 20,
  146. days: 8,
  147. mini: 9,
  148. camp: 9.5
  149. }],
  150. coin_level: [{
  151. level: 1,
  152. levelName: '普通',
  153. next_level: '白银',
  154. min_num: 0,
  155. max_num: 500,
  156. bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478678081324.png'
  157. },
  158. {
  159. level: 2,
  160. levelName: '白银',
  161. next_level: '黄金',
  162. min_num: 500,
  163. max_num: 3000,
  164. bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478675014263.png',
  165. time: 5
  166. },
  167. {
  168. level: 3,
  169. levelName: '黄金',
  170. next_level: '一钻',
  171. min_num: 3000,
  172. max_num: 8000,
  173. bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478672013220.png',
  174. time: 10
  175. },
  176. {
  177. level: 4,
  178. levelName: '一钻',
  179. next_level: '二钻',
  180. min_num: 8000,
  181. max_num: 15000,
  182. bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478666081396.png',
  183. time: 15
  184. },
  185. {
  186. level: 5,
  187. levelName: '二钻',
  188. next_level: '三钻',
  189. min_num: 15000,
  190. max_num: 30000,
  191. bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478660056372.png',
  192. time: 20
  193. },
  194. {
  195. level: 6,
  196. levelName: '三钻',
  197. next_level: '',
  198. min_num: 30000,
  199. max_num: 1000000,
  200. bg_url: 'https://img.bbztx.com/image_test/upload/thumbs/20220426/logo/1650966478669045931.png',
  201. },
  202. ],
  203. }