Commit e4e03ee8 by 张立顺

Merge branch 'develop' of 192.168.3.233:saas_plus/business-assistant into develop

2 parents 24ac8405 a62ee8fe
......@@ -89,9 +89,10 @@ Page({
},
//接受跳转的路由参数
onRoute(options) {
// console.log("options: ", options);
console.log("分享options: ", options);
//选中场景的index,和产品的index
let { actNum, activeNavIdx, apiData} = options;
if(actNum&&activeNavIdx)return
this.setData({
actNum,
activeNavIdx,
......@@ -256,25 +257,35 @@ Page({
* 生命周期函数--监听页面加载 ()
*/
onLoad(options) {
console.log('options: ', options);
console.log('分享options12255565: ', options);
// actNum,activeNavIdx isShare
if(!options){
return
}
// 扫码进来
let { actNum, activeNavIdx, isShare, merchantId } = options;
console.log('isShare: ', isShare);
if (merchantId) {
this.setData({
isShow: false,
isShare:true,
});
}
if (isShare) {
this.setData({
isShow: false,
isShare:true,
});
} else {
wx.showLoading({
title: "加载图片中",
});
}
this.setData({
actNum,
activeNavIdx
})
// 发请求
let senceItem = senceData[actNum];
let item = senceData[actNum]?.productList[activeNavIdx];
......
......@@ -46,10 +46,10 @@
scroll-y="{{true}}"
>
<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}} -->
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" />
<view class="video-bg" wx:if="{{index==5 && senceData[actNum].videoList.length}}">
<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="{{!isShare && index==5 && senceData[actNum].videoList.length}}">
<view class="video-list">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<view class="video-item">
......@@ -61,8 +61,9 @@
</view>
</view>
<!-- wx:if="{{ actNum != 2 && index == 4}}" -->
<!-- wx:if="{{isShare && actNum != 2 && index == 4}}" -->
<button
wx:if="{{isShare && actNum != 2 && index == 4}}"
wx:if="{{ isShare && actNum != 2 && index == 4}}"
class="more-btn"
data-index="{{index}}"
bindgetphonenumber="getUserInfo"
......
......@@ -52,107 +52,7 @@ Page({
tabIndx: 1,
navList: ["看线索", "看产品"],
typeList: ["联系电话", "意向客户", "线索来源", "重置"],
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,
},
],
clueList: [],
// 预估弹框
visible: false,
isReset: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!