Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f9877dbe
authored
Nov 30, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.10.7.1_fix' into 'master'
V2.10.7.1 fix See merge request
!12
2 parents
7f4d881b
f5b931f1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
16 deletions
api/environment.js
api/request.js
app.js
components/UserInfo/UserInfo.wxml
pages/tab/index/index.js
project.config.json
project.private.config.json
api/environment.js
View file @
f9877db
...
@@ -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
=
3
;
const
index
=
4
;
const
secretKey
=
{
const
secretKey
=
{
ip
:
{},
ip
:
{},
dev
:
{
dev
:
{
...
...
api/request.js
View file @
f9877db
...
@@ -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
,
...
...
app.js
View file @
f9877db
...
@@ -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,11 +91,12 @@ App({
...
@@ -91,11 +91,12 @@ App({
wx
.
$storage
.
set
(
'scene'
,
wx
.
$trackData
)
wx
.
$storage
.
set
(
'scene'
,
wx
.
$trackData
)
break
break
default
:
default
:
wx
.
$storage
.
set
(
'scene'
,
wx
.
$trackData
)
if
(
wx
.
$trackData
.
cardId
)
{
wx
.
$storage
.
set
(
'scene'
,
wx
.
$trackData
)
}
}
}
resolve
(
result
)
resolve
(
result
)
})
})
}
}
// ssoApi
// ssoApi
// .getUserInfo({
// .getUserInfo({
...
...
components/UserInfo/UserInfo.wxml
View file @
f9877db
...
@@ -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>
...
...
pages/tab/index/index.js
View file @
f9877db
...
@@ -111,7 +111,7 @@ Page({
...
@@ -111,7 +111,7 @@ Page({
console
.
log
(
storeParams
,
storeappId
)
console
.
log
(
storeParams
,
storeappId
)
wx
.
navigateToMiniProgram
({
wx
.
navigateToMiniProgram
({
appId
:
storeappId
,
appId
:
storeappId
,
path
:
'pages/authentication/loading/loading'
,
path
:
'pa
ckageStoreAssistant/packageAuth/pa
ges/authentication/loading/loading'
,
extraData
:
storeParams
,
extraData
:
storeParams
,
envVersion
:
'trial'
,
envVersion
:
'trial'
,
success
(
res
)
{
success
(
res
)
{
...
@@ -249,8 +249,10 @@ Page({
...
@@ -249,8 +249,10 @@ Page({
*/
*/
onShareAppMessage
()
{
onShareAppMessage
()
{
const
cardId
=
wx
.
$storage
.
get
(
"scene"
).
cardId
const
cardId
=
wx
.
$storage
.
get
(
"scene"
).
cardId
const
merchant
=
wx
.
$storage
.
get
(
"scene"
).
merchant
// merchantId 兼容旧链接
const
merchant
=
wx
.
$storage
.
get
(
"scene"
).
merchant
||
wx
.
$storage
.
get
(
"scene"
).
merchantId
const
shareType
=
'SHARE_HOME'
const
shareType
=
'SHARE_HOME'
console
.
log
(
'cardId'
,
cardId
,
'merchant'
,
merchant
)
return
{
return
{
title
:
`您好,我向你推荐了广联数科
${
this
.
data
.
cardInfo
.
staffName
}
的智能名片~`
,
title
:
`您好,我向你推荐了广联数科
${
this
.
data
.
cardInfo
.
staffName
}
的智能名片~`
,
imageUrl
:
this
.
data
.
shareImg
,
imageUrl
:
this
.
data
.
shareImg
,
...
...
project.config.json
View file @
f9877db
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
},
},
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.25.4"
,
"libVersion"
:
"2.25.4"
,
"appid"
:
"wx
cf971cf4ada61d8b
"
,
"appid"
:
"wx
1bd947039419e6ce
"
,
"projectname"
:
"%E5%B9%BF%E8%81%94%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%A8%A1%E7%89%88"
,
"projectname"
:
"%E5%B9%BF%E8%81%94%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%A8%A1%E7%89%88"
,
"simulatorType"
:
"wechat"
,
"simulatorType"
:
"wechat"
,
"simulatorPluginLibVersion"
:
{},
"simulatorPluginLibVersion"
:
{},
...
...
project.private.config.json
View file @
f9877db
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
{
{
"name"
:
""
,
"name"
:
""
,
"pathName"
:
"pages/tab/index/index"
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D
40
6"
,
"query"
:
"scene=sceneId%3D
399
6"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment