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 9f0a0a1e
authored
Oct 27, 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
0df94738
63e52d30
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
47 deletions
components/Tab/Tab.wxml
login/loading/loading.js
packageOutput/pages/summary/components/CrowdfundPoster/CrowdfundPoster.js
pages/checkProduct/checkProduct.js
pages/tab/index/index.wxml
utils/Draw.js
components/Tab/Tab.wxml
View file @
9f0a0a1
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<view class="text text-center" style="{{tabHeight ? 'height: 60rpx;' : ''}}">
<view class="text text-center" style="{{tabHeight ? 'height: 60rpx;' : ''}}">
{{item}}
{{item}}
</view>
</view>
<view class="line" style="
lineStyle" style="
{{tabHeight ? 'margin-top: 6rpx;' : ''}}" />
<view class="line" style="{{tabHeight ? 'margin-top: 6rpx;' : ''}}" />
<!-- -->
<!-- -->
<view wx:if="{{filterUtils.hasRedpoint(unreadClueCount)}}" class="redpoint" />
<view wx:if="{{filterUtils.hasRedpoint(unreadClueCount)}}" class="redpoint" />
</view>
</view>
...
...
login/loading/loading.js
View file @
9f0a0a1
...
@@ -84,7 +84,7 @@ Page({
...
@@ -84,7 +84,7 @@ Page({
path
=
setRouteData
(
targetPath
).
url
path
=
setRouteData
(
targetPath
).
url
obj
=
setRouteData
(
targetPath
).
obj
obj
=
setRouteData
(
targetPath
).
obj
}
}
wx
.
$router
.
re
directTo
(
path
,
obj
)
wx
.
$router
.
re
Launch
(
path
,
obj
)
}
else
this
.
autoLogin
(
obj
)
}
else
this
.
autoLogin
(
obj
)
})
})
}
else
this
.
autoLogin
(
obj
)
}
else
this
.
autoLogin
(
obj
)
...
...
packageOutput/pages/summary/components/CrowdfundPoster/CrowdfundPoster.js
View file @
9f0a0a1
...
@@ -70,23 +70,21 @@ Component({
...
@@ -70,23 +70,21 @@ Component({
fontWeight
:
500
fontWeight
:
500
},
},
{
{
x
:
1
2
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
9
,
x
:
1
4
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
9
,
y
:
3
8
,
y
:
3
7
,
fontSize
:
10
,
fontSize
:
10
,
color
:
'#4466F0'
,
color
:
'#4466F0'
,
text
:
'众筹'
,
text
:
'众筹'
,
textBaseline
:
'top'
textBaseline
:
'top'
,
}
border
:
{
],
lineList
:
[{
startX
:
12
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
4
,
startY
:
38
,
width
:
1
,
width
:
1
,
endX
:
12
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
4
,
color
:
'#4466F0'
,
endY
:
54
,
radius
:
2
,
color
:
'#8FA5FF'
,
padding
:
[
2
,
5
]
,
opacity
:
0.5
opacity
:
0.5
}]
}
}
],
})
})
console
.
log
(
res
)
console
.
log
(
res
)
wx
.
hideLoading
()
wx
.
hideLoading
()
...
...
pages/checkProduct/checkProduct.js
View file @
9f0a0a1
...
@@ -348,7 +348,7 @@ Page({
...
@@ -348,7 +348,7 @@ Page({
},
},
});
});
}
}
_this.modelcloseFn();
//
_this.modelcloseFn();
wx.hideLoading()
wx.hideLoading()
},
},
});
});
...
...
pages/tab/index/index.wxml
View file @
9f0a0a1
...
@@ -141,6 +141,7 @@
...
@@ -141,6 +141,7 @@
hover-stop-propagation="false"
hover-stop-propagation="false"
data-type="active"
data-type="active"
data-item="{{item}}"
data-item="{{item}}"
wx:if="{{item.applyStatus == 0}}"
bindtap="gotoApply">
bindtap="gotoApply">
开通活动
开通活动
</view>
</view>
...
...
utils/Draw.js
View file @
9f0a0a1
...
@@ -145,39 +145,13 @@ class Draw {
...
@@ -145,39 +145,13 @@ class Draw {
this
[
_ctx_
].
textAlign
=
textAlign
this
[
_ctx_
].
textAlign
=
textAlign
this
[
_ctx_
].
lineWidth
=
this
.
toRpx
(
2
)
this
[
_ctx_
].
lineWidth
=
this
.
toRpx
(
2
)
let
text_width
=
this
.
getTextWidth
(
text
)
let
text_width
=
this
.
getTextWidth
(
text
)
if
(
textParams
.
border
)
{
if
(
textParams
.
border
)
this
.
drawBorder
({
let
boxX
=
textParams
.
x
-
4.5
,
text
,
boxY
=
textParams
.
y
-
0.5
,
x
:
textParams
.
x
,
boxWidth
=
text_width
+
9
,
y
:
textParams
.
y
,
boxHeight
=
lineHeight
+
4
fontSize
:
textParams
.
fontSize
||
12
,
if
(
boxWidth
>
width
-
fontX
-
this
.
getTextWidth
(
'…'
)
-
fontSize
)
{
...
textParams
.
border
boxWidth
=
width
-
boxX
+
9
}
this
.
drawFill
({
x
:
boxX
,
y
:
boxY
,
width
:
boxWidth
,
height
:
boxHeight
,
color
:
textParams
.
border
})
}
if
(
textParams
.
background
)
{
let
boxX
=
textParams
.
x
-
4
,
boxY
=
textParams
.
y
,
boxWidth
=
text_width
+
8
,
boxHeight
=
lineHeight
+
3
if
(
boxWidth
>
width
-
fontX
-
this
.
getTextWidth
(
'…'
)
-
fontSize
)
{
boxWidth
=
width
-
boxX
+
8
}
this
.
drawFill
({
x
:
boxX
,
y
:
boxY
,
width
:
boxWidth
,
height
:
boxHeight
,
color
:
textParams
.
background
})
})
}
const
drawOneLineText
=
()
=>
{
const
drawOneLineText
=
()
=>
{
let
textArr
=
text
.
toString
().
split
(
''
),
let
textArr
=
text
.
toString
().
split
(
''
),
newText
=
''
,
newText
=
''
,
...
@@ -258,6 +232,26 @@ class Draw {
...
@@ -258,6 +232,26 @@ class Draw {
}
else
drawOneLineText
()
}
else
drawOneLineText
()
this
[
_ctx_
].
stroke
()
this
[
_ctx_
].
stroke
()
}
}
drawBorder
(
params
)
{
let
{
x
,
y
,
text
,
color
,
width
,
radius
,
opacity
,
padding
,
fontSize
}
=
params
console
.
log
(
params
)
let
topX
,
topY
,
rightX
,
rightY
,
bottomX
,
bottomY
,
leftX
,
leftY
,
paddingX
,
paddingY
// if(padding && padding.length>1)
if
(
radius
)
{
}
}
drawLine
(
lineParams
,
callback
)
{
drawLine
(
lineParams
,
callback
)
{
this
[
_ctx_
].
beginPath
()
this
[
_ctx_
].
beginPath
()
let
{
let
{
...
...
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