tripartiteAuth.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // js
  2. // 监听页面滚动
  3. // var addEvent = (function () {
  4. // if (window.addEventListener) {
  5. // return function (elm, type, handle) {
  6. // elm.addEventListener(type, handle, false)
  7. // }
  8. // }
  9. // if (window.attachEvent) {
  10. // return function (elm, type, handle) {
  11. // elm.attachEvent('on' + type, handle)
  12. // }
  13. // }
  14. // })()
  15. // // app头部效果
  16. // var div = document.querySelector('.j-main')
  17. // addEvent(div, 'scroll', function () {
  18. // var scrollHeight = div.scrollHeight
  19. // var scrollTop = div.scrollTop
  20. // var height = div.offsetHeight
  21. // if (scrollTop >= 80) {
  22. // $('.jy-app-header').removeClass('header-transparent')
  23. // } else {
  24. // $('.jy-app-header').addClass('header-transparent')
  25. // }
  26. // })
  27. // vue
  28. var vmSol = new Vue({
  29. el: '#vueEl',
  30. // el: '#app',
  31. data: {
  32. header_show: false,
  33. isWeiXinBrowser: true,
  34. index: 0,
  35. images: ['/common-module/solution/image/viewImg.png'],
  36. // ISO img队列
  37. IsoImgspath: 'static/image/',
  38. // 图片展示
  39. sysAuth_dataMaps: [
  40. // ISO
  41. {
  42. bigtitle: '体系认证',
  43. subtitle: '品牌提升,投标加分,提升企业竞争力',
  44. imgspath: 'ISO_img/ISOimg',
  45. urlpathId: 'jy_ISObutt',
  46. ISO_imagesMaps: [
  47. {
  48. // IsoImgs: 'static/image/ISO_img/ISOimg',
  49. id: 1,
  50. authnum: 'ISO9001、GB/T50430',
  51. authname: '质量管理体系认证',
  52. },
  53. {
  54. id: 2,
  55. authnum: 'ISO14001',
  56. authname: '环境管理体系认证',
  57. },
  58. {
  59. id: 3,
  60. authnum: 'ISO45001',
  61. authname: '职业健康安全管理体系认证',
  62. },
  63. {
  64. id: 4,
  65. authnum: 'HACCP',
  66. authname: '危害分析和关键控制点',
  67. },
  68. {
  69. id: 5,
  70. authnum: 'ISO22000',
  71. authname: '食品安全管理体系认证',
  72. },
  73. {
  74. id: 6,
  75. authnum: 'ISO20000',
  76. authname: '信息技术服务管理体系认证',
  77. },
  78. {
  79. id: 7,
  80. authnum: 'ISO27000',
  81. authname: '信息安全管理体系认证',
  82. },
  83. {
  84. id: 8,
  85. authnum: '更多体系认证服务',
  86. authname: '更多认证点击了解详情',
  87. },
  88. ],
  89. },
  90. // 企业认证图片
  91. {
  92. bigtitle: '信用认证',
  93. subtitle: '企业信用名片,招投标必备',
  94. imgspath: 'nessauth_img/nessimg',
  95. urlpathId: 'jy_prossAuth',
  96. ISO_imagesMaps: [
  97. {
  98. // IsoImgs: 'static/image/ISO_img/ISOimg',
  99. id: 1,
  100. authnum: '',
  101. authname: '企业信用等级证书',
  102. },
  103. {
  104. id: 2,
  105. authnum: '',
  106. authname: '重合同守信用企业',
  107. },
  108. {
  109. id: 3,
  110. authnum: '',
  111. authname: '质量服务诚信单位',
  112. },
  113. {
  114. id: 4,
  115. authnum: '',
  116. authname: '重质量守信用单位 ',
  117. },
  118. {
  119. id: 5,
  120. authnum: '',
  121. authname: '重服务守信用单位',
  122. },
  123. {
  124. id: 6,
  125. authnum: '',
  126. authname: '诚信经营示范单位',
  127. },
  128. {
  129. id: 7,
  130. authnum: '',
  131. authname: '资信等级',
  132. },
  133. {
  134. id: 8,
  135. authnum: '',
  136. authname: '诚信企业家',
  137. },
  138. {
  139. id: 9,
  140. authnum: '',
  141. authname: '诚信供应商',
  142. },
  143. {
  144. id: 10,
  145. authnum: '',
  146. authname: '',
  147. },
  148. ],
  149. },
  150. ],
  151. // 服务认证文字展示
  152. servAuth_dataMaps: {
  153. bigtitle: '服务体系认证',
  154. subtitle: '实力认证,竞争有优势',
  155. auth_infoArr: [
  156. '五星售后服务认证',
  157. '十星售后服务成熟度认证',
  158. '五星品牌认证',
  159. '商品经营服务',
  160. '批发零售服务',
  161. '生活垃圾分类十星',
  162. '商业信誉等级',
  163. '合格供应商信用等级',
  164. '保安服务认证',
  165. '餐饮服务认证',
  166. '餐饮服务成熟度认证',
  167. '家具定制服务',
  168. '绿色家具定制服务',
  169. '餐饮配送',
  170. '餐饮企业现场管理评价',
  171. '安全生产标准化',
  172. '顾客满意度',
  173. '合同能源管理服务认证',
  174. '清洁服务认证',
  175. '生鲜农产品配送服务认证',
  176. '养老服务认证',
  177. '生鲜农产品供应商星级认证',
  178. '学校热水系统服务',
  179. '设备维护保养服务认证',
  180. '建筑工程服务认证',
  181. '节能技术服务认证',
  182. '物业服务认证',
  183. '履约能力评价服务认证',
  184. ],
  185. },
  186. qreobj: {
  187. phone: '1800000000',
  188. wxCodeImg: 'static/image/qrCodeimg.jpg',
  189. },
  190. },
  191. mounted() {
  192. this.getqrecode_dataFun()
  193. },
  194. // 生命周期阶段
  195. created: function () {
  196. // 再次判断 客户端归属
  197. // 判断是否是wx环境
  198. var isWeiXinBrowser =
  199. navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1
  200. this.isWeiXinBrowser = isWeiXinBrowser
  201. if (isWeiXinBrowser) {
  202. console.log('wx')
  203. this.header_show = true
  204. } else {
  205. this.header_show = false
  206. console.log('app or browse ==', this.header_show)
  207. }
  208. this.getqrecode_dataFun()
  209. },
  210. methods: {
  211. //app端调取拨打电话
  212. telphoneFun: function (phone) {
  213. if (this.isWeiXinBrowser) {
  214. window.location.href = `tel:${phone}`
  215. } else {
  216. // 捕捉错误,以防找不到原生对象
  217. try {
  218. console.log('手机app 拨打手机==', phone)
  219. JyObj.callPhone(phone)
  220. } catch (error) {
  221. console.log('no bowser,or no tel ===', error)
  222. window.location.href = `tel:${phone}`
  223. }
  224. }
  225. },
  226. // 跳转了解详情
  227. href_more: function (urlType, urlpathId) {
  228. var apporwx = this.isWeiXinBrowser ? 'wx' : 'app'
  229. // window.location.href = `https://wx.jianyu360.cn/weixin/frontPage/bigmember/free/perfect_info_solution?source=certificateServices-${apporwx}-landingPage-${urlpathId}`
  230. // 立即成为 合作商
  231. if (urlType === 'go_nowcooper') {
  232. window.location.href =
  233. `${
  234. this.isWeiXinBrowser ? '/weixin/frontPage' : '/jyapp/frontPage'
  235. }/bigmember/free/perfect_info_partner?source=channelPartner&header=` +
  236. encodeURIComponent('渠道合伙人招募计划限时启动')
  237. } else {
  238. window.location.href = `${
  239. this.isWeiXinBrowser ? '/weixin/frontPage' : '/jyapp/frontPage'
  240. }/bigmember/free/perfect_info?source=certificateServices-${apporwx}-landingPage-${urlpathId}`
  241. }
  242. },
  243. // 咨询客服
  244. gocustomer: function (urlpath) {
  245. window.location.href = this.isWeiXinBrowser
  246. ? '/big/wx/page/customer'
  247. : '/jyapp/free/customer'
  248. }, // 获取二维码
  249. getqrecode_dataFun: function (urlpath) {
  250. var vue_that = this
  251. $.ajax({
  252. type: 'get',
  253. data: { module: 'tripartiteAuth' },
  254. dataType: 'json',
  255. url: '/commercial/customer/info',
  256. success: function (res) {
  257. if (res) {
  258. console.log('二维码res=====', res)
  259. vue_that.qreobj.wxCodeImg = res.data.wxCodeImg
  260. vue_that.qreobj.phone = res.data.phone
  261. }
  262. },
  263. error: function (error) {
  264. console.log(error)
  265. },
  266. })
  267. },
  268. },
  269. })