Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 e4e03ee8
authored
Oct 20, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of 192.168.3.233:saas_plus/business-assistant into develop
2 parents
24ac8405
a62ee8fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
107 deletions
pages/checkProduct/checkProduct.js
pages/tab/index/components/product/product.wxml
pages/tab/index/index.js
pages/checkProduct/checkProduct.js
View file @
e4e03ee
...
@@ -89,9 +89,10 @@ Page({
...
@@ -89,9 +89,10 @@ Page({
},
},
//接受跳转的路由参数
//接受跳转的路由参数
onRoute
(
options
)
{
onRoute
(
options
)
{
// console.log("
options: ", options);
console
.
log
(
"分享
options: "
,
options
);
//选中场景的index,和产品的index
//选中场景的index,和产品的index
let
{
actNum
,
activeNavIdx
,
apiData
}
=
options
;
let
{
actNum
,
activeNavIdx
,
apiData
}
=
options
;
if
(
actNum
&&
activeNavIdx
)
return
this
.
setData
({
this
.
setData
({
actNum
,
actNum
,
activeNavIdx
,
activeNavIdx
,
...
@@ -256,25 +257,35 @@ Page({
...
@@ -256,25 +257,35 @@ Page({
* 生命周期函数--监听页面加载 ()
* 生命周期函数--监听页面加载 ()
*/
*/
onLoad(options) {
onLoad(options) {
console.log('
options
: ', options);
console.log('
分享options12255565
: ', options);
// actNum,activeNavIdx isShare
// actNum,activeNavIdx isShare
if(!options){
return
}
// 扫码进来
// 扫码进来
let { actNum, activeNavIdx, isShare, merchantId } = options;
let { actNum, activeNavIdx, isShare, merchantId } = options;
console.log('isShare: ', isShare);
console.log('isShare: ', isShare);
if (merchantId) {
if (merchantId) {
this.setData({
this.setData({
isShow: false,
isShow: false,
isShare:true,
});
});
}
}
if (isShare) {
if (isShare) {
this.setData({
this.setData({
isShow: false,
isShow: false,
isShare:true,
});
});
} else {
} else {
wx.showLoading({
wx.showLoading({
title: "加载图片中",
title: "加载图片中",
});
});
}
}
this.setData({
actNum,
activeNavIdx
})
// 发请求
// 发请求
let senceItem = senceData[actNum];
let senceItem = senceData[actNum];
let item = senceData[actNum]?.productList[activeNavIdx];
let item = senceData[actNum]?.productList[activeNavIdx];
...
...
pages/tab/index/components/product/product.wxml
View file @
e4e03ee
...
@@ -46,10 +46,10 @@
...
@@ -46,10 +46,10 @@
scroll-y="{{true}}"
scroll-y="{{true}}"
>
>
<block wx:for="{{tab}}" wx:key="index">
<block wx:for="{{tab}}" wx:key="index">
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}">
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}"
>
<!-- {{item}} -->
<!-- {{item}} -->
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" />
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png"
wx:if="{{index!=5}}"
/>
<view class="video-bg" wx:if="{{index==5 && senceData[actNum].videoList.length}}">
<view class="video-bg" wx:if="{{
!isShare &&
index==5 && senceData[actNum].videoList.length}}">
<view class="video-list">
<view class="video-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<view class="video-item">
<view class="video-item">
...
@@ -61,8 +61,9 @@
...
@@ -61,8 +61,9 @@
</view>
</view>
</view>
</view>
<!-- wx:if="{{ actNum != 2 && index == 4}}" -->
<!-- wx:if="{{ actNum != 2 && index == 4}}" -->
<!-- wx:if="{{isShare && actNum != 2 && index == 4}}" -->
<button
<button
wx:if="{{isShare && actNum != 2 && index == 4}}"
wx:if="{{
isShare && actNum != 2 && index == 4}}"
class="more-btn"
class="more-btn"
data-index="{{index}}"
data-index="{{index}}"
bindgetphonenumber="getUserInfo"
bindgetphonenumber="getUserInfo"
...
...
pages/tab/index/index.js
View file @
e4e03ee
...
@@ -52,107 +52,7 @@ Page({
...
@@ -52,107 +52,7 @@ Page({
tabIndx
:
1
,
tabIndx
:
1
,
navList
:
[
"看线索"
,
"看产品"
],
navList
:
[
"看线索"
,
"看产品"
],
typeList
:
[
"联系电话"
,
"意向客户"
,
"线索来源"
,
"重置"
],
typeList
:
[
"联系电话"
,
"意向客户"
,
"线索来源"
,
"重置"
],
clueList
:
[
clueList
:
[],
{
source
:
"customer"
,
name
:
"张三1"
,
avatar
:
""
,
like
:
true
,
records
:
[
{
id
:
0
,
type
:
0
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
{
id
:
1
,
type
:
1
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
{
id
:
3
,
type
:
0
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
{
id
:
4
,
type
:
1
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
{
id
:
5
,
type
:
0
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
{
id
:
6
,
type
:
1
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
{
id
:
7
,
type
:
1
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
],
phone
:
15718122929
,
isOpen
:
false
,
getMoreFlag
:
false
,
},
{
source
:
"customer"
,
name
:
"张三"
,
avatar
:
""
,
like
:
false
,
records
:
[
{
id
:
0
,
type
:
0
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
{
id
:
1
,
type
:
1
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
},
],
phone
:
15718122925
,
isOpen
:
true
,
},
{
source
:
"shop"
,
name
:
"张三"
,
avatar
:
""
,
like
:
false
,
records
:
[
{
id
:
0
,
type
:
0
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
shop
:
"嘀加鹏辉奥迪4S店"
,
},
{
id
:
1
,
type
:
1
,
msg
:
"360全景导航"
,
time
:
"10-30 09:26:25"
,
shop
:
"嘀加鹏辉奥迪4S店"
,
},
],
phone
:
15718122925
,
isOpen
:
true
,
},
],
// 预估弹框
// 预估弹框
visible
:
false
,
visible
:
false
,
isReset
:
false
,
isReset
:
false
,
...
...
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