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 d969808e
authored
Feb 07, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建分支
1 parent
18aefbaf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
102 additions
and
10 deletions
app.json
components/UserInfo/UserInfo.js
components/UserInfo/UserInfo.wxml
package-lock.json
package.json
packagesList/pages/accessRecord/accessRecord.js
packagesList/pages/accessRecord/accessRecord.json
packagesList/pages/accessRecord/accessRecord.scss
packagesList/pages/accessRecord/accessRecord.wxml
pages/tab/index/constant/data.js
pages/tab/index/index.js
pages/tab/index/index.wxml
project.private.config.json
app.json
View file @
d969808
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
"pages/applySuccess/applySuccess"
,
"pages/applySuccess/applySuccess"
,
"pages/videoDetal/videoDetal"
,
"pages/videoDetal/videoDetal"
,
"pages/productDetail/productDetail"
,
"pages/productDetail/productDetail"
,
"pages/scenarioDetail/scenarioDetail"
"pages/scenarioDetail/scenarioDetail"
,
"pages/accessRecord/accessRecord"
]
]
}
}
],
],
...
...
components/UserInfo/UserInfo.js
View file @
d969808
...
@@ -106,6 +106,10 @@ Component({
...
@@ -106,6 +106,10 @@ Component({
duration
:
2000
duration
:
2000
})
})
}
}
},
// 跳往名片线索页面
goRecord
()
{
wx
.
$router
.
go
(
"/packagesList/pages/accessRecord/accessRecord"
);
}
}
},
},
});
});
components/UserInfo/UserInfo.wxml
View file @
d969808
...
@@ -36,6 +36,8 @@
...
@@ -36,6 +36,8 @@
<button class="btn-plain btn" bindtap="addPhone">保存名片</button>
<button class="btn-plain btn" bindtap="addPhone">保存名片</button>
<button wx:if="{{shareDisabled}}" class="btn-primary btn" bindtap="shareClick">分享名片</button>
<button wx:if="{{shareDisabled}}" class="btn-primary btn" bindtap="shareClick">分享名片</button>
<button wx:else class="btn-primary btn" open-type="share">分享名片</button>
<button wx:else class="btn-primary btn" open-type="share">分享名片</button>
<button class="btn-plain btn" bindtap="goRecord">名片线索</button>
</view>
</view>
</view>
</view>
<authorize buttonType="openSetting" show="{{showAuth}}" isShowCheck="{{false}}"></authorize>
<authorize buttonType="openSetting" show="{{showAuth}}" isShowCheck="{{false}}"></authorize>
\ No newline at end of file
\ No newline at end of file
package-lock.json
View file @
d969808
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
"integrity"
:
"sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
"integrity"
:
"sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
},
},
"glsx-applet-component"
:
{
"glsx-applet-component"
:
{
"version"
:
"1.0.4
0
"
,
"version"
:
"1.0.4
4
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.4
0
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.4
4
.tgz"
,
"integrity"
:
"sha512-
ZqThscIToW/UfNWN1XYRa/+9C0P5J0UJYAuF0kiLjfyQx0ToaBEwfsXOO66EXZKxmDf9mOh+GoDEddLxcJ/6/w
=="
"integrity"
:
"sha512-
GEgRy/WYEFjWljh1CAkleW2gRy3/Ss1dk1+z+0O0M29euwR++KS0jwlh3unEIm72c04D3u0FwYiE2vPmgR8qwQ
=="
}
}
}
}
}
}
package.json
View file @
d969808
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"main"
:
"app.js"
,
"main"
:
"app.js"
,
"dependencies"
:
{
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.9"
,
"@vant/weapp"
:
"^1.10.9"
,
"glsx-applet-component"
:
"^1.0.4
0
"
"glsx-applet-component"
:
"^1.0.4
4
"
},
},
"devDependencies"
:
{},
"devDependencies"
:
{},
"scripts"
:
{
"scripts"
:
{
...
...
packagesList/pages/accessRecord/accessRecord.js
0 → 100644
View file @
d969808
// packagesList/pages/accessRecord/accessRecord.js
Page
({
/**
* 页面的初始数据
*/
data
:
{
tabData
:
[
'访问记录'
,
'活动申请'
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
(
options
)
{
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
()
{
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide
()
{
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload
()
{
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh
()
{
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
},
/**
* 用户点击右上角分享
*/
onShareAppMessage
()
{
}
})
\ No newline at end of file
\ No newline at end of file
packagesList/pages/accessRecord/accessRecord.json
0 → 100644
View file @
d969808
{
"usingComponents"
:
{},
"navigationBarTitleText"
:
"名片访问记录"
}
\ No newline at end of file
\ No newline at end of file
packagesList/pages/accessRecord/accessRecord.scss
0 → 100644
View file @
d969808
/* packagesList/pages/accessRecord/accessRecord.wxss */
\ No newline at end of file
\ No newline at end of file
packagesList/pages/accessRecord/accessRecord.wxml
0 → 100644
View file @
d969808
<!--packagesList/pages/accessRecord/accessRecord.wxml-->
<view>
<view wx:for="{{tabData}}" wx:key="index" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}">
{{item.name}}
</view>
</view>
pages/tab/index/constant/data.js
0 → 100644
View file @
d969808
This diff is collapsed.
Click to expand it.
pages/tab/index/index.js
View file @
d969808
...
@@ -12,6 +12,7 @@ import { commonMixin } from '../../../mixins/index'
...
@@ -12,6 +12,7 @@ import { commonMixin } from '../../../mixins/index'
import
{
trackData
}
from
'../../../utils/data'
import
{
trackData
}
from
'../../../utils/data'
import
{
senceData
,
productData
}
from
'./constant/senceData'
import
{
senceData
,
productData
}
from
'./constant/senceData'
import
{
subscriptionBannerUrl
,
subscriptionSystemData
}
from
'./constant/systemData'
import
{
subscriptionBannerUrl
,
subscriptionSystemData
}
from
'./constant/systemData'
import
{
scenceList
}
from
"./constant/data"
let
leftMenuIndex
=
0
let
leftMenuIndex
=
0
Page
({
Page
({
behaviors
:
[
commonMixin
],
behaviors
:
[
commonMixin
],
...
@@ -64,7 +65,8 @@ Page({
...
@@ -64,7 +65,8 @@ Page({
activityList
:
[],
activityList
:
[],
subscriptionBannerUrl
:
Object
.
freeze
(
subscriptionBannerUrl
),
subscriptionBannerUrl
:
Object
.
freeze
(
subscriptionBannerUrl
),
subscriptionSystemData
:
Object
.
freeze
(
subscriptionSystemData
),
subscriptionSystemData
:
Object
.
freeze
(
subscriptionSystemData
),
showCooperate
:
false
showCooperate
:
false
,
scenceList
:
scenceList
,
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
},
},
...
@@ -211,7 +213,8 @@ Page({
...
@@ -211,7 +213,8 @@ Page({
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
if
(
data
&&
data
.
phone
)
{
if
(
data
&&
data
.
phone
)
{
this
.
setData
({
this
.
setData
({
hasPhoneNumber
:
true
hasPhoneNumber
:
true
,
phoneNumber
:
data
.
phone
})
})
this
.
checkCooperate
()
this
.
checkCooperate
()
}
}
...
@@ -476,6 +479,10 @@ Page({
...
@@ -476,6 +479,10 @@ Page({
this
.
setShareInfo
(
cardInfo
)
this
.
setShareInfo
(
cardInfo
)
}
}
)
)
console
.
log
(
cardInfo
.
staffPhone
,
this
.
data
.
phoneNumber
);
if
(
cardInfo
.
staffPhone
===
this
.
data
.
phoneNumber
)
{
wx
.
$storage
.
set
(
'isStaff'
,
'true'
)
}
})
})
},
},
...
...
pages/tab/index/index.wxml
View file @
d969808
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
<view class="main-content">
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<!-- 增值转化 -->
<gl-scenario currentScenIndex="{{3}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<!-- <gl-scenario currentScenIndex="{{1}}" productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" data-name="增值转化" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" /> -->
<gl-scenario currentScenIndex="{{1}}" productData="{{productData}}" list="{{scenceList}}" senceData="{{senceData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" activityList="{{activityList}}" bindleftClick="leftClick"></gl-scenario>
</block>
</block>
<block wx:if="{{curTabIndex == 1}}">
<block wx:if="{{curTabIndex == 1}}">
<gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" data-name="系统订阅" bind:videoClick="videoClick" />
<gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" data-name="系统订阅" bind:videoClick="videoClick" />
...
...
project.private.config.json
View file @
d969808
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
"scene"
:
null
"scene"
:
null
},
},
{
{
"name"
:
""
,
"name"
:
"
访问记录
"
,
"pathName"
:
"packagesList/pages/
videoDetal/videoDetal
"
,
"pathName"
:
"packagesList/pages/
accessRecord/accessRecord
"
,
"query"
:
""
,
"query"
:
""
,
"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