Commit f5b931f1 by 胡悦

修复bug

1 parent 874c9a65
......@@ -7,7 +7,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布
4生产
*/
const index = 2;
const index = 4;
const secretKey = {
ip: {},
dev: {
......
......@@ -124,7 +124,7 @@ class Request {
}
getMock() {
let url = 'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config'
if (index == 3 || index == 4) url = 'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
if (index == 4) url = 'https://oss-config.test.glsx.com.cn/mock/6274e3050da5034a58680aa6/aicard-config'
return new Promise((resolve) => {
wx.request({
url,
......
......@@ -77,7 +77,7 @@ App({
})
})
} else if (wx.$trackData.shareType) {
} else {
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
const shareType = wx.$trackData.shareType
_this.getUserInfo(openId, returnResponse).then(result => {
......@@ -91,16 +91,12 @@ App({
wx.$storage.set('scene', wx.$trackData)
break
default:
wx.$storage.set('scene', wx.$trackData)
if (wx.$trackData.cardId) {
wx.$storage.set('scene', wx.$trackData)
}
}
resolve(result)
})
} else {
_this.getUserInfo(openId, returnResponse).then(result => {
wx.$storage.set('scene', wx.$trackData)
resolve(result)
})
}
// ssoApi
// .getUserInfo({
......
......@@ -3,34 +3,34 @@
<view class="user-info" data-item="{{cardInfo}}">
<block wx:if="{{!showWechant}}">
<view class="user-company">
<image class="company-logo" webp src="{{IMGURL}}home/logo.png"></image>
<image class="company-logo" webp src="{{IMGURL}}home/logo.png?v={{img_version}}"></image>
</view>
<view class="user-name">
<view class="name">{{cardInfo.staffName || ''}}</view>
<view class="position">{{cardInfo.operation || ''}}</view>
</view>
<view class="user-phone">
<image class="user-icon" webp src="{{IMGURL}}share/icon-phone.png"></image>
<image class="user-icon" webp src="{{IMGURL}}share/icon-phone.png?v={{img_version}}"></image>
<view>{{cardInfo.staffPhone || ''}}</view>
</view>
<view class="user-address">
<image class="user-icon" webp src="{{IMGURL}}share/icon-address.png"></image>
<image class="user-icon" webp src="{{IMGURL}}share/icon-address.png?v={{img_version}}"></image>
<view class="address">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
</view>
<image class="user-avatar" src="{{cardInfo.image}}" lazy-load></image>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}home/add-wechat.png"></image>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}home/add-wechat.png?v={{img_version}}"></image>
</block>
<view class="scrm" wx:else>
<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>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}home/back-user.png?v={{img_version}}"></image>
</view>
</view>
<image class="user-bg" webp src="{{IMGURL}}home/user-bg.png" />
<image class="user-bg" webp src="{{IMGURL}}home/user-bg.png?v={{img_version}}" />
</view>
<view class="btn-group">
<view class="phone-btn" bindtap="callPhone">
<image class="icon-dial" webp src="{{IMGURL}}home/icon-dial.png"></image>
<image class="icon-dial" webp src="{{IMGURL}}home/icon-dial.png?v={{img_version}}"></image>
<view class="phone-text">拨打电话</view>
</view>
<button class="btn-plain btn" bindtap="addPhone">保存名片</button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!