注冊(cè) | 登錄讀書(shū)好,好讀書(shū),讀好書(shū)!
讀書(shū)網(wǎng)-DuShu.com
當(dāng)前位置: 首頁(yè)出版圖書(shū)科學(xué)技術(shù)工業(yè)技術(shù)無(wú)線(xiàn)電電子學(xué)、電信技術(shù)微信小程序開(kāi)發(fā)必備100Tip

微信小程序開(kāi)發(fā)必備100Tip

微信小程序開(kāi)發(fā)必備100Tip

定 價(jià):¥75.00

作 者: 劉剛 著
出版社: 電子工業(yè)出版社
叢編項(xiàng):
標(biāo) 簽: 暫缺

購(gòu)買(mǎi)這本書(shū)可以去


ISBN: 9787121326912 出版時(shí)間: 2017-10-01 包裝: 平裝
開(kāi)本: 16開(kāi) 頁(yè)數(shù): 380 字?jǐn)?shù):  

內(nèi)容簡(jiǎn)介

  本書(shū)提供了微信小程序開(kāi)發(fā)必備的100 個(gè)Tip 和一個(gè)完整的電商案例京東購(gòu)物微信小程序,100 個(gè)Tip分為四類(lèi):關(guān)于微信小程序的框架及工具16 個(gè)Tip、關(guān)于微信小程序豐富的組件24 個(gè)Tip、關(guān)于微信小程序必備API 技能50 個(gè)Tip、關(guān)于微信小程序高級(jí)交互設(shè)計(jì)10 個(gè)Tip,每一個(gè)Tip 都會(huì)有詳細(xì)的介紹和相關(guān)的示例,方便開(kāi)發(fā)人員快速學(xué)習(xí)這些Tip,同時(shí)也可以作為工具書(shū)指南進(jìn)行查詢(xún),應(yīng)用到哪個(gè)知識(shí)點(diǎn)可以到這里快速的查詢(xún)進(jìn)行使用。京東購(gòu)物微信小程序是綜合應(yīng)用這些Tip,將這些Tip 綜合應(yīng)用到實(shí)際項(xiàng)目開(kāi)發(fā)過(guò)程中。通過(guò)學(xué)習(xí)100 個(gè)Tip 和項(xiàng)目案例,讓讀者全面、深入、透徹地理解微信小程序開(kāi)發(fā),提高微信小程序開(kāi)發(fā)能力和項(xiàng)目實(shí)戰(zhàn)能力。

作者簡(jiǎn)介

  劉剛曾就職于中國(guó)擎天軟件科技集團(tuán)有限公司,現(xiàn)就職于航天科技有限公司,專(zhuān)心致力于軟件項(xiàng)目研發(fā)、設(shè)計(jì)和管理,有豐富項(xiàng)目研發(fā)、設(shè)計(jì)和管理經(jīng)驗(yàn)豐富;負(fù)責(zé)紀(jì)檢監(jiān)察廉政監(jiān)督監(jiān)管平臺(tái)、國(guó)家郵政局項(xiàng)目、政務(wù)大數(shù)據(jù)項(xiàng)目、中施企協(xié)項(xiàng)目等的設(shè)計(jì)開(kāi)發(fā)和項(xiàng)目管理工作;同時(shí)在教育教學(xué)方面有豐富的授課經(jīng)驗(yàn),教授Axure、用戶(hù)體驗(yàn)、軟件重構(gòu)、項(xiàng)目經(jīng)理等等方面的課程。

圖書(shū)目錄

第1 章 微信小程序的框架及工具 .................................................................................. 1
1.1 app.json 配置 .......................................................................................................... 1
1.1.1 決定頁(yè)面文件路徑 .................................................................................... 2
1.1.2 配置窗口表現(xiàn) ............................................................................................ 3
1.1.3 配置tab 標(biāo)簽導(dǎo)航 ..................................................................................... 5
1.1.4 設(shè)置網(wǎng)絡(luò)超時(shí)時(shí)間 .................................................................................... 8
1.1.5 配置debug 模式 ........................................................................................ 9
1.2 App()函數(shù)使用 ..................................................................................................... 10
1.3 Page()函數(shù)使用 .................................................................................................... 12
1.3.1 初始化數(shù)據(jù) .............................................................................................. 13
1.3.2 生命周期函數(shù) .......................................................................................... 13
1.3.3 相關(guān)事件函數(shù) .......................................................................................... 14
1.4 數(shù)據(jù)綁定 .............................................................................................................. 14
1.5 wx:if 條件判斷 ..................................................................................................... 15
1.6 wx:for 列表渲染 ................................................................................................... 16
1.7 定義和使用模板 .................................................................................................. 17
1.8 import 引用模板 ................................................................................................... 18
1.9 include 引用文件 .................................................................................................. 19
1.10 Console 面板 ...................................................................................................... 20
1.11 Sources 面板 ....................................................................................................... 21
1.12 Network 面板 ..................................................................................................... 22
1.13 Storage 面板 ....................................................................................................... 24
1.14 Appdata 面板 ...................................................................................................... 24
目 錄 VII
1.15 Wxml 面板 ......................................................................................................... 26
1.16 Sensor 面板 ........................................................................................................ 27
第2 章 微信小程序豐富的組件 .................................................................................... 28
2.1 view 視圖容器組件 .............................................................................................. 28
2.2 scroll-view 可滾動(dòng)視圖容器組件 ....................................................................... 31
2.3 swiper 滑塊視圖容器組件 ................................................................................... 34
2.3.1 海報(bào)輪播效果 .......................................................................................... 35
2.3.2 頁(yè)簽切換效果 .......................................................................................... 36
2.4 movable-view 可移動(dòng)的視圖容器組件 ............................................................... 40
2.5 icon 圖標(biāo)組件 ...................................................................................................... 42
2.6 text 文本組件 ....................................................................................................... 44
2.7 progress 進(jìn)度條組件 ............................................................................................ 45
2.8 button 按鈕組件 ................................................................................................... 46
2.9 checkbox 多項(xiàng)選擇器組件 .................................................................................. 48
2.10 radio 單項(xiàng)選擇器組件 ....................................................................................... 57
2.11 input 單行輸入框組件 ....................................................................................... 59
2.12 textarea 多行輸入框組件 ................................................................................... 61
2.13 label 改進(jìn)表單組件 ............................................................................................ 63
2.14 picker 選擇器組件 ............................................................................................. 70
2.14.1 picker 普通選擇器組件 ......................................................................... 71
2.14.2 picker 時(shí)間選擇器組件 ......................................................................... 73
2.14.3 picker 日期選擇器組件 ......................................................................... 74
2.15 picker-view 嵌入頁(yè)面的滾動(dòng)選擇器 ................................................................ 76
2.16 slider 滑動(dòng)選擇器組件....................................................................................... 78
2.17 switch 開(kāi)關(guān)選擇器組件 ..................................................................................... 80
2.18 form 表單組件 .................................................................................................... 85
2.19 navigator 頁(yè)面鏈接導(dǎo)航組件 ............................................................................ 92
2.20 audio 音頻組件 .................................................................................................. 95
2.21 image 圖片組件 ................................................................................................ 102
2.22 video 視頻組件 ................................................................................................ 104
2.23 map 地圖組件 .................................................................................................. 106
2.24 canvas 畫(huà)布組件 .............................................................................................. 112
VIII 微信小程序開(kāi)發(fā)必備100 Tip
第3 章 微信小程序必備API 技能 ............................................................................... 118
3.1 wx.request 發(fā)起網(wǎng)絡(luò)請(qǐng)求 .................................................................................. 118
3.2 wx.uploadFile 上傳文件 .................................................................................... 122
3.3 wx.downloadFile 下載文件 ................................................................................ 123
3.4 WebSocket 會(huì)話(huà)連接 ......................................................................................... 125
3.5 wx.chooseImage 選擇圖片 ................................................................................ 133
3.6 wx.previewImage 預(yù)覽圖片 ............................................................................... 134
3.7 wx.getImageInfo 獲取圖片信息 ........................................................................ 135
3.8 wx.saveImageToPhotosAlbum 保存圖片到相冊(cè) .............................................. 136
3.9 wx.startRecord 開(kāi)始錄音和wx.stopRecord 結(jié)束錄音 ..................................... 138
3.10 voice 音頻播放控制 ......................................................................................... 139
3.11 wx.createAudioContext 音頻組件控制 ........................................................... 140
3.12 wx.playBackgroundAudio 播放音樂(lè) ............................................................... 141
3.13 wx.seekBackgroundAudio(OBJECT)控制音樂(lè)播放進(jìn)度 ................................. 143
3.14 wx.getBackgroundAudioPlayerState 獲取音樂(lè)播放狀態(tài) ............................... 143
3.15 wx.createVideoContext(videoId)視頻組件控制 .............................................. 145
3.16 wx.chooseVideo(OBJECT)選擇視頻 .............................................................. 146
3.17 wx.saveVideoToPhotosAlbum 保存視頻到相冊(cè) ............................................ 147
3.18 wx.saveFile 保存文件 ..................................................................................... 148
3.19 wx.getSavedFileList 獲取本地文件列表 ......................................................... 149
3.20 wx. getSavedFileInfo 獲取本地文件信息 ....................................................... 151
3.21 wx. removeSavedFile 刪除本地文件 ............................................................... 153
3.22 wx. openDocument 打開(kāi)文檔 .......................................................................... 154
3.23 wx.setStorage 和wx.setStorageSync 本地?cái)?shù)據(jù)緩存 ....................................... 155
3.24 wx.getStorage 和wx.getStorageSync 獲取本地?cái)?shù)據(jù)緩存 .............................. 157
3.25 wx.getStorageInfo 和wx.getStorageInfoSync 獲取緩存信息 ........................ 159
3.26 清理本地緩存數(shù)據(jù) .......................................................................................... 161
3.27 wx.getLocation 獲取位置 ................................................................................ 162
3.28 wx. chooseLocation 選擇位置 ......................................................................... 167
3.29 wx.openLocation 打開(kāi)內(nèi)置地圖 ...................................................................... 168
3.30 獲取設(shè)備系統(tǒng)信息 .......................................................................................... 169
3.31 獲取網(wǎng)絡(luò)狀態(tài) .................................................................................................. 172
3.32 wx.onAccelerometerChange 加速度計(jì) ............................................................ 172
目 錄 IX
3.33 wx.onCompassChange 監(jiān)聽(tīng)羅盤(pán)數(shù)據(jù) ............................................................. 173
3.34 wx.makePhoneCall 撥打電話(huà)和wx.scanCode 掃碼 ....................................... 173
3.35 剪貼板和屏幕亮度 .......................................................................................... 175
3.36 wx.a(chǎn)ddPhoneContact 添加聯(lián)系人 ................................................................... 176
3.37 wx.showToast 和wx.showLoading 顯示提示框 ............................................. 178
3.38 wx.showModal 顯示模態(tài)彈窗 ......................................................................... 180
3.39 wx.showActionSheet 顯示操作菜單 ............................................................... 182
3.40 設(shè)置導(dǎo)航條 ...................................................................................................... 183
3.41 wx.createAnimation 創(chuàng)建動(dòng)畫(huà) ......................................................................... 184
3.42 獲取第三方平臺(tái)數(shù)據(jù) ...................................................................................... 190
3.43 wx.login 登錄 ................................................................................................... 191
3.44 wx.a(chǎn)uthorize 授權(quán) ............................................................................................. 193
3.45 wx.getUserInfo 用戶(hù)信息 ................................................................................ 195
3.46 wwx.requestPayment 微信支付 ....................................................................... 197
3.47 模板消息 .......................................................................................................... 199
3.48 轉(zhuǎn)發(fā)信息 .......................................................................................................... 202
3.49 wx.chooseAddress 收貨地址 ........................................................................... 203
3.50 卡券 .................................................................................................................. 204
第4 章 微信小程序高級(jí)交互設(shè)計(jì) .............................................................................. 207
4.1 貓眼電影:海報(bào)輪播效果設(shè)計(jì) ........................................................................ 207
4.2 許鮮全國(guó)送:頁(yè)簽切換效果設(shè)計(jì) .................................................................... 210
4.3 新聞?lì)l道:水平滑動(dòng)效果設(shè)計(jì) ........................................................................ 215
4.4 京東到家:手風(fēng)琴導(dǎo)航切換效果設(shè)計(jì) ............................................................. 219
4.5 鏈家:列表式導(dǎo)航設(shè)計(jì) .................................................................................... 223
4.6 支付寶:九宮格導(dǎo)航設(shè)計(jì) ................................................................................ 230
4.7 58 同城:區(qū)域條件檢索設(shè)計(jì) ........................................................................... 237
4.8 12306 火車(chē)票:底部固定效果設(shè)計(jì).................................................................. 242
4.9 當(dāng)當(dāng)購(gòu)物:圖文列表設(shè)計(jì) ................................................................................ 245
4.10 中信信用卡申請(qǐng):向?qū)捅韱卧O(shè)計(jì) ............................................................... 255
第5 章 綜合案例:京東購(gòu)物小程序 ........................................................................... 278
5.1 需求描述 ............................................................................................................ 279
X 微信小程序開(kāi)發(fā)必備100 Tip
5.2 相關(guān)知識(shí)點(diǎn) ........................................................................................................ 285
5.3 商品數(shù)據(jù)準(zhǔn)備 .................................................................................................... 286
5.4 首頁(yè)設(shè)計(jì) ............................................................................................................ 290
5.5 商品詳情頁(yè)設(shè)計(jì) ................................................................................................ 305
5.6 立即購(gòu)買(mǎi)頁(yè)面 .................................................................................................... 320
5.7 商品搜索設(shè)計(jì) .................................................................................................... 329
5.8 顯示購(gòu)物車(chē)商品設(shè)計(jì) ........................................................................................ 339
5.9 我的訂單頁(yè)面設(shè)計(jì) ............................................................................................ 350
5.10 優(yōu)惠券設(shè)計(jì) ...................................................................................................... 356
5.11 小結(jié) .................................................................................................................. 366

本目錄推薦

掃描二維碼
Copyright ? 讀書(shū)網(wǎng) m.ranfinancial.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)