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 f95a5c12
authored
Oct 20, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://192.168.3.233:8090/saas_plus/business-assistant
into develop
2 parents
35ec5360
c18b6fa2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
12 deletions
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/summary.js
pages/tab/index/index.js
pages/tab/output/components/client/client.scss
pages/tab/output/output.wxml
utils/lib/wxqrcode.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
View file @
f95a5c1
...
@@ -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 @
f95a5c1
...
@@ -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/tab/index/index.js
View file @
f95a5c1
...
@@ -239,16 +239,16 @@ Page({
...
@@ -239,16 +239,16 @@ Page({
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
...
...
pages/tab/output/components/client/client.scss
View file @
f95a5c1
/* 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 @
f95a5c1
...
@@ -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 @
f95a5c1
...
@@ -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
;
...
...
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