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
e2f36d73
Commit
e2f36d73
authored
Sep 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
fda203e5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
117 additions
and
77 deletions
+117
-77
RB_Miniprogram_Template_Extend.cs
.../Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
+2
-0
MiniprogramTemplateModule.cs
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
+2
-9
CompanyModule.cs
Mall.Module.TradePavilion/CompanyModule.cs
+10
-7
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+2
-12
MallHelper.cs
Mall.WebApi/Controllers/Mall/MallHelper.cs
+21
-27
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+24
-20
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+56
-1
ApiFilterAttribute.cs
Mall.WebApi/Filter/ApiFilterAttribute.cs
+0
-1
No files found.
Mall.Model/Extend/MarketingCenter/RB_Miniprogram_Template_Extend.cs
View file @
e2f36d73
...
...
@@ -3351,7 +3351,9 @@ namespace Mall.Model.Extend.MarketingCenter
/// <summary>
/// 购买按钮颜色
/// </summary>
#pragma warning disable IDE1006 // 命名样式
public
string
buttonColor
{
get
;
set
;
}
#pragma warning restore IDE1006 // 命名样式
/// <summary>
/// 显示评分 ld 2020-10-13
...
...
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
View file @
e2f36d73
...
...
@@ -776,10 +776,7 @@ namespace Mall.Module.MarketingCenter
}
else
if
(
miaiUserItem
.
addUserType
==
2
)
{
long
rowCount
=
0
;
var
tempGoodsList
=
miai_BaseInfoRepository
.
GetFirstBaseInfoPageList
(
1
,
miaiUserItem
.
goodsLength
,
out
rowCount
,
new
Model
.
Extend
.
Miai
.
RB_MiAi_BaseInfo_Extend
var
tempGoodsList
=
miai_BaseInfoRepository
.
GetFirstBaseInfoPageList
(
1
,
miaiUserItem
.
goodsLength
,
out
long
rowCount
,
new
Model
.
Extend
.
Miai
.
RB_MiAi_BaseInfo_Extend
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
...
...
@@ -815,14 +812,10 @@ namespace Mall.Module.MarketingCenter
}
}
miaiUserItem
.
list
=
newGoodsList
;
}
else
if
(
miaiUserItem
.
addUserType
==
3
)
{
long
rowCount
=
0
;
var
tempGoodsList
=
miai_BaseInfoRepository
.
GetFirstBaseInfoPageList
(
1
,
miaiUserItem
.
goodsLength
,
out
rowCount
,
new
Model
.
Extend
.
Miai
.
RB_MiAi_BaseInfo_Extend
var
tempGoodsList
=
miai_BaseInfoRepository
.
GetFirstBaseInfoPageList
(
1
,
miaiUserItem
.
goodsLength
,
out
long
rowCount
,
new
Model
.
Extend
.
Miai
.
RB_MiAi_BaseInfo_Extend
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
...
...
Mall.Module.TradePavilion/CompanyModule.cs
View file @
e2f36d73
...
...
@@ -288,11 +288,12 @@ namespace Mall.Module.TradePavilion
}
else
{
model
.
BrandModel
=
new
RB_BrandApplyFor_Extend
();
model
.
BrandModel
.
BannerList
=
new
List
<
string
>();
model
.
BrandModel
.
CustomerTypeInfo
=
new
List
<
string
>();
model
.
BrandModel
=
new
RB_BrandApplyFor_Extend
{
BannerList
=
new
List
<
string
>(),
CustomerTypeInfo
=
new
List
<
string
>()
};
}
}
else
{
...
...
@@ -346,9 +347,11 @@ namespace Mall.Module.TradePavilion
}
else
{
model
.
BrandModel
=
new
RB_BrandApplyFor_Extend
();
model
.
BrandModel
.
BannerList
=
new
List
<
string
>();
model
.
BrandModel
.
CustomerTypeInfo
=
new
List
<
string
>();
model
.
BrandModel
=
new
RB_BrandApplyFor_Extend
{
BannerList
=
new
List
<
string
>(),
CustomerTypeInfo
=
new
List
<
string
>()
};
}
}
}
...
...
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
e2f36d73
...
...
@@ -35,16 +35,10 @@ namespace Mall.WebApi.Controllers.MallBase
public
class
MallController
:
BaseController
{
/// <summary>
/// 商户账号处理类
/// </summary>
private
readonly
Module
.
User
.
TenantModule
TenantModule
=
new
Module
.
User
.
TenantModule
();
/// <summary>
/// 商户小程序处理类
/// </summary>
private
readonly
Module
.
User
.
MiniProgramModule
programModule
=
new
Module
.
User
.
MiniProgramModule
();
private
readonly
MiniProgramModule
programModule
=
new
MiniProgramModule
();
/// <summary>
/// 自定义页面处理类
...
...
@@ -61,18 +55,15 @@ namespace Mall.WebApi.Controllers.MallBase
/// </summary>
private
readonly
ProductModule
productModule
=
new
ProductModule
();
/// <summary>
/// 用户处理类
/// </summary>
private
readonly
UserModule
userModule
=
new
UserModule
();
private
readonly
Module
.
MarketingCenter
.
CouponModule
couponModule
=
new
Module
.
MarketingCenter
.
CouponModule
();
/// <summary>
/// 小程序页面处理类
/// </summary>
private
Module
.
User
.
MiniProgramPageModule
programPageModule
=
new
Module
.
User
.
MiniProgramPageModule
();
private
readonly
MiniProgramPageModule
programPageModule
=
new
MiniProgramPageModule
();
/// <summary>
/// 小程序首页
...
...
@@ -492,7 +483,6 @@ namespace Mall.WebApi.Controllers.MallBase
[
AllowAnonymous
]
public
ApiResult
GetAppConfig
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
string
MiniAppId
=
""
;
try
{
...
...
Mall.WebApi/Controllers/Mall/MallHelper.cs
View file @
e2f36d73
...
...
@@ -33,85 +33,85 @@ namespace Mall.WebApi.Controllers
/// <summary>
/// 产品处理类
/// </summary>
private
static
ProductModule
productModule
=
new
ProductModule
();
private
static
readonly
ProductModule
productModule
=
new
ProductModule
();
/// <summary>
/// 导航图标处理类
/// </summary>
private
static
MiniProgramNaviconModule
programNaviconModule
=
new
MiniProgramNaviconModule
();
private
static
readonly
MiniProgramNaviconModule
programNaviconModule
=
new
MiniProgramNaviconModule
();
/// <summary>
/// 内容管理
/// </summary>
private
static
ContentModule
contentModule
=
new
ContentModule
();
private
static
readonly
ContentModule
contentModule
=
new
ContentModule
();
/// <summary>
/// 商户小程序处理类
/// </summary>
private
static
Module
.
User
.
MiniProgramModule
programModule
=
new
Module
.
User
.
MiniProgramModule
();
private
static
readonly
MiniProgramModule
programModule
=
new
MiniProgramModule
();
/// <summary>
/// 小程序基础配置
/// </summary>
private
static
MallBaseModule
mallBaseModule
=
new
MallBaseModule
();
private
static
readonly
MallBaseModule
mallBaseModule
=
new
MallBaseModule
();
/// <summary>
/// 用户积分
/// </summary>
private
static
IntegralModule
integralModule
=
new
IntegralModule
();
private
static
readonly
IntegralModule
integralModule
=
new
IntegralModule
();
/// <summary>
/// 充值设置
/// </summary>
private
static
RechargeModule
rechargeModule
=
new
RechargeModule
();
private
static
readonly
RechargeModule
rechargeModule
=
new
RechargeModule
();
/// <summary>
/// 用户处理类
/// </summary>
private
static
UserModule
userModule
=
new
UserModule
();
private
static
readonly
UserModule
userModule
=
new
UserModule
();
/// <summary>
/// 微店
/// </summary>
private
static
RB_SmallShops_InfoRepository
smallShops_InfoRepository
=
new
RB_SmallShops_InfoRepository
();
private
static
readonly
RB_SmallShops_InfoRepository
smallShops_InfoRepository
=
new
RB_SmallShops_InfoRepository
();
/// <summary>
/// 微店商品价格
/// </summary>
private
static
RB_SmallShops_PriceRepository
smallShops_PriceRepository
=
new
RB_SmallShops_PriceRepository
();
private
static
readonly
RB_SmallShops_PriceRepository
smallShops_PriceRepository
=
new
RB_SmallShops_PriceRepository
();
/// <summary>
/// 商品规格价格
/// </summary>
private
static
RB_Goods_SpecificationPriceRepository
goods_SpecificationPriceRepository
=
new
RB_Goods_SpecificationPriceRepository
();
private
static
readonly
RB_Goods_SpecificationPriceRepository
goods_SpecificationPriceRepository
=
new
RB_Goods_SpecificationPriceRepository
();
/// <summary>
/// 产品处理类
/// </summary>
private
static
Module
.
Education
.
EducationModule
educationModule
=
new
Module
.
Education
.
EducationModule
();
private
static
readonly
Module
.
Education
.
EducationModule
educationModule
=
new
Module
.
Education
.
EducationModule
();
/// <summary>
/// 线下服务配置处理类
/// </summary>
private
static
ReserveModule
reserveModule
=
new
ReserveModule
();
private
static
readonly
ReserveModule
reserveModule
=
new
ReserveModule
();
/// <summary>
/// 模板处理类
/// </summary>
private
static
MiniprogramTemplateModule
miniprogramTemplateModule
=
new
MiniprogramTemplateModule
();
private
static
readonly
MiniprogramTemplateModule
miniprogramTemplateModule
=
new
MiniprogramTemplateModule
();
/// <summary>
/// 模板处理类
/// </summary>
private
static
Module
.
Miai
.
MiaiModule
miaiModule
=
new
Module
.
Miai
.
MiaiModule
();
private
static
readonly
Module
.
Miai
.
MiaiModule
miaiModule
=
new
Module
.
Miai
.
MiaiModule
();
/// <summary>
/// 商会活动处理类对象
/// </summary>
private
static
CommerceActivityModule
commerceActivityModule
=
new
CommerceActivityModule
();
private
static
readonly
CommerceActivityModule
commerceActivityModule
=
new
CommerceActivityModule
();
/// <summary>
/// 载体处理类对象
/// </summary>
private
static
CarrierModule
carrierModule
=
new
CarrierModule
();
private
static
readonly
CarrierModule
carrierModule
=
new
CarrierModule
();
/// <summary>
/// 解析插件数据为对象
...
...
@@ -1437,8 +1437,7 @@ namespace Mall.WebApi.Controllers
}
else
if
(
miAiUserItem
.
addUserType
==
2
)
{
long
rowCount
=
0
;
var
tempGoodsList
=
miaiModule
.
GetFirstBaseInfoPageList
(
1
,
miAiUserItem
.
goodsLength
,
out
rowCount
,
new
Model
.
Extend
.
Miai
.
RB_MiAi_BaseInfo_Extend
var
tempGoodsList
=
miaiModule
.
GetFirstBaseInfoPageList
(
1
,
miAiUserItem
.
goodsLength
,
out
long
rowCount
,
new
RB_MiAi_BaseInfo_Extend
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
...
...
@@ -1472,14 +1471,10 @@ namespace Mall.WebApi.Controllers
}
}
miAiUserItem
.
list
=
newGoodsList
;
}
else
if
(
miAiUserItem
.
addUserType
==
3
)
{
long
rowCount
=
0
;
var
tempGoodsList
=
miaiModule
.
GetFirstBaseInfoPageList
(
1
,
miAiUserItem
.
goodsLength
,
out
rowCount
,
new
Model
.
Extend
.
Miai
.
RB_MiAi_BaseInfo_Extend
var
tempGoodsList
=
miaiModule
.
GetFirstBaseInfoPageList
(
1
,
miAiUserItem
.
goodsLength
,
out
long
rowCount
,
new
Model
.
Extend
.
Miai
.
RB_MiAi_BaseInfo_Extend
{
TenantId
=
TenantId
,
MallBaseId
=
MallBaseId
,
...
...
@@ -1491,7 +1486,6 @@ namespace Mall.WebApi.Controllers
foreach
(
var
tempGood
in
tempGoodsList
)
{
var
lastItem
=
new
miaiUserDetail
();
// var tempGood = tempGoodsList?.Where(qitem => qitem.UserId == goodItem.id)?.FirstOrDefault();
if
(
tempGood
!=
null
&&
tempGood
.
Id
>
0
)
{
lastItem
.
id
=
tempGood
.
UserId
;
...
...
@@ -2032,7 +2026,7 @@ namespace Mall.WebApi.Controllers
};
var
aObj
=
new
{
GroupName
=
tItem
.
GroupName
,
tItem
.
GroupName
,
tItem
.
DateStr
,
DataList
=
new
List
<
object
>()
{
defatltData
}
};
...
...
@@ -2043,7 +2037,7 @@ namespace Mall.WebApi.Controllers
var
aList
=
activityList
?.
Where
(
qitem
=>
tItem
.
NewActivitys
.
Contains
(
qitem
.
Id
.
ToString
()))?.
ToList
();
var
aObj
=
new
{
GroupName
=
tItem
.
GroupName
,
tItem
.
GroupName
,
tItem
.
DateStr
,
DataList
=
aList
?.
Select
(
aItem
=>
new
{
aItem
.
Id
,
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
e2f36d73
...
...
@@ -1395,16 +1395,18 @@ namespace Mall.WebApi.Controllers.MallBase
else
{
List
<
object
>
objList
=
new
List
<
object
>();
List
<
object
>
SpecificationValueList
=
new
List
<
object
>();
SpecificationValueList
.
Add
(
new
List
<
object
>
SpecificationValueList
=
new
List
<
object
>
{
Id
=
0
,
GoodsId
=
item
.
Id
,
SpecificationId
=
0
,
Name
=
item
.
DefaultSpecificationName
,
Image
=
""
,
Sort
=
0
});
new
{
Id
=
0
,
GoodsId
=
item
.
Id
,
SpecificationId
=
0
,
Name
=
item
.
DefaultSpecificationName
,
Image
=
""
,
Sort
=
0
}
};
objList
.
Add
(
new
{
Id
=
0
,
...
...
@@ -1415,17 +1417,19 @@ namespace Mall.WebApi.Controllers.MallBase
SpecificationValueList
});
GGZ
=
JsonConvert
.
SerializeObject
(
objList
);
//序列化
List
<
object
>
SpecificationPriceList
=
new
List
<
object
>();
SpecificationPriceList
.
Add
(
new
List
<
object
>
SpecificationPriceList
=
new
List
<
object
>
{
Id
=
0
,
GoodsId
=
item
.
Id
,
SpecificationSort
=
""
,
item
.
SellingPrice
,
item
.
InventoryNum
,
item
.
GoodsWeight
,
item
.
GoodsNumbers
});
new
{
Id
=
0
,
GoodsId
=
item
.
Id
,
SpecificationSort
=
""
,
item
.
SellingPrice
,
item
.
InventoryNum
,
item
.
GoodsWeight
,
item
.
GoodsNumbers
}
};
GGMX
=
JsonConvert
.
SerializeObject
(
SpecificationPriceList
);
//序列化
}
string
AreaList
=
""
;
...
...
@@ -3144,7 +3148,7 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
SourceGoodsId
,
x
.
RetailStore
,
x
.
SupplierName
,
Isynchro
=
x
.
Isynchro
x
.
Isynchro
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
e2f36d73
...
...
@@ -6,6 +6,7 @@ using Mall.CacheManager.User;
using
Mall.Common
;
using
Mall.Common.API
;
using
Mall.Common.Enum.Goods
;
using
Mall.Common.Enum.TradePavilion
;
using
Mall.Common.Enum.User
;
using
Mall.Common.Plugin
;
using
Mall.Model.Extend.TradePavilion
;
...
...
@@ -268,7 +269,61 @@ namespace Mall.WebApi.Controllers.TradePavilion
public
ApiResult
SetCarrierApplyFor
()
{
var
userInfo
=
AppletUserInfo
;
RB_CarrierApplyFor_Extend
query
=
JsonConvert
.
DeserializeObject
<
RB_CarrierApplyFor_Extend
>(
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
RB_CarrierApplyFor_Extend
query
=
new
RB_CarrierApplyFor_Extend
()
{
ID
=
parms
.
GetInt
(
"ID"
),
CompanyId
=
parms
.
GetInt
(
"CompanyId"
),
ExistCarrierId
=
parms
.
GetInt
(
"ExistCarrierId"
),
CarrierName
=
parms
.
GetStringValue
(
"CarrierName"
),
Logo
=
parms
.
GetStringValue
(
"Logo"
),
BannerList
=
new
List
<
string
>
(),
VideoUrl
=
parms
.
GetStringValue
(
"VideoUrl"
),
Address
=
parms
.
GetStringValue
(
"Address"
),
LatAndLon
=
parms
.
GetStringValue
(
"LatAndLon"
),
Developers
=
parms
.
GetStringValue
(
"Developers"
),
OpenTime
=
parms
.
GetDateTime
(
"OpenTime"
),
ProjectType
=(
ProjectTypeEnum
)
parms
.
GetInt
(
"ProjectType"
),
CarrierSize
=
parms
.
GetDecimal
(
"CarrierSize"
),
LayersNum
=
parms
.
GetStringValue
(
"LayersNum"
),
CarNum
=
parms
.
GetInt
(
"CarNum"
),
CarrierPlan
=
parms
.
GetStringValue
(
"CarrierPlan"
),
CarrierTarget
=
parms
.
GetStringValue
(
"CarrierTarget"
),
Location
=
parms
.
GetStringValue
(
"Location"
),
Crowd
=
parms
.
GetStringValue
(
"Crowd"
),
CarrierMetroList
=
new
List
<
RB_CarrierMetroApplyFor_Extend
>
(),
FirstShopNumList
=
new
List
<
FirstShopNumModel
>
(),
HonorList
=
new
List
<
string
>
(),
Discount
=
parms
.
GetStringValue
(
"Discount"
),
StartingInfo
=
parms
.
GetStringValue
(
"StartingInfo"
),
ShopNum
=
parms
.
GetInt
(
"ShopNum"
),
BuiltUpArea
=
parms
.
GetDecimal
(
"BuiltUpArea"
),
AreaRequirement
=
parms
.
GetDecimal
(
"AreaRequirement"
),
YeJi
=
parms
.
GetDecimal
(
"YeJi"
),
//FirstShow = parms.GetStringValue("FirstShow"),
//FirstExhibition =
};
var
bannerList
=
parms
.
GetStringValue
(
"BannerList"
);
if
(!
string
.
IsNullOrEmpty
(
bannerList
))
{
query
.
BannerList
=
JsonHelper
.
DeserializeObject
<
List
<
string
>>(
bannerList
);
}
var
carrierMetroList
=
parms
.
GetStringValue
(
"CarrierMetroList"
);
if
(!
string
.
IsNullOrEmpty
(
carrierMetroList
))
{
query
.
CarrierMetroList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_CarrierMetroApplyFor_Extend
>>(
carrierMetroList
);
}
var
firstShopNumList
=
parms
.
GetStringValue
(
"FirstShopNumList"
);
if
(!
string
.
IsNullOrEmpty
(
firstShopNumList
))
{
query
.
FirstShopNumList
=
JsonHelper
.
DeserializeObject
<
List
<
FirstShopNumModel
>>(
firstShopNumList
);
}
var
honorList
=
parms
.
GetStringValue
(
"HonorList"
);
if
(!
string
.
IsNullOrEmpty
(
honorList
))
{
query
.
HonorList
=
JsonHelper
.
DeserializeObject
<
List
<
string
>>(
honorList
);
}
if
(
query
.
CompanyId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递认证id"
);
...
...
Mall.WebApi/Filter/ApiFilterAttribute.cs
View file @
e2f36d73
...
...
@@ -226,7 +226,6 @@ namespace Mall.WebApi.Filter
}
catch
(
Exception
ex
)
{
string
message
=
ex
.
Message
;
actionContext
.
Result
=
new
Microsoft
.
AspNetCore
.
Mvc
.
JsonResult
(
HttpStatusCode
.
OK
,
new
ApiResult
...
...
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