UmbracoExtending.Dealer
1.0.1
Requires NuGet 1.0.0 or higher.
dotnet add package UmbracoExtending.Dealer --version 1.0.1
NuGet\Install-Package UmbracoExtending.Dealer -Version 1.0.1
<PackageReference Include="UmbracoExtending.Dealer" Version="1.0.1" />
paket add UmbracoExtending.Dealer --version 1.0.1
#r "nuget: UmbracoExtending.Dealer, 1.0.1"
// Install UmbracoExtending.Dealer as a Cake Addin #addin nuget:?package=UmbracoExtending.Dealer&version=1.0.1 // Install UmbracoExtending.Dealer as a Cake Tool #tool nuget:?package=UmbracoExtending.Dealer&version=1.0.1
Umbraco Extending Dealer
介绍
UE.Dealer组件是基于Umbraco CMS所开发的经销商模块。支持与百度地图、腾讯地图等第三方平台整合的经销商管理功能。
基本要求
- Umbraco 7.14.0
- .NETFramework 4.5.2+
使用说明
在VS中,创建项目并使用NuGet安装Umbraco 7.14.0
在VS中,继续使用NuGet安装UE.Dealer组件到创建的Umbraco 7.14.0项目中
发布站点并部署到IIS,浏览站点进行安装CMS
站点安装完成,检查本项目数据库中是否存在该表
[dbo].[umbracoExtendingDistrict]
,如果不存在,请将App_Data\ueDistrict.sql
导入到库中,否则请忽略当前操作。同时,将App_Data\ueDealer.sql
导入到库中。请用超级管理员用户,点击(Users)用户模块 -- 找到右上角Groups -- 点击权限组 -- (区域)Sections添加(Umbraco Extending Dealer)经销商模块权限
打开IIS回收应用程序池,清理浏览器图片和文件缓存,进入CMS后台,重新强制刷新后台,左侧菜单会友好的显示经销商模块,如下图所示:
点击左侧Umbraco Extending Dealer菜单模块。
配置Configuration项
- 在Dealer List上右击鼠标,选择Configuration项
- 配置Platform,选择相应平台,
- 根据Platform选择的平台,填写对应平台的秘钥KEY
创建经销商
- 在Dealer List上右击鼠标,选择Create Dealer创建经销商
- 填写地址(address), 门店名称(Store Name)保存即可
Templates模板调用
调用省份列表
var provinces = DealerUtil.GetProvinces();
<select class="form-control" id="province">
<option>=请选择=</option>
@foreach (var province in provinces)
{
<option value="@province.Code">@province.Name</option>
}
</select>
根据省份触发城市列表接口
名称 | 内容 |
---|---|
请求方式 | GET |
输出格式 | JSON |
接收参数 | code |
接口地址 | /umbraco/UmbracoDealer/FrontendDistrict/GetCitys |
经销商接口
名称 | 内容 |
---|---|
请求方式 | GET |
输出格式 | JSON |
接口地址 | /umbraco/UmbracoDealer/FrontendDealer/GetDealers |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5.2
- Maplatform (>= 2.1.0)
- UmbracoCms.Core (>= 7.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.Add qq map support.
2.Change map platform will change all dealer suspicious.
3.Separating SQL files.
4.Fix some bug.