1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- // 统计Ross 用户
- import Vue from 'vue'
- const cmSrsMixins = {
- data() {
- return {
- handleProsId: 0,
- handleShopId: 0,
- handleProsKey: '',
- handleShopKey: '',
- productIds: [7247, 7248], //Ross 商品ID集合
- shopIds: [1378], // Ross 供应商Id
- keyWords: ['Binary Premium', '智能体疗管理系统', '448k', '肌肉重塑疗法', '西班牙ROSS', 'ROSS', '智能体疗', '西班牙Ross', 'Ross',
- '西班牙ross', 'ross',
- ], // Ross 搜索商品关键词 集合
- shopKeyWords: ['深圳艾斯佰丽生物科技有限公司', '艾斯佰丽'],
- showRossHtml: false,
- isDisabled: true
- }
- },
- methods: {
- checkedIsRossSet() {
- if (this.productIds.includes(this.handleProsId * 1) ||
- this.shopIds.includes(this.handleShopId * 1) ||
- this.keyWords.includes(this.handleProsKey) ||
- this.shopKeyWords.includes(this.handleShopKey)
- ) {
- uni.setStorageSync('behaviorType', 2)
- if (!this.hasLogin) {
- this.userInformationIsClick()
- }
- }
- },
- userInformationIsClick() {
- // 查看用户是否有过弹框游客当天是否有过弹框
- this.UserService.userInformationIsClick()
- .then(response => {
- if (response.data) {
- setTimeout(() => {
- this.showRossHtml = true
- }, 5000)
- }
- })
- .catch(error => {
- console.log('查询失败~')
- })
- }
- }
- }
- export default cmSrsMixins
|