Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
31759796
Commit
31759796
authored
May 15, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
b67b8eac
a6fc3c42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
661 additions
and
1 deletion
+661
-1
RB_Miniprogram_Template_Extend.cs
.../Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
+649
-1
MiniprogramTemplateModule.cs
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
+12
-0
No files found.
Mall.Model/Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
View file @
31759796
...
...
@@ -1038,7 +1038,7 @@ namespace Mall.Model.Extend.MarketingCenter
/// 链接
/// </summary>
public
timerLink
link
{
get
;
set
;
}
}
/// <summary>
...
...
@@ -1056,4 +1056,652 @@ namespace Mall.Model.Extend.MarketingCenter
/// </summary>
public
string
openType
{
get
;
set
;
}
}
/// <summary>
/// 拼团插件
/// </summary>
public
class
pintuanItem
{
public
string
buttonColor
{
get
;
set
;
}
public
int
listStyle
{
get
;
set
;
}
public
int
textStyle
{
get
;
set
;
}
public
int
fill
{
get
;
set
;
}
public
string
goodsCoverProportion
{
get
;
set
;
}
public
int
goodsStyle
{
get
;
set
;
}
public
bool
showGoodsName
{
get
;
set
;
}
public
bool
showBuyBtn
{
get
;
set
;
}
public
int
buyBtnStyle
{
get
;
set
;
}
/// <summary>
/// 去拼团
/// </summary>
public
string
buyBtnText
{
get
;
set
;
}
public
bool
showGoodsTag
{
get
;
set
;
}
public
bool
customizeGoodsTag
{
get
;
set
;
}
public
string
goodsTagPicUrl
{
get
;
set
;
}
public
bool
showImg
{
get
;
set
;
}
/// <summary>
/// backgroundColor
/// </summary>
public
string
backgroundColor
{
get
;
set
;
}
/// <summary>
/// backgroundPicUrl
/// </summary>
public
string
backgroundPicUrl
{
get
;
set
;
}
public
int
position
{
get
;
set
;
}
public
int
mode
{
get
;
set
;
}
public
int
backgroundHeight
{
get
;
set
;
}
public
int
backgroundWidth
{
get
;
set
;
}
public
List
<
pingtuanGoodsItem
>
list
{
get
;
set
;
}
}
public
class
pingtuanGoodsItem
{
public
int
id
{
get
;
set
;
}
/// <summary>
/// 演示商品名称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// CoverImage
/// </summary>
public
string
CoverImage
{
get
;
set
;
}
/// <summary>
/// price
/// </summary>
public
decimal
price
{
get
;
set
;
}
/// <summary>
/// pintuanPrice
/// </summary>
public
decimal
pintuanPrice
{
get
;
set
;
}
public
int
peopleNum
{
get
;
set
;
}
}
/// <summary>
/// 预约插件
/// </summary>
public
class
bookingItem
{
public
string
buttonColor
{
get
;
set
;
}
public
List
<
bookingGoodsItem
>
list
{
get
;
set
;
}
public
int
listStyle
{
get
;
set
;
}
public
int
fill
{
get
;
set
;
}
public
string
goodsCoverProportion
{
get
;
set
;
}
public
int
goodsStyle
{
get
;
set
;
}
public
int
textStyle
{
get
;
set
;
}
public
bool
showGoodsName
{
get
;
set
;
}
public
bool
showBuyBtn
{
get
;
set
;
}
public
int
buyBtnStyle
{
get
;
set
;
}
/// <summary>
/// 预约
/// </summary>
public
string
buyBtnText
{
get
;
set
;
}
public
bool
showGoodsTag
{
get
;
set
;
}
public
bool
customizeGoodsTag
{
get
;
set
;
}
/// <summary>
/// goodsTagPicUrl
/// </summary>
public
string
goodsTagPicUrl
{
get
;
set
;
}
public
bool
showImg
{
get
;
set
;
}
/// <summary>
/// backgroundColor
/// </summary>
public
string
backgroundColor
{
get
;
set
;
}
/// <summary>
/// backgroundPicUrl
/// </summary>
public
string
backgroundPicUrl
{
get
;
set
;
}
public
int
position
{
get
;
set
;
}
public
int
mode
{
get
;
set
;
}
public
int
backgroundHeight
{
get
;
set
;
}
public
int
backgroundWidth
{
get
;
set
;
}
}
/// <summary>
/// 预约商品详情
/// </summary>
public
class
bookingGoodsItem
{
public
int
id
{
get
;
set
;
}
/// <summary>
/// 演示商品名称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// CoverImage
/// </summary>
public
string
CoverImage
{
get
;
set
;
}
/// <summary>
/// price
/// </summary>
public
decimal
price
{
get
;
set
;
}
}
/// <summary>
/// 砍价插件
/// </summary>
public
class
bargainItem
{
public
string
buttonColor
{
get
;
set
;
}
public
List
<
bargainGoodsItem
>
list
{
get
;
set
;
}
public
int
listStyle
{
get
;
set
;
}
public
int
fill
{
get
;
set
;
}
public
string
goodsCoverProportion
{
get
;
set
;
}
public
int
goodsStyle
{
get
;
set
;
}
public
int
textStyle
{
get
;
set
;
}
public
bool
showGoodsName
{
get
;
set
;
}
public
bool
showBuyBtn
{
get
;
set
;
}
public
int
buyBtnStyle
{
get
;
set
;
}
/// <summary>
/// 去参与
/// </summary>
public
string
buyBtnText
{
get
;
set
;
}
public
bool
showGoodsTag
{
get
;
set
;
}
public
bool
customizeGoodsTag
{
get
;
set
;
}
/// <summary>
/// goodsTagPicUrl
/// </summary>
public
string
goodsTagPicUrl
{
get
;
set
;
}
public
bool
showImg
{
get
;
set
;
}
/// <summary>
/// backgroundColor
/// </summary>
public
string
backgroundColor
{
get
;
set
;
}
/// <summary>
/// backgroundPicUrl
/// </summary>
public
string
backgroundPicUrl
{
get
;
set
;
}
public
int
position
{
get
;
set
;
}
/// <summary>
/// mode
/// </summary>
public
int
mode
{
get
;
set
;
}
/// <summary>
/// backgroundHeight
/// </summary>
public
int
backgroundHeight
{
get
;
set
;
}
/// <summary>
/// backgroundWidth
/// </summary>
public
int
backgroundWidth
{
get
;
set
;
}
}
/// <summary>
/// 砍价商品详情
/// </summary>
public
class
bargainGoodsItem
{
public
int
id
{
get
;
set
;
}
/// <summary>
/// 演示商品名称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// CoverImage
/// </summary>
public
string
CoverImage
{
get
;
set
;
}
public
decimal
price
{
get
;
set
;
}
public
decimal
originalPrice
{
get
;
set
;
}
}
/// <summary>
/// 积分商城插件
/// </summary>
public
class
integralmallItem
{
public
bool
showCoupon
{
get
;
set
;
}
public
bool
showGoods
{
get
;
set
;
}
public
string
couponColor
{
get
;
set
;
}
public
string
couponPicUrl
{
get
;
set
;
}
public
string
buttonColor
{
get
;
set
;
}
public
int
listStyle
{
get
;
set
;
}
public
int
fill
{
get
;
set
;
}
public
string
goodsCoverProportion
{
get
;
set
;
}
public
int
goodsStyle
{
get
;
set
;
}
public
int
textStyle
{
get
;
set
;
}
public
bool
showGoodsName
{
get
;
set
;
}
public
bool
showBuyBtn
{
get
;
set
;
}
public
int
buyBtnStyle
{
get
;
set
;
}
public
string
buyBtnText
{
get
;
set
;
}
public
bool
showGoodsTag
{
get
;
set
;
}
public
bool
customizeGoodsTag
{
get
;
set
;
}
public
string
goodsTagPicUrl
{
get
;
set
;
}
public
bool
showImg
{
get
;
set
;
}
public
string
backgroundColor
{
get
;
set
;
}
public
string
backgroundPicUrl
{
get
;
set
;
}
public
int
position
{
get
;
set
;
}
public
int
mode
{
get
;
set
;
}
public
int
backgroundHeight
{
get
;
set
;
}
public
int
backgroundWidth
{
get
;
set
;
}
public
List
<
integralmallGoodsItem
>
list
{
get
;
set
;
}
}
/// <summary>
/// 积分商城商品详情
/// </summary>
public
class
integralmallGoodsItem
{
public
int
id
{
get
;
set
;
}
/// <summary>
/// 演示商品名称
/// </summary>
public
string
name
{
get
;
set
;
}
public
string
CoverImage
{
get
;
set
;
}
public
decimal
price
{
get
;
set
;
}
public
decimal
originalPrice
{
get
;
set
;
}
/// <summary>
/// 积分
/// </summary>
public
int
integral
{
get
;
set
;
}
}
/// <summary>
/// 抽奖插件
/// </summary>
public
class
lotteryItem
{
public
string
buttonColor
{
get
;
set
;
}
public
int
listStyle
{
get
;
set
;
}
public
int
fill
{
get
;
set
;
}
public
string
goodsCoverProportion
{
get
;
set
;
}
public
int
goodsStyle
{
get
;
set
;
}
public
int
textStyle
{
get
;
set
;
}
public
bool
showGoodsName
{
get
;
set
;
}
public
bool
showBuyBtn
{
get
;
set
;
}
public
int
buyBtnStyle
{
get
;
set
;
}
/// <summary>
/// 去参与
/// </summary>
public
string
buyBtnText
{
get
;
set
;
}
public
bool
showGoodsTag
{
get
;
set
;
}
public
bool
customizeGoodsTag
{
get
;
set
;
}
/// <summary>
/// goodsTagPicUrl
/// </summary>
public
string
goodsTagPicUrl
{
get
;
set
;
}
public
bool
showImg
{
get
;
set
;
}
/// <summary>
/// backgroundColor
/// </summary>
public
string
backgroundColor
{
get
;
set
;
}
/// <summary>
/// backgroundPicUrl
/// </summary>
public
string
backgroundPicUrl
{
get
;
set
;
}
public
int
position
{
get
;
set
;
}
public
int
mode
{
get
;
set
;
}
public
int
backgroundHeight
{
get
;
set
;
}
public
int
backgroundWidth
{
get
;
set
;
}
public
List
<
bargainGoodsItem
>
list
{
get
;
set
;
}
}
/// <summary>
/// 预售
/// </summary>
public
class
advanceItem
{
public
string
buttonColor
{
get
;
set
;
}
public
List
<
advanceGoodsItem
>
list
{
get
;
set
;
}
public
int
listStyle
{
get
;
set
;
}
public
int
fill
{
get
;
set
;
}
public
string
goodsCoverProportion
{
get
;
set
;
}
public
int
goodsStyle
{
get
;
set
;
}
public
int
textStyle
{
get
;
set
;
}
public
bool
showGoodsName
{
get
;
set
;
}
public
bool
showBuyBtn
{
get
;
set
;
}
public
int
buyBtnStyle
{
get
;
set
;
}
/// <summary>
/// 抢购
/// </summary>
public
string
buyBtnText
{
get
;
set
;
}
public
bool
showGoodsTag
{
get
;
set
;
}
public
bool
customizeGoodsTag
{
get
;
set
;
}
public
string
goodsTagPicUrl
{
get
;
set
;
}
public
int
goodsIndex
{
get
;
set
;
}
public
int
start_x
{
get
;
set
;
}
public
bool
showImg
{
get
;
set
;
}
public
string
backgroundColor
{
get
;
set
;
}
public
string
backgroundPicUrl
{
get
;
set
;
}
public
int
position
{
get
;
set
;
}
public
int
mode
{
get
;
set
;
}
public
int
backgroundHeight
{
get
;
set
;
}
public
int
backgroundWidth
{
get
;
set
;
}
}
public
class
advanceGoodsItem
{
public
int
id
{
get
;
set
;
}
/// <summary>
/// 演示商品名称
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// CoverImage
/// </summary>
public
string
CoverImage
{
get
;
set
;
}
public
decimal
price
{
get
;
set
;
}
public
decimal
originalPrice
{
get
;
set
;
}
public
string
deposit
{
get
;
set
;
}
public
string
swell_deposit
{
get
;
set
;
}
}
/// <summary>
/// 超级会员卡
/// </summary>
public
class
vipcardItem
{
public
string
background
{
get
;
set
;
}
public
bool
usePluginConfig
{
get
;
set
;
}
public
int
top_bottom_padding
{
get
;
set
;
}
public
string
buy_bg
{
get
;
set
;
}
public
string
renew_bg
{
get
;
set
;
}
public
string
buy_big_color
{
get
;
set
;
}
public
string
buy_small_color
{
get
;
set
;
}
public
string
buy_btn_color
{
get
;
set
;
}
public
string
buy_btn_bg_color
{
get
;
set
;
}
public
string
buy_big
{
get
;
set
;
}
public
string
buy_small
{
get
;
set
;
}
public
string
buy_btn_text
{
get
;
set
;
}
public
string
renew_text_color
{
get
;
set
;
}
public
string
renew_btn_bg_color
{
get
;
set
;
}
public
string
renew_text
{
get
;
set
;
}
}
/// <summary>
/// 直播组件
/// </summary>
public
class
liveItem
{
public
string
background
{
get
;
set
;
}
public
bool
is_show_goods
{
get
;
set
;
}
public
int
style_type
{
get
;
set
;
}
public
int
number
{
get
;
set
;
}
}
/// <summary>
/// 空白块组件
/// </summary>
public
class
emptyItem
{
public
string
background
{
get
;
set
;
}
public
int
height
{
get
;
set
;
}
}
/// <summary>
/// 流量主广告
/// </summary>
public
class
adItem
{
public
string
id
{
get
;
set
;
}
public
string
type
{
get
;
set
;
}
public
string
pic_url
{
get
;
set
;
}
public
string
video
{
get
;
set
;
}
public
string
award_type
{
get
;
set
;
}
public
string
award_num
{
get
;
set
;
}
public
string
award_limit_type
{
get
;
set
;
}
public
int
award_limit
{
get
;
set
;
}
public
List
<
adDetailsItem
>
award_coupons
{
get
;
set
;
}
}
/// <summary>
/// 流量广告详情
/// </summary>
public
class
adDetailsItem
{
public
int
send_num
{
get
;
set
;
}
/// <summary>
/// 优惠券
/// </summary>
public
string
name
{
get
;
set
;
}
/// <summary>
/// 优惠券Id
/// </summary>
public
int
coupon_id
{
get
;
set
;
}
}
/// <summary>
/// 弹窗广告
/// </summary>
public
class
modalItem
{
public
bool
opened
{
get
;
set
;
}
public
int
times
{
get
;
set
;
}
public
List
<
modalDetailsItem
>
list
{
get
;
set
;
}
}
public
class
modalDetailsItem
{
public
string
picUrl
{
get
;
set
;
}
public
modalLinkItem
link
{
get
;
set
;
}
}
public
class
modalLinkItem
{
public
string
url
{
get
;
set
;
}
public
string
openType
{
get
;
set
;
}
}
/// <summary>
/// 导航项
/// </summary>
public
class
quicknavDetailsItem
{
public
bool
opened
{
get
;
set
;
}
public
string
picUrl
{
get
;
set
;
}
public
string
number
{
get
;
set
;
}
public
string
appId
{
get
;
set
;
}
public
string
page
{
get
;
set
;
}
public
string
address
{
get
;
set
;
}
public
string
location
{
get
;
set
;
}
public
string
open_type
{
get
;
set
;
}
public
string
link_url
{
get
;
set
;
}
public
string
key
{
get
;
set
;
}
public
string
@params
{
get
;
set
;
}
}
/// <summary>
/// 快捷导航
/// </summary>
public
class
quicknavItem
{
public
int
navSwitch
{
get
;
set
;
}
public
bool
useMallConfig
{
get
;
set
;
}
public
int
navStyle
{
get
;
set
;
}
public
string
closedPicUrl
{
get
;
set
;
}
public
string
openedPicUrl
{
get
;
set
;
}
public
quicknavDetailsItem
home
{
get
;
set
;
}
public
quicknavDetailsItem
customerService
{
get
;
set
;
}
public
quicknavDetailsItem
tel
{
get
;
set
;
}
public
quicknavDetailsItem
web
{
get
;
set
;
}
public
quicknavDetailsItem
mApp
{
get
;
set
;
}
public
quicknavDetailsItem
mapNav
{
get
;
set
;
}
public
quicknavDetailsItem
customize
{
get
;
set
;
}
}
}
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
View file @
31759796
...
...
@@ -115,6 +115,18 @@ namespace Mall.Module.MarketingCenter
case
"image-text"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
imagetextItem
>(
item
.
data
.
ToString
());
break
;
case
"coupon"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
couponItem
>(
item
.
data
.
ToString
());
break
;
case
"timer"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
timerItem
>(
item
.
data
.
ToString
());
break
;
case
"pintuan"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
pintuanItem
>(
item
.
data
.
ToString
());
break
;
case
"booking"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
bookingItem
>(
item
.
data
.
ToString
());
break
;
case
"bargain"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
bargainItem
>(
item
.
data
.
ToString
());
break
;
case
"integral-mall"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
integralmallItem
>(
item
.
data
.
ToString
());
break
;
case
"lottery"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
lotteryItem
>(
item
.
data
.
ToString
());
break
;
case
"advance"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
advanceItem
>(
item
.
data
.
ToString
());
break
;
case
"vip-card"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
vipcardItem
>(
item
.
data
.
ToString
());
break
;
case
"live"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
liveItem
>(
item
.
data
.
ToString
());
break
;
case
"empty"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
emptyItem
>(
item
.
data
.
ToString
());
break
;
case
"ad"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
adItem
>(
item
.
data
.
ToString
());
break
;
case
"modal"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
modalItem
>(
item
.
data
.
ToString
());
break
;
case
"quick-nav"
:
item
.
data
=
JsonHelper
.
DeserializeObject
<
quicknavItem
>(
item
.
data
.
ToString
());
break
;
}
}
}
...
...
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