Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
48404a3c
Commit
48404a3c
authored
May 21, 2020
by
Junling Bu
Browse files
chore[litemall-wx]: 海报
parent
455d1b12
Changes
3
Show whitespace changes
Inline
Side-by-side
litemall-db/sql/litemall_table.sql
View file @
48404a3c
...
...
@@ -351,7 +351,7 @@ CREATE TABLE `litemall_goods` (
`is_on_sale`
tinyint
(
1
)
DEFAULT
'1'
COMMENT
'是否上架'
,
`sort_order`
smallint
(
4
)
DEFAULT
'100'
,
`pic_url`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'商品页面商品图片'
,
`share_url`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'商品分享
朋友圈图片
'
,
`share_url`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'商品分享
海报
'
,
`is_new`
tinyint
(
1
)
DEFAULT
'0'
COMMENT
'是否新品首发,如果设置则可以在新品首发页面展示'
,
`is_hot`
tinyint
(
1
)
DEFAULT
'0'
COMMENT
'是否人气推荐,如果设置则可以在人气推荐页面展示'
,
`unit`
varchar
(
31
)
DEFAULT
'’件‘'
COMMENT
'商品单位,例如件、盒'
,
...
...
litemall-wx/pages/goods/goods.js
View file @
48404a3c
...
...
@@ -85,8 +85,8 @@ Page({
filePath
:
res
.
tempFilePath
,
success
:
function
(
res
)
{
wx
.
showModal
({
title
:
'
存图
成功
'
,
content
:
'
图片
成功保存到相册
了
,可以分享到朋友圈了
'
,
title
:
'
生成海报
成功
'
,
content
:
'
海报已
成功保存到相册,可以分享到朋友圈了
'
,
showCancel
:
false
,
confirmText
:
'
好的
'
,
confirmColor
:
'
#a78845
'
,
...
...
litemall-wx/pages/goods/goods.wxml
View file @
48404a3c
...
...
@@ -21,11 +21,11 @@
</button>
<button class="savesharebtn" open-type="openSetting" bindopensetting="handleSetting" wx:if="{{(!isGroupon) && (!canWrite)}}" >
<image class='sharebtn_image' src='/static/images/friend.png'></image>
<view class='sharebtn_text'>
发朋友圈
</view>
<view class='sharebtn_text'>
生成海报
</view>
</button>
<button class="savesharebtn" bindtap="saveShare" wx:if="{{!isGroupon && canWrite}}">
<image class='sharebtn_image' src='/static/images/friend.png'></image>
<view class='sharebtn_text'>
发朋友圈
</view>
<view class='sharebtn_text'>
生成海报
</view>
</button>
</view>
</view>
...
...
Write
Preview
Supports
Markdown
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