Commit f5b931f1 by 胡悦

修复bug

1 parent 874c9a65
...@@ -7,7 +7,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"]; ...@@ -7,7 +7,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布 3预发布
4生产 4生产
*/ */
const index = 2; const index = 4;
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
...@@ -124,7 +124,7 @@ class Request { ...@@ -124,7 +124,7 @@ class Request {
} }
getMock() { getMock() {
let url = 'https://oss-config.dev.glsx.com.cn/mock/6264ff4760f415276f6dfe62/aicard-config' 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) => { return new Promise((resolve) => {
wx.request({ wx.request({
url, url,
......
...@@ -77,7 +77,7 @@ App({ ...@@ -77,7 +77,7 @@ App({
}) })
}) })
} else if (wx.$trackData.shareType) { } else {
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值 // 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
const shareType = wx.$trackData.shareType const shareType = wx.$trackData.shareType
_this.getUserInfo(openId, returnResponse).then(result => { _this.getUserInfo(openId, returnResponse).then(result => {
...@@ -91,14 +91,10 @@ App({ ...@@ -91,14 +91,10 @@ App({
wx.$storage.set('scene', wx.$trackData) wx.$storage.set('scene', wx.$trackData)
break break
default: default:
if (wx.$trackData.cardId) {
wx.$storage.set('scene', wx.$trackData) wx.$storage.set('scene', wx.$trackData)
} }
resolve(result) }
})
} else {
_this.getUserInfo(openId, returnResponse).then(result => {
wx.$storage.set('scene', wx.$trackData)
resolve(result) resolve(result)
}) })
} }
......
...@@ -3,34 +3,34 @@ ...@@ -3,34 +3,34 @@
<view class="user-info" data-item="{{cardInfo}}"> <view class="user-info" data-item="{{cardInfo}}">
<block wx:if="{{!showWechant}}"> <block wx:if="{{!showWechant}}">
<view class="user-company"> <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>
<view class="user-name"> <view class="user-name">
<view class="name">{{cardInfo.staffName || ''}}</view> <view class="name">{{cardInfo.staffName || ''}}</view>
<view class="position">{{cardInfo.operation || ''}}</view> <view class="position">{{cardInfo.operation || ''}}</view>
</view> </view>
<view class="user-phone"> <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>{{cardInfo.staffPhone || ''}}</view>
</view> </view>
<view class="user-address"> <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 class="address">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
</view> </view>
<image class="user-avatar" src="{{cardInfo.image}}" lazy-load></image> <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> </block>
<view class="scrm" wx:else> <view class="scrm" wx:else>
<image class="srcm-img" show-menu-by-longpress src="{{cardInfo.qrCode}}" lazy-load></image> <image class="srcm-img" show-menu-by-longpress src="{{cardInfo.qrCode}}" lazy-load></image>
<view class="scrm-text">长按识别二维码,免费体验嘀加SCRM</view> <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>
</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>
<view class="btn-group"> <view class="btn-group">
<view class="phone-btn" bindtap="callPhone"> <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 class="phone-text">拨打电话</view>
</view> </view>
<button class="btn-plain btn" bindtap="addPhone">保存名片</button> <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!