开发实践|微信小程序开发完整项目实践(前端+后端)

小程序开发


浏览:917 次

1、 项目简介

小程序主要包括主页、产品详情、购物车、个人中心等模块。

管理端主要包括人员管理、商品管理、订单管理等模块。

2、 相关技术

Html+css+js:微信小程序界面。

NetCore框架+C#程序语言:小程序和后台管理系统API的实现。

Layui前端框架:web后台管理界面风格和数据渲染框架。

SqlServer数据库:数据支持。

3、 小程序渲染

4、 背景管理渲染

5、 代码块

<;视图class=“headerBox”>;

 书信电报;view class=“leftAddress”>;

 nbsp;&书信电报;image class=“leftAddressIcon”src=“{{imgUrl}}/upload/20220608/addressIcon.png”惰性加载=“true”>;<;/图像>

 nbsp;&书信电报;view class=“leftAddressText little”>;橘猫餐厅</view>

 nbsp;&书信电报;image class=“rightJtCon”src=“{{imgUrl}}/upload/20220608/jtBottom.png”惰性加载=“true”>;<;/图像>

 lt;/视图>

 书信电报;view class=“appletsTitle”>;<;/视图>

<;/视图>

<;视图class=“bannerBottom”>;<;/视图>

<;滚动视图class=“menu left”scroll-y=“true”style=“height:{{nowEquipmentHeight-((statusBarHeight*2)+162)}}px;";>;

 书信电报;view wx:for=“{{menuList}}”class=“小{{menuIndex==索引?'menu-item-check':'enu-item'}}}{{item.previtClass}}}}{{item.nextClass}”;

;bindtap=“clickMenu”数据索引=“{{索引}}”>;{{item.title}}

 书信电报;view class=“bottomHeightBox”>;<;/视图>

<;/滚动视图>

<;scroll view class=“menu right”scroll-y=“true”style=“height:{{nowEquipmentHeight-((statusBarHeight*2)+162)}}px;";>;

 书信电报;view class=“menuTitleBox”>;

 nbsp;&书信电报;text>热门推荐</text>

 lt;/视图>

 书信电报;视图class=“productContainer”>;

 nbsp;&书信电报;view class=“productItem”wx:for=“{{20}}”bindtap=“goDetail”>;

 nbsp; ;&书信电报;view class=“productImage”style=“background:url({{imgUrl}}/upload/20220608/ky.jpg);背景大小:100%100%;";>;<;/view>

 nbsp; ;&书信电报;view class=“productName little”>;超级无敌美味烤鸭</view>

 nbsp; ;&书信电报;view class=“productPriceBox”