Commit d969808e by 前端

新建分支

1 parent 18aefbaf
......@@ -23,7 +23,8 @@
"pages/applySuccess/applySuccess",
"pages/videoDetal/videoDetal",
"pages/productDetail/productDetail",
"pages/scenarioDetail/scenarioDetail"
"pages/scenarioDetail/scenarioDetail",
"pages/accessRecord/accessRecord"
]
}
],
......
......@@ -106,6 +106,10 @@ Component({
duration: 2000
})
}
},
// 跳往名片线索页面
goRecord() {
wx.$router.go("/packagesList/pages/accessRecord/accessRecord");
}
},
});
......@@ -36,6 +36,8 @@
<button class="btn-plain btn" bindtap="addPhone">保存名片</button>
<button wx:if="{{shareDisabled}}" class="btn-primary btn" bindtap="shareClick">分享名片</button>
<button wx:else class="btn-primary btn" open-type="share">分享名片</button>
<button class="btn-plain btn" bindtap="goRecord">名片线索</button>
</view>
</view>
<authorize buttonType="openSetting" show="{{showAuth}}" isShowCheck="{{false}}"></authorize>
\ No newline at end of file
......@@ -10,9 +10,9 @@
"integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
},
"glsx-applet-component": {
"version": "1.0.40",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.40.tgz",
"integrity": "sha512-ZqThscIToW/UfNWN1XYRa/+9C0P5J0UJYAuF0kiLjfyQx0ToaBEwfsXOO66EXZKxmDf9mOh+GoDEddLxcJ/6/w=="
"version": "1.0.44",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.44.tgz",
"integrity": "sha512-GEgRy/WYEFjWljh1CAkleW2gRy3/Ss1dk1+z+0O0M29euwR++KS0jwlh3unEIm72c04D3u0FwYiE2vPmgR8qwQ=="
}
}
}
......@@ -5,7 +5,7 @@
"main": "app.js",
"dependencies": {
"@vant/weapp": "^1.10.9",
"glsx-applet-component": "^1.0.40"
"glsx-applet-component": "^1.0.44"
},
"devDependencies": {},
"scripts": {
......
// packagesList/pages/accessRecord/accessRecord.js
Page({
/**
* 页面的初始数据
*/
data: {
tabData: ['访问记录', '活动申请']
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "名片访问记录"
}
\ No newline at end of file
/* packagesList/pages/accessRecord/accessRecord.wxss */
\ No newline at end of file
<!--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>
......@@ -12,6 +12,7 @@ import { commonMixin } from '../../../mixins/index'
import { trackData } from '../../../utils/data'
import { senceData, productData } from './constant/senceData'
import { subscriptionBannerUrl, subscriptionSystemData } from './constant/systemData'
import {scenceList} from "./constant/data"
let leftMenuIndex = 0
Page({
behaviors: [commonMixin],
......@@ -64,7 +65,8 @@ Page({
activityList: [],
subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
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'
},
......@@ -211,7 +213,8 @@ Page({
.then(({ data }) => {
if (data && data.phone) {
this.setData({
hasPhoneNumber: true
hasPhoneNumber: true,
phoneNumber: data.phone
})
this.checkCooperate()
}
......@@ -476,6 +479,10 @@ Page({
this.setShareInfo(cardInfo)
}
)
console.log(cardInfo.staffPhone,this.data.phoneNumber);
if (cardInfo.staffPhone === this.data.phoneNumber) {
wx.$storage.set('isStaff', 'true')
}
})
},
......
......@@ -21,7 +21,8 @@
<view class="main-content">
<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 wx:if="{{curTabIndex == 1}}">
<gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" data-name="系统订阅" bind:videoClick="videoClick" />
......
......@@ -48,8 +48,8 @@
"scene": null
},
{
"name": "",
"pathName": "packagesList/pages/videoDetal/videoDetal",
"name": "访问记录",
"pathName": "packagesList/pages/accessRecord/accessRecord",
"query": "",
"launchMode": "default",
"scene": null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!