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 394a95fb
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
5587dda0
0ff35766
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
161 additions
and
63 deletions
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/summary.js
pages/checkProduct/checkProduct.js
pages/tab/index/components/product/product.js
pages/tab/index/constant/data.js
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
pages/tab/output/components/client/client.scss
pages/tab/output/output.wxml
utils/lib/wxqrcode.js
utils/request/request.js
utils/share.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
View file @
394a95f
...
@@ -99,9 +99,38 @@ Component({
...
@@ -99,9 +99,38 @@ Component({
handleCopy
(
e
)
{
handleCopy
(
e
)
{
var
{
idx
}
=
e
.
currentTarget
.
dataset
var
{
idx
}
=
e
.
currentTarget
.
dataset
var
currentItem
=
this
.
data
.
orderObj
.
activityList
[
idx
]
var
currentItem
=
this
.
data
.
orderObj
.
activityList
[
idx
]
console
.
log
(
currentItem
)
var
qr
=
wxqrcode
.
createQrCodeImg
(
currentItem
.
activityUrl
)
// console.log(wxqrcode)
const
base64src
=
function
(
base64data
)
{
wxqrcode
.
createQrCodeImg
(
currentItem
.
activityUrl
)
return
new
Promise
((
resolve
,
reject
)
=>
{
const
[
a
,
format
,
bodyData
]
=
/data:image
\/(\w
+
)
;base64,
(
.*
)
/
.
exec
(
base64data
)
||
[]
if
(
!
format
)
reject
(
new
Error
(
'ERROR_BASE64SRC_PARSE'
))
const
filePath
=
`
${
wx
.
env
.
USER_DATA_PATH
}
/tmp_base64src.
${
format
}
`
const
buffer
=
wx
.
base64ToArrayBuffer
(
bodyData
)
wx
.
getFileSystemManager
().
writeFile
({
filePath
,
data
:
buffer
,
encoding
:
'binary'
,
success
()
{
resolve
(
filePath
)
},
fail
()
{
reject
(
new
Error
(
'ERROR_BASE64SRC_WRITE'
))
}
})
})
}
base64src
(
qr
).
then
(
res
=>
{
wx
.
getImageInfo
({
src
:
res
,
success
(
obj
)
{
wx
.
showShareImageMenu
({
path
:
obj
.
path
})
},
fail
()
{
}
})
})
}
}
}
}
})
})
packageOutput/pages/summary/summary.js
View file @
394a95f
...
@@ -13,9 +13,9 @@ Page({
...
@@ -13,9 +13,9 @@ Page({
scene1
:
null
,
scene1
:
null
,
scene2
:
null
,
scene2
:
null
,
scene3
:
null
,
scene3
:
null
,
scene4
:
true
scene4
:
null
},
},
sceneActive
:
4
,
sceneActive
:
1
,
scenePriceList
:
[{
scenePriceList
:
[{
total
:
0
total
:
0
},
{
},
{
...
...
pages/checkProduct/checkProduct.js
View file @
394a95f
...
@@ -4,7 +4,7 @@ const navStyle = "background-color: #fff";
...
@@ -4,7 +4,7 @@ const navStyle = "background-color: #fff";
import
{
senceData
}
from
"~/pages/tab/index/constant/data"
;
import
{
senceData
}
from
"~/pages/tab/index/constant/data"
;
import
{
IMG_URL
}
from
"~/utils/constantData.js"
;
import
{
IMG_URL
}
from
"~/utils/constantData.js"
;
import
Draw
from
"~/utils/Draw.js"
;
import
Draw
from
"~/utils/Draw.js"
;
import
{
createQrCodeApi
}
from
'~/api/checkProduct.js'
import
{
createQrCodeApi
}
from
"~/api/checkProduct.js"
;
Page
({
Page
({
/**
/**
...
@@ -41,7 +41,7 @@ Page({
...
@@ -41,7 +41,7 @@ Page({
posterUrl
:
""
,
//海报url
posterUrl
:
""
,
//海报url
noVideoimgList
:
[],
noVideoimgList
:
[],
//分享相关
//分享相关
isShare
:
false
,
isShare
:
false
,
},
},
observers
:
{
observers
:
{
actNum
:
function
(
actNum
)
{
actNum
:
function
(
actNum
)
{
...
@@ -90,11 +90,20 @@ Page({
...
@@ -90,11 +90,20 @@ Page({
onRoute
(
options
)
{
onRoute
(
options
)
{
// console.log("options: ", options);
// console.log("options: ", options);
//选中场景的index,和产品的index
//选中场景的index,和产品的index
let
{
actNum
,
activeNavIdx
}
=
options
;
let
{
actNum
,
activeNavIdx
,
apiData
}
=
options
;
this
.
setData
({
this
.
setData
({
actNum
,
actNum
,
activeNavIdx
,
activeNavIdx
,
apiData
,
});
});
let
item
=
apiData
[
actNum
]?.
productList
[
activeNavIdx
];
this
.
shareQuery
=
`sceneCode=
${
apiData
[
actNum
].
sceneCode
}
&productCode=
${
item
?.
productCode
}
&
productName
=
$
{
item
?.
productName
}
&
category
=
$
{
item
?.
category
}
`;
this.shareTrackData = {
sceneCode: apiData[actNum].sceneCode,
productCode: item?.productCode,
productName: item?.productName,
category: item?.category,
};
},
},
// 分享按钮
// 分享按钮
handleClick(e) {
handleClick(e) {
...
@@ -115,10 +124,12 @@ Page({
...
@@ -115,10 +124,12 @@ Page({
},
},
// 下载海报
// 下载海报
async download() {
async download() {
let
{
actNum
,
activeNavIdx
,
imgHeightArr
}
=
this
.
data
;
let { actNum, activeNavIdx
, imgHeightArr
} = this.data;
let res = await createQrCodeApi({
let res = await createQrCodeApi({
actNum
,
activeNavIdx
,
isShare
:
true
actNum,
})
activeNavIdx,
isShare: true,
});
// let { actNum, imgHeightArr } = this.data;
// let { actNum, imgHeightArr } = this.data;
//所有的长度
//所有的长度
...
@@ -160,7 +171,7 @@ Page({
...
@@ -160,7 +171,7 @@ Page({
// },
// },
// ];
// ];
let
arr
=
[
456
,
222
,
0
,
496
]
let
arr
=
[
456
,
222
,
0
,
496
];
let
imgList
=
[
let
imgList
=
[
{
{
x
:
0
,
x
:
0
,
...
@@ -176,8 +187,8 @@ Page({
...
@@ -176,8 +187,8 @@ Page({
// y: erCodeHeight + 30,
// y: erCodeHeight + 30,
// width: 120 * 2,
// width: 120 * 2,
// height: 120 * 2,
// height: 120 * 2,
x: this.data.imgWidth
-
64,
x: this.data.imgWidth
-
64,
y:
this.data.imgHeight-arr[actNum]-
64,
y:
this.data.imgHeight - arr[actNum] -
64,
width: 64,
width: 64,
height: 64,
height: 64,
url: res.data, //二维码
url: res.data, //二维码
...
@@ -207,32 +218,50 @@ Page({
...
@@ -207,32 +218,50 @@ Page({
// },
// },
// 图片加载事件
// 图片加载事件
onloadFn(event) {
onloadFn(event) {
console.log(
'event.detail',event.detail)
console.log(
"event.detail", event.detail);
wx.hideLoading()
wx.hideLoading()
;
// this.setData({
// this.setData({
// imgHeight: (event.detail.height * 0.2).toFixed(0),
// imgHeight: (event.detail.height * 0.2).toFixed(0),
// });
// });
this.setData({
this.setData({
imgHeight:
event.detail.height/
5,
imgHeight:
event.detail.height /
5,
imgWidth:
event.detail.width/5
imgWidth:
event.detail.width / 5,
})
})
;
},
},
// 分享获取懂得用户数
// 分享获取懂得用户数
authorizedFn(e){
authorizedFn(e)
{
let res = e.detail
let res = e.detail
;
this.setData({
this.setData({
isShare:res.isShare,
isShare:
res.isShare,
phone: res.phone,
phone: res.phone,
})
})
;
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
()
*/
*/
onLoad(options) {
onLoad(options) {
// actNum,activeNavIdx isShare
// actNum,activeNavIdx isShare
// 扫码进来
let { actNum, activeNavIdx, isShare } = options;
if (isShare) {
this.setData({
isShow: false,
});
} else {
wx.showLoading({
wx.showLoading({
title: "加载图片中",
title: "加载图片中",
});
});
}
// 发请求
let senceItem = senceData[actNum];
let item = senceData[actNum]?.productList[activeNavIdx];
this.shareQuery = `
sceneCode
=
$
{
senceItem
?.
sceneCode
}
&
productCode
=
$
{
item
?.
productCode
}
&
productName
=
$
{
item
?.
productName
}
&
category
=
$
{
item
?.
category
}
`;
this.shareTrackData = {
sceneCode: senceItem.sceneCode,
productCode: item?.productCode,
productName: item?.productName,
category: item?.category,
};
},
},
/**
/**
...
@@ -272,5 +301,6 @@ Page({
...
@@ -272,5 +301,6 @@ Page({
/**
/**
* 浏览埋点
* 浏览埋点
*/
*/
onViewTrack:true
onShareTimeline() {},
onViewTrack: true,
});
});
pages/tab/index/components/product/product.js
View file @
394a95f
...
@@ -223,10 +223,11 @@ Component({
...
@@ -223,10 +223,11 @@ Component({
onShareFn
()
{
onShareFn
()
{
// this.triggerEvent('sharehandle')
// this.triggerEvent('sharehandle')
// wx.$router.go('apply',1235)
// wx.$router.go('apply',1235)
let
{
actNum
,
activeNavIdx
}
=
this
.
data
;
let
{
actNum
,
activeNavIdx
,
apiData
}
=
this
.
data
;
wx
.
$router
.
go
(
"checkProduct"
,
{
wx
.
$router
.
go
(
"checkProduct"
,
{
actNum
,
actNum
,
activeNavIdx
,
activeNavIdx
,
apiData
});
});
},
},
},
},
...
...
pages/tab/index/constant/data.js
View file @
394a95f
...
@@ -9,6 +9,7 @@ var senceData = [
...
@@ -9,6 +9,7 @@ var senceData = [
src
:
`
${
IMG_URL
}
index/car1.png`
,
src
:
`
${
IMG_URL
}
index/car1.png`
,
// name: "新车洽谈场景",
// name: "新车洽谈场景",
msg
:
"1.0 新车权益销售"
,
msg
:
"1.0 新车权益销售"
,
"sceneCode"
:
"SC001"
,
productList
:
[
productList
:
[
{
{
img
:
'product-img1'
,
img
:
'product-img1'
,
...
@@ -20,7 +21,10 @@ var senceData = [
...
@@ -20,7 +21,10 @@ var senceData = [
productType
:
'benefitCard'
,
productType
:
'benefitCard'
,
path
:
'equity'
,
path
:
'equity'
,
sale
:
100
,
//销量
sale
:
100
,
//销量
varType
:
0
varType
:
0
,
"productCode"
:
"PC001"
,
"productName"
:
"数字无忧权益卡"
,
"category"
:
"服务类"
,
}
}
],
],
videoList
:
[
videoList
:
[
...
@@ -54,6 +58,7 @@ var senceData = [
...
@@ -54,6 +58,7 @@ var senceData = [
src
:
`
${
IMG_URL
}
index/car2.png`
,
src
:
`
${
IMG_URL
}
index/car2.png`
,
// name: "新车交付场景",
// name: "新车交付场景",
msg
:
"1.1 新车精品升级"
,
msg
:
"1.1 新车精品升级"
,
"sceneCode"
:
"SC002"
,
productList
:
[
productList
:
[
{
{
img
:
'product-img2'
,
img
:
'product-img2'
,
...
@@ -64,7 +69,10 @@ var senceData = [
...
@@ -64,7 +69,10 @@ var senceData = [
productType
:
'sunMembrane'
,
productType
:
'sunMembrane'
,
path
:
'solarFilm'
,
path
:
'solarFilm'
,
sale
:
100
,
//销量
sale
:
100
,
//销量
varType
:
0
varType
:
0
,
"productCode"
:
"PC002"
,
"productName"
:
"汽车太阳膜"
,
"category"
:
"膜类"
,
}
}
],
],
videoList
:[
videoList
:[
...
@@ -83,6 +91,7 @@ var senceData = [
...
@@ -83,6 +91,7 @@ var senceData = [
src
:
`
${
IMG_URL
}
index/car3.png`
,
src
:
`
${
IMG_URL
}
index/car3.png`
,
// name: "0-12个月",
// name: "0-12个月",
msg
:
"1.2 新车线上转化"
,
msg
:
"1.2 新车线上转化"
,
"sceneCode"
:
"SC003"
,
productList
:
[
productList
:
[
{
{
img
:
'product-img3'
,
img
:
'product-img3'
,
...
@@ -93,7 +102,10 @@ var senceData = [
...
@@ -93,7 +102,10 @@ var senceData = [
productType
:
'protectMembrane'
,
productType
:
'protectMembrane'
,
path
:
'paintProtect'
,
path
:
'paintProtect'
,
sale
:
100
,
//销量
sale
:
100
,
//销量
varType
:
1
varType
:
1
,
"productCode"
:
"PC003"
,
"productName"
:
"漆面保护膜(车衣)"
,
"category"
:
"膜类"
,
},
},
{
{
img
:
'product-img4'
,
img
:
'product-img4'
,
...
@@ -104,7 +116,10 @@ var senceData = [
...
@@ -104,7 +116,10 @@ var senceData = [
productType
:
'colorMembrane'
,
productType
:
'colorMembrane'
,
path
:
'changingFilm'
,
path
:
'changingFilm'
,
sale
:
100
,
//销量
sale
:
100
,
//销量
varType
:
1
varType
:
1
,
"productCode"
:
"PC004"
,
"productName"
:
"改色膜"
,
"category"
:
"膜类"
,
}
}
]
]
},
},
...
@@ -116,6 +131,7 @@ var senceData = [
...
@@ -116,6 +131,7 @@ var senceData = [
src
:
`
${
IMG_URL
}
index/car4.png`
,
src
:
`
${
IMG_URL
}
index/car4.png`
,
// name: "12个月以上",
// name: "12个月以上",
msg
:
"1.3 存量用户众筹"
,
msg
:
"1.3 存量用户众筹"
,
"sceneCode"
:
"SC004"
,
productList
:
[
productList
:
[
{
{
img
:
'product-img5'
,
img
:
'product-img5'
,
...
@@ -126,7 +142,10 @@ var senceData = [
...
@@ -126,7 +142,10 @@ var senceData = [
productType
:
'digitBeauty'
,
productType
:
'digitBeauty'
,
path
:
'carBeauty'
,
path
:
'carBeauty'
,
sale
:
100
,
//销量
sale
:
100
,
//销量
varType
:
0
varType
:
0
,
"productCode"
:
"PC005"
,
"productName"
:
"数字化美容"
,
"category"
:
"美容类"
,
},
},
{
{
img
:
'product-img6'
,
img
:
'product-img6'
,
...
@@ -137,7 +156,10 @@ var senceData = [
...
@@ -137,7 +156,10 @@ var senceData = [
productType
:
'chair'
,
productType
:
'chair'
,
path
:
'seatVentilate'
,
path
:
'seatVentilate'
,
sale
:
10000
,
//销量
sale
:
10000
,
//销量
varType
:
1
varType
:
1
,
"productCode"
:
"PC006"
,
"productName"
:
"座椅通风"
,
"category"
:
"轻改类"
,
},
},
{
{
img
:
'product-img7'
,
img
:
'product-img7'
,
...
@@ -148,7 +170,10 @@ var senceData = [
...
@@ -148,7 +170,10 @@ var senceData = [
productType
:
'ar'
,
productType
:
'ar'
,
path
:
'arNavigation'
,
path
:
'arNavigation'
,
sale
:
10000
,
//销量
sale
:
10000
,
//销量
varType
:
1
varType
:
1
,
"productCode"
:
"PC007"
,
"productName"
:
"AR导航"
,
"category"
:
"轻改类"
,
},
},
{
{
img
:
'product-img8'
,
img
:
'product-img8'
,
...
@@ -159,7 +184,10 @@ var senceData = [
...
@@ -159,7 +184,10 @@ var senceData = [
productType
:
'lamp'
,
productType
:
'lamp'
,
path
:
'ambientLighting'
,
path
:
'ambientLighting'
,
sale
:
10000
,
//销量
sale
:
10000
,
//销量
varType
:
1
varType
:
1
,
"productCode"
:
"PC008"
,
"productName"
:
"氛围灯"
,
"category"
:
"轻改类"
,
},
},
{
{
img
:
'product-img9'
,
img
:
'product-img9'
,
...
@@ -170,7 +198,10 @@ var senceData = [
...
@@ -170,7 +198,10 @@ var senceData = [
productType
:
'navigation'
,
productType
:
'navigation'
,
path
:
'navigationArround'
,
path
:
'navigationArround'
,
sale
:
10000
,
//销量
sale
:
10000
,
//销量
varType
:
1
varType
:
1
,
"productCode"
:
"PC009"
,
"productName"
:
"360全景导航"
,
"category"
:
"轻改类"
,
}
}
],
],
videoList
:
[
videoList
:
[
...
...
pages/tab/index/index.js
View file @
394a95f
...
@@ -207,11 +207,16 @@ Page({
...
@@ -207,11 +207,16 @@ Page({
// },
// },
// 选车场景切换
// 选车场景切换
selectCar
(
e
)
{
selectCar
(
e
)
{
let
actNum
=
e
.
currentTarget
.
dataset
.
num
;
console
.
log
(
'e: '
,
e
);
let
{
num
,
scenestatus
}
=
e
.
currentTarget
.
dataset
;
// console.log('actNum: ', actNum);
// console.log('actNum: ', actNum);
if
(
scenestatus
==
1
){
this
.
setData
({
this
.
setData
({
actNum
,
actNum
:
num
,
});
});
}
},
},
// 头部看线索,产品切换
// 头部看线索,产品切换
changeTabIndx
(
e
)
{
changeTabIndx
(
e
)
{
...
@@ -233,27 +238,29 @@ Page({
...
@@ -233,27 +238,29 @@ Page({
}
}
},
},
gotoApply
(
e
)
{
gotoApply
(
e
)
{
let
{
type
}
=
e
.
currentTarget
.
dataset
;
if
(
type
==
"active"
)
{
let
{
userInfo
}
=
wx
.
$storage
.
get
();
let
{
userInfo
}
=
wx
.
$storage
.
get
();
let
pMerchantName
=
userInfo
.
subLoginUser
.
merchantName
let
pMerchantName
=
userInfo
.
subLoginUser
.
merchantName
;
let
pMerchantId
=
userInfo
.
subLoginUser
.
merchantId
;
let
pMerchantId
=
userInfo
.
subLoginUser
.
merchantId
;
let
sceneActive
;
let
sceneActive
;
switch
(
this
.
data
.
actNum
)
{
switch
(
this
.
data
.
actNum
)
{
case
0
:
case
0
:
sceneActive
=
1.
1
;
sceneActive
=
1
;
break
;
break
;
case
1
:
case
1
:
sceneActive
=
1.
2
;
sceneActive
=
2
;
break
;
break
;
case
2
:
case
2
:
sceneActive
=
1.
3
;
sceneActive
=
3
;
break
;
break
;
case
3
:
case
3
:
sceneActive
=
1.
4
;
sceneActive
=
4
;
break
;
break
;
}
}
// let pMerchantId = userInfo.subLoginUser.merchantId
// let pMerchantId = userInfo.subLoginUser.merchantId
let
{
type
,
item
}
=
e
.
currentTarget
.
dataset
;
let
{
item
}
=
e
.
currentTarget
.
dataset
;
// console.log("type,item: ", type, item);
// console.log("type,item: ", type, item);
const
params
=
{
const
params
=
{
merchantInfo
:
{
merchantInfo
:
{
...
@@ -265,7 +272,6 @@ Page({
...
@@ -265,7 +272,6 @@ Page({
sceneActive
,
sceneActive
,
// sceneCodeList: ['SC001', 'SC002','SC003','SC004']
// sceneCodeList: ['SC001', 'SC002','SC003','SC004']
};
};
if
(
type
==
"active"
)
{
//申请活动
//申请活动
wx
.
$router
.
go
(
"packageOutput.openBusiness"
,
params
);
wx
.
$router
.
go
(
"packageOutput.openBusiness"
,
params
);
}
else
{
}
else
{
...
@@ -490,14 +496,13 @@ Page({
...
@@ -490,14 +496,13 @@ Page({
// 看线索
// 看线索
this
.
getClueInit
();
this
.
getClueInit
();
//第一次进来储缓存,以后不再用引导图
//第一次进来储缓存,以后不再用引导图
let
firstLogin
=
wx
.
$storage
.
get
(
"firstLogin"
)
let
firstLogin
=
wx
.
$storage
.
get
(
"firstLogin"
)
;
if
(
!
firstLogin
)
{
if
(
!
firstLogin
)
{
this
.
setData
({
this
.
setData
({
guideShow
:
true
guideShow
:
true
,
})
})
;
wx
.
$storage
.
set
(
"firstLogin"
,
'firstLogin'
);
wx
.
$storage
.
set
(
"firstLogin"
,
"firstLogin"
);
}
}
},
},
//接口数据,本地数据对接
//接口数据,本地数据对接
compositionData
(
localData
,
apiData
)
{
compositionData
(
localData
,
apiData
)
{
...
...
pages/tab/index/index.scss
View file @
394a95f
...
@@ -323,7 +323,7 @@ page {
...
@@ -323,7 +323,7 @@ page {
top
:
70%
;
top
:
70%
;
width
:
40px
;
width
:
40px
;
height
:
50px
;
height
:
50px
;
border-radius
:
50%
;
//
border-radius: 50%;
z-index
:
1
;
z-index
:
1
;
}
}
/* 测算弹窗 */
/* 测算弹窗 */
...
...
pages/tab/index/index.wxml
View file @
394a95f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header">
<view class="header">
<tab tab="{{navList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<tab tab="{{navList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="right" bindtap="gotoApply">
<view class="right"
data-type="shop"
bindtap="gotoApply">
<image class="img" src="{{IMG_URL}}index/apply.png" />
<image class="img" src="{{IMG_URL}}index/apply.png" />
<view class="apply">申请业务</view>
<view class="apply">申请业务</view>
</view>
</view>
...
@@ -14,7 +14,8 @@
...
@@ -14,7 +14,8 @@
<!-- 托客户内容 -->
<!-- 托客户内容 -->
<view class="content" wx:if="{{tabIndx == 1 }}" hover-class="none" hover-stop-propagation="false">
<view class="content" wx:if="{{tabIndx == 1 }}" hover-class="none" hover-stop-propagation="false">
<view class="scene">
<view class="scene">
<view class="item-wrap {{actNum== index ? 'act':''}}" wx:if="{{item.sceneStatus == 1}}" data-num="{{index}}" bindtap="selectCar" wx:for="{{senceData}}" wx:key="name">
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<view class="item-wrap {{actNum== index ? 'act':''}}" data-num="{{index}}" data-scenestatus="{{item.sceneStatus}}" bindtap="selectCar" wx:for="{{senceData}}" wx:key="name">
<view class="item">
<view class="item">
<image class="img" src="{{item.src}}" />
<image class="img" src="{{item.src}}" />
<view class="name">{{item.name}}</view>
<view class="name">{{item.name}}</view>
...
...
pages/tab/output/components/client/client.scss
View file @
394a95f
/* pages/tab/output/components/client/client.wxss */
/* pages/tab/output/components/client/client.wxss */
.client
{
.client
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
calc
(
100vh
-
170rpx
)
;
height
:
100%
;
color
:
#323436
;
color
:
#323436
;
padding
:
16rpx
0
60rpx
;
padding
:
16rpx
0
60rpx
;
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
...
...
pages/tab/output/output.wxml
View file @
394a95f
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
class="tabContainer" />
class="tabContainer" />
<!-- <view class="">{{IMG_URL}}</view> -->
<!-- <view class="">{{IMG_URL}}</view> -->
<!-- 我的客户 -->
<!-- 我的客户 -->
<view hidden="{{tabIndx != 0}}">
<view
class="comCom"
hidden="{{tabIndx != 0}}">
<client id="client" />
<client id="client" />
</view>
</view>
<!-- 我的门店 -->
<!-- 我的门店 -->
...
...
utils/lib/wxqrcode.js
View file @
394a95f
...
@@ -1578,7 +1578,7 @@ var createImgTag = function(width, height, getPixel, alt) {
...
@@ -1578,7 +1578,7 @@ var createImgTag = function(width, height, getPixel, alt) {
base64
.
flush
();
base64
.
flush
();
var
img
=
''
;
var
img
=
''
;
img
+=
'data:image/
gif
;base64,'
;
img
+=
'data:image/
png
;base64,'
;
img
+=
base64
;
img
+=
base64
;
return
img
;
return
img
;
...
...
utils/request/request.js
View file @
394a95f
...
@@ -68,7 +68,7 @@ class Request {
...
@@ -68,7 +68,7 @@ class Request {
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
resolve
(
data
.
data
)
resolve
(
data
.
data
)
}
else
{
}
else
{
console
.
log
(
data
)
console
.
trace
(
data
)
wx
.
showToast
({
wx
.
showToast
({
title
:
message
||
'系统异常'
,
title
:
message
||
'系统异常'
,
icon
:
'none'
icon
:
'none'
...
@@ -78,7 +78,7 @@ class Request {
...
@@ -78,7 +78,7 @@ class Request {
},
},
fail
(
error
)
{
fail
(
error
)
{
wx
.
hideLoading
()
wx
.
hideLoading
()
console
.
error
(
`接口异常:`
,
error
)
console
.
log
(
`接口异常:`
,
error
)
wx
.
showToast
({
wx
.
showToast
({
title
:
'系统异常'
,
title
:
'系统异常'
,
icon
:
'error'
icon
:
'error'
...
...
utils/share.js
View file @
394a95f
...
@@ -52,7 +52,7 @@ class Share {
...
@@ -52,7 +52,7 @@ class Share {
if
(
sharePath
)
path
=
`/
${
sharePath
}
`
if
(
sharePath
)
path
=
`/
${
sharePath
}
`
path
+=
that
.
setCommonShareQuery
()
path
+=
that
.
setCommonShareQuery
()
if
(
shareQuery
)
path
+=
`&
${
shareQuery
}
`
if
(
shareQuery
)
path
+=
`&
${
shareQuery
}
`
console
.
log
(
path
)
console
.
log
(
'::'
,
path
)
if
(
!
noPageAuth
)
path
=
`/login/loading/loading?url=
${
encodeURIComponent
(
path
)}
`
if
(
!
noPageAuth
)
path
=
`/login/loading/loading?url=
${
encodeURIComponent
(
path
)}
`
if
(
shareFun
)
shareFun
()
if
(
shareFun
)
shareFun
()
if
(
shareTrackData
)
that
.
reportShareData
(
shareTrackData
)
if
(
shareTrackData
)
that
.
reportShareData
(
shareTrackData
)
...
@@ -123,16 +123,17 @@ class Share {
...
@@ -123,16 +123,17 @@ class Share {
const
{
const
{
WXUSERINFO
,
WXUSERINFO
,
USERINFO
USERINFO
}
=
this
.
getCommonData
()
}
=
this
.
getCommonData
(),
thisPage
=
wx
.
$router
.
getPageInstance
()
reportData
({
reportData
({
openId
:
WXUSERINFO
.
openId
||
''
,
openId
:
WXUSERINFO
.
openId
||
''
,
unionId
:
WXUSERINFO
.
unionId
||
''
,
unionId
:
WXUSERINFO
.
unionId
||
''
,
nickName
:
WXUSERINFO
.
nickName
||
''
,
nickName
:
WXUSERINFO
.
nickName
||
''
,
avatar
:
WXUSERINFO
.
avatarUrl
||
''
,
avatar
:
WXUSERINFO
.
avatarUrl
||
''
,
phone
:
USERINFO
.
phone
||
''
,
phone
:
USERINFO
.
phone
||
''
,
merchantId
:
USERINFO
.
merchantId
||
''
,
merchantId
:
thisPage
.
merchantId
||
USERINFO
.
merchantId
||
''
,
shareOpenId
:
WXUSERINFO
.
openId
||
''
,
shareOpenId
:
thisPage
.
shareOpenId
||
WXUSERINFO
.
openId
||
''
,
sharePhone
:
USERINFO
.
phone
||
''
,
sharePhone
:
thisPage
.
sharePhone
||
USERINFO
.
phone
||
''
,
...
shareTrackData
...
shareTrackData
})
})
}
}
...
...
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