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 9907c657
authored
Nov 13, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.28.0' into 'master'
合并线上代码 See merge request
!26
2 parents
0cc6555b
a1a29114
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
70 deletions
components/UserInfo/UserInfo.wxml
components/UserInfo/UserInfo.wxss
package.json
packagesList/pages/productDetail/productDetail.js
pages/tab/index/components/companyIntroduce/companyIntroduce.wxml
pages/tab/index/index.js
pages/tab/index/index.wxml
utils/util.js
components/UserInfo/UserInfo.wxml
View file @
9907c65
...
...
@@ -3,7 +3,7 @@
<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?v={{img_version}}"></image>
<image class="company-logo" webp src="{{IMGURL}}home/
new-
logo.png?v={{img_version}}"></image>
</view>
<view class="user-name">
<view class="name">{{cardInfo.staffName || ''}}</view>
...
...
components/UserInfo/UserInfo.wxss
View file @
9907c65
...
...
@@ -32,8 +32,8 @@
align-items: center;
}
.company-logo{
width: 19
2
rpx;
height:
56
rpx;
width: 19
0
rpx;
height:
68
rpx;
}
.user-company text {
font-size: 18rpx;
...
...
package.json
View file @
9907c65
...
...
@@ -5,9 +5,8 @@
"main"
:
"app.js"
,
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.9"
,
"glsx-applet-component"
:
"^1.1.2
4
"
"glsx-applet-component"
:
"^1.1.2
9
"
},
"devDependencies"
:
{},
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
...
...
packagesList/pages/productDetail/productDetail.js
View file @
9907c65
...
...
@@ -32,7 +32,13 @@ Page({
prodItemVideo
:
""
,
//选中的场景下的video的第一个
activeUrl
:
""
,
// 1.3场景才有的活动配置
sharephone
:
""
,
//主要微信用户,服务商
cardInfo
:
{},
cardInfo
:
{
staffName
:
'普俊鹏'
,
operation
:
'总经理助理'
,
staffPhone
:
'18566760303'
,
image
:
`https://wx.glsx.com.cn/upload/biz/a9e8be9a-4bb3-49e5-bbe2-74834a49250a.jpg`
,
qrCode
:
'https://wework.qpic.cn/wwpic/999822_iZhMe8pJTduYBbN_1665471085/0'
},
hasPhoneNumber
:
false
,
// 是否有授权手机号码
pageName
:
""
,
proName
:
""
,
...
...
pages/tab/index/components/companyIntroduce/companyIntroduce.wxml
View file @
9907c65
<!--pages/tab/index/components/companyIntroduce/companyIntroduce.wxml-->
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/company/company-img1.png?v={{img_version}}"></image>
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/company/company-image1.png?v={{img_version}}"></image>
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/company/saas-img1.png?v={{img_version}}"></image>
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/company/saas-img2.png?v={{img_version}}"></image>
<!-- 合同客户 -->
<view class="relative">
<image mode="widthFix" class="img" webp src="{{IMGURL}}image/company/bg1.png?v={{img_version}}"></image>
...
...
@@ -51,4 +53,4 @@
</view>
<!-- <image mode="widthFix" class="img" src="{{IMGURL}}image/company/company-img5.png?v={{img_version}}"></image> -->
<image mode="widthFix" webp class="img" src="{{IMGURL}}image/company/company-im
g
5.png?v={{img_version}}"></image>
<image mode="widthFix" webp class="img" src="{{IMGURL}}image/company/company-im
age
5.png?v={{img_version}}"></image>
pages/tab/index/index.js
View file @
9907c65
...
...
@@ -23,6 +23,11 @@ Page({
isStaff
:
false
,
tabList
:
[
{
name
:
'公司介绍'
,
icon
:
'icon-company'
,
icon1
:
'icon-company1'
},
{
name
:
'营销增值服务'
,
icon
:
'icon-product'
,
icon1
:
'icon-product1'
...
...
@@ -31,28 +36,23 @@ Page({
name
:
'客户数字化'
,
icon
:
'icon-measure'
,
icon1
:
'icon-measure'
},
{
name
:
'公司介绍'
,
icon
:
'icon-company'
,
icon1
:
'icon-company1'
},
{
name
:
'视频直播'
,
icon
:
'icon-video'
,
icon1
:
'icon-video'
}
// {
// id: 3,
// name: '视频直播',
// icon: 'icon-video',
// icon1: 'icon-video'
// }
],
curTabIndex
:
0
,
// 员工名片信息
cardInfo
:
null
,
defaultInfo
:
{
staffName
:
'
虚拟员工
'
,
operation
:
'
虚拟职位
'
,
staffPhone
:
'
xxxxxxxx
'
,
image
:
'https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg'
,
qrCode
:
'https://
img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg
'
staffName
:
'
普俊鹏
'
,
operation
:
'
总经理助理
'
,
staffPhone
:
'
18566760303
'
,
image
:
`https://wx.glsx.com.cn/upload/biz/a9e8be9a-4bb3-49e5-bbe2-74834a49250a.jpg`
,
qrCode
:
'https://
wework.qpic.cn/wwpic/999822_iZhMe8pJTduYBbN_1665471085/0
'
},
// 是否授权手机号
hasPhoneNumber
:
false
,
...
...
@@ -73,14 +73,16 @@ Page({
},
// 一级菜单
introduce
(
e
)
{
console
.
log
(
e
)
const
curTabIndex
=
e
.
currentTarget
.
dataset
.
index
const
ids
=
e
.
currentTarget
.
dataset
.
name
.
id
this
.
setData
({
autoplay
:
false
})
// 视频直播是跳转新页面,不需要设置激活样式
// 0-增值转化 1-系统订阅 2-公司介绍 3-视频直播
switch
(
curTabIndex
)
{
case
2
:
switch
(
ids
)
{
case
0
:
this
.
setData
({
curTabIndex
:
curTabIndex
,
autoplay
:
true
...
...
@@ -224,8 +226,8 @@ Page({
const
productData
=
res
[
0
].
subList
const
systemData
=
res
[
1
].
subList
this
.
setData
({
[
`tabList[
0
].name`
]:
res
[
0
].
name
,
[
`tabList[
1
]name`
]:
res
[
1
].
name
,
[
`tabList[
1
].name`
]:
res
[
0
].
name
,
[
`tabList[
2
]name`
]:
res
[
1
].
name
,
systemData
,
systemDataId
:
res
[
1
].
id
,
productData
,
...
...
@@ -247,17 +249,6 @@ Page({
wx
.
hideShareMenu
({
menus
:
[
'shareAppMessage'
]
})
// app.getBaseData().then(res => {
// const productData = res[0].list
// const systemData = res[1].list
// this.setData({
// [`tabList[0].name`]: res[0].name,
// [`tabList[1]name`]: res[1].name,
// systemData,
// productData
// })
// })
},
addAll
(
data
)
{
...
...
@@ -304,18 +295,6 @@ Page({
*/
onShow
()
{
const
app
=
getApp
()
// app.getBaseData().then(res => {
// const productData = res[0].subList
// const systemData = res[1].subList
// this.setData({
// [`tabList[0].name`]: res[0].name,
// [`tabList[1]name`]: res[1].name,
// systemData,
// systemDataId: res[1].id,
// productData,
// productDataId: res[0].id,
// })
// })
const
userInfo
=
wx
.
$util
.
getUserInfo
()
this
.
setData
({
hasPhoneNumber
:
!!
(
userInfo
&&
userInfo
.
phone
)
...
...
@@ -398,11 +377,11 @@ Page({
height
:
124
},
{
url
:
'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/
share/
logo.png'
,
url
:
'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/
home/new-
logo.png'
,
x
:
18
,
y
:
13
,
width
:
58
,
height
:
15
height
:
20
},
// 头像的
{
...
...
@@ -506,9 +485,9 @@ Page({
// 获取员工名片信息
getCardDetail
()
{
this
.
setData
({
'tabList[3].isShow'
:
wx
.
showMeasure
})
//
this.setData({
//
'tabList[3].isShow': wx.showMeasure
//
})
const
scene
=
wx
.
$storage
.
get
(
'scene'
)
let
params
=
{
cardId
:
wx
.
$trackData
.
cardId
||
scene
.
cardId
...
...
pages/tab/index/index.wxml
View file @
9907c65
...
...
@@ -20,14 +20,14 @@
</view>
<block wx:if="{{productData.length}}">
<view class="main-content">
<block wx:if="{{curTabIndex ==
0
}}">
<block wx:if="{{curTabIndex ==
1
}}">
<!-- 增值转化 -->
<gl-scenario list="{{productData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
</block>
<block wx:if="{{curTabIndex ==
1
}}">
<block wx:if="{{curTabIndex ==
2
}}">
<gl-subscription list="{{systemData}}" bindmenuClick="sysMenuClick" bind:proClick="proClick" data-name="客户数字化" bind:videoClick="videoClick" bindsenceClick="senceClick" />
</block>
<block wx-if="{{curTabIndex ==
2
}}">
<block wx-if="{{curTabIndex ==
0
}}">
<company-introduce autoplay="{{autoplay}}" />
</block>
</view>
...
...
@@ -41,11 +41,11 @@
</view> -->
</view>
<!-- 服务咨询 -->
<view class="floating-box">
<
!-- <
view class="floating-box">
<image class="floating-icon" style="margin-bottom: 10rpx;" webp bindtap="toStoreMiniProgram" src="{{IMGURL}}home/icon-store.png?v={{img_version}}" />
<image class="floating-icon" bindtap="toBusinessMiniProgram" webp src="{{IMGURL}}home/icon-business.png?v={{img_version}}" />
<image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}" />
</view>
</view>
-->
<phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}" bindupdatePhoneNumber="updatePhoneNumber" />
<!-- 客服咨询 -->
<customer wx:if="{{showCustomer}}" qrCode="{{cardInfo.qrCode}}" bindcloseQR="closeQR" />
...
...
utils/util.js
View file @
9907c65
...
...
@@ -198,14 +198,14 @@ const decimal = (num, fixed = 2) => {
*/
const
noScroll
=
()
=>
{}
/**设置粘贴板内容 */
const
setCopyData
=
(
data
,
callBack
)
=>
{
wx
.
setClipboardData
({
data
:
data
,
success
(
res
)
{
if
(
callBack
&&
typeof
callBack
===
'function'
)
callBack
(
res
)
}
})
}
//
const setCopyData = (data, callBack) => {
//
wx.setClipboardData({
//
data: data,
//
success(res) {
//
if (callBack && typeof callBack === 'function') callBack(res)
//
}
//
})
//
}
/**是否全面屏 */
const
isFullSucreen
=
(
isComponents
)
=>
{
const
thisPage
=
$router
.
getPageInstance
()
...
...
@@ -519,7 +519,7 @@ const Util = {
hideLoading
,
getMockConfig
,
getViewInfo
,
setCopyData
,
//
setCopyData,
getSceneId
,
haveEmoji
,
showToast
,
...
...
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