基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn) 摘要
隨著信息技術(shù)在管理上越來越深入而廣泛的應(yīng)用,管理信息系統(tǒng)的實施在技術(shù)上已逐步成熟。本文介紹了基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn)的開發(fā)全過程。通過分析基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn)管理的不足,創(chuàng)建了一個計算機(jī)管理基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn)的方案。文章介紹了基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn)的系統(tǒng)分析部分,包括可行性分析等,系統(tǒng)設(shè)計部分主要介紹了系統(tǒng)功能設(shè)計和數(shù)據(jù)庫設(shè)計。
本基于微信小程序的家具購物小程序有管理員和用戶兩個角色。管理員功能主要在后臺瀏覽器操作,有個人中心,用戶管理,家具分類管理,家具新品管理,訂單管理和系統(tǒng)管理。用戶主要在微信小程序注冊與登錄,可以查看管理員發(fā)布的家具信息并且可以購買操作。因而具有一定的實用性。
本站后臺采用PHP的TP5框架進(jìn)行后臺管理開發(fā),可以在瀏覽器上登錄進(jìn)行后臺數(shù)據(jù)方面的管理,MySQL作為本地數(shù)據(jù)庫,微信小程序用到了微信開發(fā)者工具,充分保證系統(tǒng)的穩(wěn)定性。系統(tǒng)具有界面清晰、操作簡單,功能齊全的特點,使得基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn)管理工作系統(tǒng)化、規(guī)范化。
關(guān)鍵詞:基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn);TP5框架;MYSQL數(shù)據(jù)庫
Abstract
With the more and more in-depth and extensive application of information technology in management, the implementation of management information system has gradually matured in technology. This paper introduces the entire development process of the design and implementation of the furniture shopping applet based on the WeChat applet. By analyzing the deficiencies of the design and implementation management of the furniture shopping applet based on the WeChat applet, a computer management scheme for the design and implementation of the furniture shopping applet based on the WeChat applet is created. The article introduces the system analysis part of the design and implementation of the furniture shopping applet based on WeChat applet, including feasibility analysis, etc. The system design part mainly introduces the system function design and database design.
This furniture shopping applet based on WeChat applet has two roles of administrator and user. The administrator function is mainly operated in the background browser, including personal center, user management, furniture classification management, new furniture management, order management and system management. Users mainly register and log in in the WeChat applet, can view the furniture information released by the administrator and can purchase the operation. Therefore, it has certain practicality.
The background of this site adopts the TP5 framework of PHP for background management and development. You can log in on the browser to manage the background data. MySQL is used as the local database, and the WeChat applet uses the WeChat developer tool to fully ensure the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, which makes the design and implementation of furniture shopping applet based on WeChat applet systematized and standardized.
Keywords:Design and implementation of furniture shopping applet based on WeChat applet; TP5 framework; MYSQL database
目錄
1系統(tǒng)概述 1
1.1 研究背景 1
1.2研究目的 1
1.3系統(tǒng)設(shè)計思想 1
2相關(guān)技術(shù) 3
2.1微信小程序 3
2.2 MYSQL數(shù)據(jù)庫 3
2.3 uni-app 4
2.4 TP5框架簡介 4
3系統(tǒng)分析 4
3.1可行性分析 4
3.1.1技術(shù)可行性 5
3.1.2經(jīng)濟(jì)可行性 5
3.1.3操作可行性 5
3.2系統(tǒng)性能分析 5
3.2.1 系統(tǒng)安全性 5
3.2.2 數(shù)據(jù)完整性 6
3.3系統(tǒng)界面分析 6
3.4系統(tǒng)流程和邏輯 7
4系統(tǒng)概要設(shè)計 8
4.1概述 8
4.2系統(tǒng)結(jié)構(gòu) 9
4.3.數(shù)據(jù)庫設(shè)計 9
4.3.1數(shù)據(jù)庫實體 9
4.3.2數(shù)據(jù)庫設(shè)計表 11
5系統(tǒng)詳細(xì)實現(xiàn) 14
5.1 管理員模塊的實現(xiàn) 14
5.1.1 用戶管理 14
5.1.2 家具分類管理 15
5.1.3 家具新品管理 16
5.1.4 家具廣告管理 16
5.2 小程序用戶模塊的實現(xiàn) 17
5.2.1 首頁 17
5.2.2 家具信息 17
5.2.3 我的 18
6系統(tǒng)測試 20
6.1概念和意義 20
6.2特性 20
6.3重要性 21
6.4測試方法 21
6.5 功能測試 21
6.6可用性測試 22
6.7性能測試 22
6.8測試分析 23
6.9測試結(jié)果分析 23
結(jié)論 23
致謝語 24
參考文獻(xiàn) 24
1 系統(tǒng)概要設(shè)計
4.1概述
本系統(tǒng)后臺采用B/S結(jié)構(gòu)(Browser/Server,瀏覽器/服務(wù)器結(jié)構(gòu))和基于Web服務(wù)兩種模式,是一個適用于Internet環(huán)境下的模型結(jié)構(gòu)。只要用戶能連上Internet,便可以在任何時間、任何地點使用。系統(tǒng)工作原理圖如圖4-1所示:
圖4-1系統(tǒng)工作原理圖
4.2系統(tǒng)結(jié)構(gòu)
設(shè)計的管理員主要是提供的一些基礎(chǔ)信息服務(wù)。設(shè)計的管理員功能結(jié)構(gòu)圖如下圖所示:
圖4-2管理員功能結(jié)構(gòu)圖
4.3.數(shù)據(jù)庫設(shè)計
4.3.1數(shù)據(jù)庫實體
概念設(shè)計的目標(biāo)是設(shè)計出反映某個組織部門信息需求的數(shù)據(jù)庫系統(tǒng)概念模式,數(shù)據(jù)庫系統(tǒng)的概念模式獨立于數(shù)據(jù)庫系統(tǒng)的邏輯結(jié)構(gòu)、獨立于數(shù)據(jù)庫管理系統(tǒng)(DBMS)、獨立于計算機(jī)系統(tǒng)。
概念模式的設(shè)計方法是在需求分析的基礎(chǔ)上,用概念數(shù)據(jù)模型(例如E-R模型)表示數(shù)據(jù)及數(shù)據(jù)之間的相互聯(lián)系,設(shè)計出反映用戶信息需求和處理需求的數(shù)據(jù)庫系統(tǒng)概念模式。概念設(shè)計的目標(biāo)是準(zhǔn)確描述應(yīng)用領(lǐng)域的信息模式,支持用戶的各種應(yīng)用,這樣既容易轉(zhuǎn)換為數(shù)據(jù)庫系統(tǒng)邏輯模式,又容易為用戶理解。數(shù)據(jù)庫系統(tǒng)概念模式是面向現(xiàn)實世界的數(shù)據(jù)模型,不能直接用于數(shù)據(jù)庫系統(tǒng)的實現(xiàn)。在此階段,用戶可以參與和評價數(shù)據(jù)庫系統(tǒng)的設(shè)計,從而有利于保證數(shù)據(jù)庫系統(tǒng)的設(shè)計與用戶的需求相吻合。在概念模式的設(shè)計中,E-R模型法是最常見的設(shè)計方法。本系統(tǒng)的E-R圖如下圖所示:
(1) 用戶信息的實體屬性圖如下:
圖4.12 用戶信息實體屬性圖
(2)管理員實體屬性圖如圖4.13所示:
圖4.13 管理員實體屬性圖
(3)家具分類信息實體屬性圖如圖4.14所示:
圖4.14 家具分類信息實體屬性圖
4.3.2數(shù)據(jù)庫設(shè)計表
基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn)需要后臺數(shù)據(jù)庫,下面介紹數(shù)據(jù)庫中的各個表的詳細(xì)信息:
1家具新品評論表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 refid Integer 關(guān)聯(lián)表id 是
4 userid Integer 用戶id 是
5 nickname String 用戶名 是
6 content String 評論內(nèi)容 是
7 reply String 回復(fù)內(nèi)容 是
2家具廣告表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 title String 標(biāo)題 是
4 introduction String 簡介 是
5 picture String 圖片 是
6 content String 內(nèi)容 是
3地址表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 userid Integer 用戶id 是
4 address String 地址 是
5 name String 收貨人 是
6 phone String 電話 是
7 isdefault String 是否默認(rèn)地址[是/否] 是
4家具新品表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 jiajumingcheng String 家具名稱 是
4 jiajufenlei String 家具分類 是
5 jiajutupian String 家具圖片 是
6 jiajuxiangqing String 家具詳情 是
7 thumbsupnum Integer 贊 是
8 crazilynum Integer 踩 是
9 price float 價格 是
5用戶表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 zhanghao String 賬號 是
4 mima String 密碼 是
5 yonghu String 用戶 是
6 xingbie String 性別 是
7 shouji String 手機(jī) 是
8 youxiang String 郵箱 是
9 touxiang String 頭像 是
10 money float 余額 是
6家具分類表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 jiajufenlei String 家具分類 是
7訂單表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 orderid String 訂單編號 是
4 tablename String 商品表名 是
5 userid Integer 用戶id 是
6 goodid Integer 商品id 是
7 goodname String 商品名稱 是
8 picture String 商品圖片 是
9 buynumber Integer 購買數(shù)量 是
10 price float 價格/積分 是
11 discountprice float 折扣價格 是
12 total float 總價格/總積分 是
13 discounttotal float 折扣總價格 是
14 type Integer 支付類型 是
15 status String 狀態(tài) 是
16 address String 地址 是
17 tel String 電話 是
18 consignee String 收貨人 是
8收藏表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 userid Integer 用戶id 是
4 refid Integer 收藏id 是
5 tablename String 表名 是
6 name String 收藏名稱 是
7 picture String 收藏圖片 是
9配置文件表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 name String 配置參數(shù)名稱 是
3 value String 配置參數(shù)值 是
10購物車表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 addtime Date 創(chuàng)建時間 是
3 tablename String 商品表名 是
4 userid Integer 用戶id 是
5 goodid Integer 商品id 是
6 goodname String 商品名稱 是
7 picture String 圖片 是
8 buynumber Integer 購買數(shù)量 是
9 price float 單價 是
10 discountprice float 會員價 是
11用戶表
序號 列名 數(shù)據(jù)類型 說明 允許空
1 Id Int id 否
2 username String 用戶名 是
3 password String 密碼 是
4 role String 角色 是
5 addtime Date 新增時間 是
2 系統(tǒng)詳細(xì)實現(xiàn)
5.1 管理員模塊的實現(xiàn)
5.1.1 用戶管理
管理員可以管理用戶信息,可以查看用戶信息,刪除用戶信息。具體界面的展示如圖5.1所示。
圖5.1 用戶管理界面
5.1.2 家具分類管理
管理員可以對家具分類進(jìn)行添加,修改,查詢或刪除操作。具體界面如圖5.2所示。
圖5.3 家具分類管理界面
5.1.3 家具新品管理
管理員可以對家具新品信息進(jìn)行添加,修改,刪除,查詢操作。界面如下圖所示:
圖5.4 家具新品信息界面
5.1.4 家具廣告管理
管理員可以對家具廣告信息進(jìn)行添加,修改,刪除,查詢操作。界面如下圖所示:
圖5.4 家具廣告管理界面
5.2 小程序用戶模塊的實現(xiàn)
5.2.1 首頁
小程序用戶可以在首頁查看家具新品信息,下面是導(dǎo)航欄。界面如下圖所示:
圖5.5 首頁界面
5.2.2 家具信息
用戶可以查看家具信息,可以對家具信息進(jìn)行添加到購物車,收藏,立即訂購操作。
圖5.6 家具信息界面
5.2.3 我的
用戶在我的界面可以充值,查看自己的購物車和訂單信息。界面如下圖所示:文章來源:http://www.zghlxwxcb.cn/news/detail-840436.html
圖5.7 我的界面文章來源地址http://www.zghlxwxcb.cn/news/detail-840436.html
到了這里,關(guān)于基于微信小程序的家具購物小程序的設(shè)計與實現(xiàn)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!