Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
6f8b4c1c
Commit
6f8b4c1c
authored
Oct 25, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zyw-7.2.0' into 'dev_7.2.0'
Feature zyw 7.2.0 See merge request
!176
parents
d1c5bc7b
d5778baf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
8 deletions
+31
-8
sharePoster.js
src/component/sharePoster/sharePoster.js
+28
-5
extendProduct.js
src/pages/extendProduct/extendProduct.js
+1
-1
extendProduct.wxml
src/pages/extendProduct/extendProduct.wxml
+2
-2
No files found.
src/component/sharePoster/sharePoster.js
View file @
6f8b4c1c
...
...
@@ -11,6 +11,10 @@ Component({
type
:
String
,
value
:
''
},
cardExplain
:{
//文案
type
:
String
,
value
:
''
},
productDesc
:
{
// 产品描述
type
:
String
,
value
:
''
...
...
@@ -181,13 +185,32 @@ Component({
// title
console
.
log
(
'productDesc'
,
that
.
data
.
productDesc
)
if
(
that
.
data
.
productDesc
){
ctx
.
setFontSize
(
12
);
ctx
.
setFillStyle
(
'#333333'
);
ctx
.
setTextAlign
(
'left'
);
ctx
.
fillText
(
that
.
data
.
productDesc
,
61
,
300
);
ctx
.
setFontSize
(
12
);
ctx
.
setFillStyle
(
'#333333'
);
ctx
.
setTextAlign
(
'left'
);
ctx
.
fillText
(
that
.
data
.
productDesc
,
61
,
300
);
}
else
{
let
explain
=
JSON
.
parse
(
that
.
data
.
cardExplain
)
if
(
explain
[
0
]){
ctx
.
setFontSize
(
12
);
ctx
.
setFillStyle
(
'#333333'
);
ctx
.
setTextAlign
(
'left'
);
ctx
.
fillText
(
explain
[
0
],
61
,
300
);
}
if
(
explain
[
1
])
{
ctx
.
setFontSize
(
12
);
ctx
.
setFillStyle
(
'#333333'
);
ctx
.
setTextAlign
(
'left'
);
ctx
.
fillText
(
explain
[
1
],
61
,
314
);
}
if
(
explain
[
2
])
{
ctx
.
setFontSize
(
12
);
ctx
.
setFillStyle
(
'#333333'
);
ctx
.
setTextAlign
(
'left'
);
ctx
.
fillText
(
explain
[
2
],
61
,
326
);
}
}
//产品金额
// if (that.data.price || that.data.price == 0) {
// ctx.setFontSize(25);
...
...
src/pages/extendProduct/extendProduct.js
View file @
6f8b4c1c
...
...
@@ -201,7 +201,7 @@ wxService.page({
}
else
{
this
.
setData
({
cardTitle
:
this
.
data
.
explain
?
this
.
data
.
explain
:
this
.
data
.
proData
[
0
].
productName
,
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
,
cardUrl
:
this
.
data
.
proData
[
0
].
productImgUrl
||
'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'
,
pagePath
:
path
,
scene
:
scene
});
...
...
src/pages/extendProduct/extendProduct.wxml
View file @
6f8b4c1c
...
...
@@ -50,7 +50,7 @@
<view class="buy-product-content">
<view class="buy-list" wx:if="{{extendProList.length}}" wx:for="{{extendProList}}" wx:key="{{index}}">
<view class="prod-img">
<image src="{{item.productImgUrl}}" />
<image src="{{item.productImgUrl
|| 'https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/product_defalut.jpg'
}}" />
</view>
<view class="prod-info">
<view class="prod-name">{{item.productName}}</view>
...
...
@@ -185,7 +185,7 @@
page-path="{{pagePath}}"
scene="{{scene}}"
/>
<share-poster id="getPoster" bindmyevent="myEventListener" avater="{{cardUrl}}"
productDesc
="{{cardTitle}}" userAvatar="https://xiedemo.oss-cn-shanghai.aliyuncs.com/logo_head.jpg" bind:showMiniCard="_showMiniCard" pagePath="{{pagePath}}" code-img="{{codeImg}}"></share-poster>
<share-poster id="getPoster" bindmyevent="myEventListener" avater="{{cardUrl}}"
cardExplain
="{{cardTitle}}" userAvatar="https://xiedemo.oss-cn-shanghai.aliyuncs.com/logo_head.jpg" bind:showMiniCard="_showMiniCard" pagePath="{{pagePath}}" code-img="{{codeImg}}"></share-poster>
<!--goHome-->
<go-home/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment