Commit 9907c657 by 前端

Merge branch 'v4.28.0' into 'master'

合并线上代码

See merge request !26
2 parents 0cc6555b a1a29114
......@@ -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>
......
......@@ -32,8 +32,8 @@
align-items: center;
}
.company-logo{
width: 192rpx;
height: 56rpx;
width: 190rpx;
height: 68rpx;
}
.user-company text {
font-size: 18rpx;
......
......@@ -5,9 +5,8 @@
"main": "app.js",
"dependencies": {
"@vant/weapp": "^1.10.9",
"glsx-applet-component": "^1.1.24"
"glsx-applet-component": "^1.1.29"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
......
......@@ -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-->
<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-img5.png?v={{img_version}}"></image>
<image mode="widthFix" webp class="img" src="{{IMGURL}}image/company/company-image5.png?v={{img_version}}"></image>
......@@ -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
......
......@@ -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" />
......
......@@ -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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!