cmSrsMixins.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // 统计Ross 用户
  2. import Vue from 'vue'
  3. const cmSrsMixins = {
  4. data() {
  5. return {
  6. handleProsId: 0,
  7. handleShopId: 0,
  8. handleProsKey: '',
  9. handleShopKey: '',
  10. productIds:[7247,7248],//Ross 商品ID集合
  11. shopIds:[1378],// Ross 供应商Id
  12. keyWords: ['Binary Premium', '智能体疗管理系统', '448k', '肌肉重塑疗法', '西班牙ROSS', 'ROSS','智能体疗'], // Ross 搜索商品关键词 集合
  13. shopKeyWords: ['深圳艾斯佰丽生物科技有限公司', '艾斯佰丽'],
  14. showRossHtml: false,
  15. isDisabled: true
  16. }
  17. },
  18. methods: {
  19. checkedIsRossSet() {
  20. if (this.productIds.includes(this.handleProsId * 1) ||
  21. this.shopIds.includes(this.handleShopId * 1) ||
  22. this.keyWords.includes(this.handleProsKey) ||
  23. this.shopKeyWords.includes(this.handleShopKey)
  24. ) {
  25. uni.setStorageSync('behaviorType', 2)
  26. if (!this.hasLogin) {
  27. this.userInformationIsClick()
  28. }
  29. }
  30. },
  31. userInformationIsClick() {
  32. // 查看用户是否有过弹框游客当天是否有过弹框
  33. this.UserService.userInformationIsClick()
  34. .then(response => {
  35. if(response.data){
  36. setTimeout(()=>{
  37. this.showRossHtml = true
  38. },5000)
  39. }
  40. })
  41. .catch(error => {
  42. console.log('查询失败~')
  43. })
  44. }
  45. }
  46. }
  47. export default cmSrsMixins