Commit 5bcf8b3e by 胡悦

提交

1 parent 3b60d7cd
......@@ -40,17 +40,17 @@ Component({
addPhone() {
let _this = this,
{ clickCount } = this.data;
const { staffName, phoneNumber, operation, address, agentName } =
const { staffName, staffPhone, operation, address, agentName } =
this.data.cardInfo;
wx.addPhoneContact({
firstName: staffName,
mobilePhoneNumber: phoneNumber,
mobilePhoneNumber: staffPhone,
title: operation,
organization: agentName,
organization: '广联数科',
workAddressCountry: "中国",
workAddressState: "广东省",
workAddressCity: "深圳市",
workAddressStreet: address,
workAddressStreet: "留仙大道3370号南山智园崇文园区1号楼14层",
fail({ errMsg }) {
if (clickCount)
_this.setData({
......
......@@ -4,15 +4,15 @@
<block wx:if="{{!showWechant}}">
<view class="user-company">
<image class="company-logo" src="{{IMGURL}}home/logo.png"></image>
<text>汽车流通行业数字化运营服务商</text>
<!-- <text>汽车流通行业数字化运营服务商</text> -->
</view>
<view class="user-name">
<view class="name">{{cardInfo.staffName}}</view>
<view class="position">{{cardInfo.operation}}</view>
<view class="name">{{cardInfo.staffName || ''}}</view>
<view class="position">{{cardInfo.operation || ''}}</view>
</view>
<view class="user-phone">
<image class="user-icon" webp src="{{IMGURL}}home/icon-phone.png"></image>
<view>{{cardInfo.agentPhone}}</view>
<view>{{cardInfo.staffPhone || ''}}</view>
</view>
<view class="user-address">
<image class="user-icon" webp src="{{IMGURL}}home/icon-address.png"></image>
......@@ -22,7 +22,7 @@
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}home/add-wechat.png"></image>
</block>
<view class="scrm" wx:else>
<image class="srcm-img" webp src="{{cardInfo.wechatCode}}" lazy-load></image>
<image class="srcm-img" show-menu-by-longpress src="{{cardInfo.qrCode}}" lazy-load></image>
<view class="scrm-text">长按识别二维码,免费体验嘀加SCRM</view>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}home/back-user.png"></image>
</view>
......
......@@ -30,8 +30,8 @@
align-items: center;
}
.company-logo{
width: 112rpx;
height: 24rpx;
width: 296rpx;
height: 60rpx;
}
.user-company text {
font-size: 18rpx;
......
......@@ -12,7 +12,7 @@ module.exports = Behavior({
const curIntroduceIndex = e.currentTarget.dataset.index;
switch(curIntroduceIndex) {
case 3:
wx.$router.go('addTransform');
wx.$router.go('addTransform', {notIntercept: true});
break
default:
this.setData({
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-08-30 11:26:21
* @LastEditors: huyue
* @LastEditTime: 2022-09-02 13:48:49
* @LastEditTime: 2022-09-08 17:10:17
*/
// pages/tab/index/index.js
import { menuMixin } from "../../../mixins/index";
......@@ -115,8 +115,9 @@ Page({
*/
onShow() {
this.setShareInfo();
console.log(wx.$util.getUserInfo());
wx.$Track.sendTrack(this.data.curTab[this.data.curTabIndex]);
if (wx.$trackData.merchant) {
wx.$Track.sendTrack(this.data.curTab[this.data.curTabIndex])
}
},
/**
......@@ -179,8 +180,10 @@ Page({
width: 152,
height: 10,
},
// 头像的
{
url: "https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg",
// url: "https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg",
url: '',
x: 154,
y: 36,
width: 36,
......@@ -303,13 +306,12 @@ Page({
getCardDetail() {
const sessionId = util.getSessionId();
let params = {};
params.cardId = 21;
params.sessionId = sessionId;
params.cardId = wx.$trackData.cardId
console.log(params, "+++");
entmicroApi.getCardDetail(params).then((res) => {
console.log(res);
if (res.data) {
}
entmicroApi.getCardDetail(params).then(({data}) => {
this.setData({
cardInfo: data
})
});
},
});
......@@ -126,7 +126,9 @@ class TRACK {
sendTrack(p) {
console.log(wx.$trackData)
let params = {
method: 'entmicro.api.business.card.cardRecord'
method: 'entmicro.api.business.card.cardRecord',
cardId: wx.$trackData.cardId,
merchant: wx.$trackData.merchant
}
const userInfo = {
nickName: '萌萌哒西瓜',
......@@ -137,10 +139,10 @@ class TRACK {
// merchant: '12121',
// cardId: '1'
}
if (!wx.$trackData.merchant) {
}
params = Object.assign(params, userInfo, p, wx.$trackData)
// if (!wx.$trackData.merchant) {
// params.merchant = wx.$trackData.merchant
// }
params = Object.assign(params, userInfo, p)
console.log(params)
api.reportTrack(params).then(({
code,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!