diff --git a/examples/image-template/App.vue b/examples/image-template/App.vue deleted file mode 100644 index b76f12fc1fc00b9b04fd8d59249253e64c0aec60..0000000000000000000000000000000000000000 --- a/examples/image-template/App.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/examples/image-template/README.md b/examples/image-template/README.md index a01f68fda869fe53a6b1425fc866c651b03586eb..838738e3ec7d3b4b57cee5255c9a556fbe89492c 100644 --- a/examples/image-template/README.md +++ b/examples/image-template/README.md @@ -1,21 +1 @@ -## UNI-APP 图片模板 - -使用uni-app开发的图片App模版,包含单列图、双列图,图片分类,图片轮播、预览、下载,图片分享、收藏,设置桌面背景图等功能。 - -

- - -

- - -## 运行方式 - -将项目拖入[HBuilderX](http://www.dcloud.io/hbuilderx.html),直接运行即可 - -## 使用须知 - -1. 页面样式主要在common/common.css -2. 数据在页面的methods->getData里获取,替换里面的链接及参数即可 -3. 接口返回的字段根据已固定,若替换接口也要替换相应的字段名,页面才能正常渲染 -3. 页面的分享需配置自己的appid等信息 - +代码已迁移,请移步[https://github.com/dcloudio/uni-template-picture](https://github.com/dcloudio/uni-template-picture)查看最新代码 diff --git a/examples/image-template/common/common.css b/examples/image-template/common/common.css deleted file mode 100644 index 418de83690c3cf6a276a9a890e963c4d6022b7d6..0000000000000000000000000000000000000000 --- a/examples/image-template/common/common.css +++ /dev/null @@ -1,399 +0,0 @@ -@font-face { - font-family: texticons; - font-weight: normal; - font-style: normal; - src: url('https://at.alicdn.com/t/font_702773_ttt8tj203j.ttf') format('truetype'); -} - -.index { - flex: 1; - flex-direction: column; - justify-content: center; - align-items: center; -} - -.row { - flex-direction: row; -} - -.column { - flex-direction: column; -} - -.card { - position: relative; - width: 710upx; - margin: 20upx 20upx 20upx 20upx; - border-radius: 10upx; - overflow: hidden; - flex-direction: column; - background-color: #FFFFFF; -} - -.card-img { - width: 710upx; - height: 1065upx; -} - -.card-num { - color: #FFFFFF; - font-size: 26upx; - text-align: center; -} - -.card-num-view { - background-color: #FF80AB; - height: 30upx; - line-height: 30upx; - padding: 0 10upx; - justify-content: center; - border-radius: 30upx; - position: absolute; - top: 20upx; - right: 20upx; -} - -.card-bottm { - justify-content: center; - align-items: center; -} - -.card-share-view { - justify-content: center; - align-items: center; - padding: 14upx 0; - color: #FF80AB; - margin: 20upx 20upx 20upx; - font-size: 30upx; - font-family: texticons; -} - -.card-share-view:before { - content: '\e62d'; -} - -.car-title-view { - flex: 1; - padding: 14upx 0upx 14upx 20upx; -} - -.card-title { - flex: 1; - font-size: 30upx; - text-align: left; - color: #555555; - text-overflow: ellipsis; - lines: 2; - display: -webkit-box; - white-space: normal; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; - overflow: hidden; -} - - - - - - - - - -/*双列表*/ - -.card-list2 { - width: 345upx; - margin: 20upx 0 20upx 20upx; -} - -.card-list2-img { - width: 345upx; - height: 517upx; -} - -.card-list2-num-view { - height: 27upx; - border-radius: 27upx; -} - -.card-list2-num { - font-size: 22upx; -} - -.card-list2-title { - font-size: 26upx; -} - - -.loadMore { - font-size: 30upx; - color: #555; - margin-bottom: 20upx; -} - - - - - - -/* 分类页面 */ - -.tags { - background: #fff; - flex: 1; - width: 710upx; - margin: 20upx; - flex-direction: row; - flex-wrap: wrap; - justify-content: flex-start; - align-content: flex-start; -} - -.tag { - display: block; - width: 177.5upx; - height: 180upx; - padding: 24upx; - box-sizing: border-box; - text-align: center; -} - -.tag-img { - border-radius: 60upx; - width: 120upx; - height: 120upx; -} - -.tag-text { - font-size: 28upx; - color: #555555; -} - - - - - -/* 个人中心 */ - -.center { - flex-direction: column; -} - -.logo { - width: 750upx; - height: 240upx; - padding: 20upx; - box-sizing: border-box; - background-color: #FF80AB; - flex-direction: row; - align-items: center; -} - -.logo-hover { - opacity: 0.8; -} - -.logo-img { - width: 150upx; - height: 150upx; - border-radius: 150upx; -} - -.logo-title { - height: 150upx; - flex: 1; - align-items: center; - justify-content: space-between; - flex-direction: row; - margin-left: 20upx; -} - -.uer-name { - height: 60upx; - line-height: 60upx; - font-size: 38upx; - color: #FFFFFF; -} - -.go-login.navigat-arrow { - font-size: 38upx; - color: #FFFFFF; -} - -.login-title { - height: 150upx; - align-items: self-start; - justify-content: center; - flex-direction: column; - margin-left: 20upx; -} - -.center-list { - background-color: #FFFFFF; - margin-top: 20upx; - width: 750upx; - flex-direction: column; -} - -.center-list-item { - height: 90upx; - width: 750upx; - box-sizing: border-box; - flex-direction: row; - padding: 0upx 20upx; -} - -.border-bottom { - border-bottom-width: 1upx; - border-color: #c8c7cc; - border-bottom-style: solid; -} - -.list-icon { - width: 40upx; - height: 90upx; - line-height: 90upx; - font-size: 34upx; - color: #FF80AB; - text-align: center; - font-family: texticons; - margin-right: 20upx; -} - -.list-text { - height: 90upx; - line-height: 90upx; - font-size: 34upx; - color: #555; - flex: 1; - text-align: left; -} - -.navigat-arrow { - height: 90upx; - width: 40upx; - line-height: 90upx; - font-size: 34upx; - color: #555; - text-align: right; - font-family: texticons; -} - - - - -/* 登录 */ - -.loginView { - display: flex; - flex: 1; - flex-direction: column; - width: 750upx; - padding-top: 30upx; -} - -.input-view { - border-bottom-style: solid; - border-bottom-width: 3upx; - border-bottom-color: #ddd; - background-color: #fff; - flex-direction: row; - width: 750upx; - padding: 20upx 20upx; - box-sizing: border-box; -} - -.label-view { - width: 100upx; - height: 60upx; - align-items: center; - margin-right: 30upx; -} - -.label { - flex: 1; - line-height: 60upx; - font-size: 38upx; - color: #555; - text-align: left; -} - -.input { - flex: 1; - height: 60upx; - font-size: 38upx; - align-items: center; -} - -.button-view { - width: 750upx; - margin-top: 50upx; - padding: 0 20upx; - box-sizing: border-box; - flex-direction: column; -} - -button { - width: 710upx; - height: 80upx; - line-height: 80upx; - text-align: center; - font-size: 38upx; -} - -button.login { - background-color: #FF80AB; - color: #fff; -} - -button.register { - margin-top: 30upx; - color: #FF80AB; - background-color: #fff; - border-color: #FF80AB; - border-width: 2upx; -} - -.register.hover, -.login.hover { - opacity: 0.6; -} - - - -/* 详情页面 */ - -.detail-btn-view { - width: 750upx; - position: fixed; - bottom: 75upx; - font-size: 28upx; - justify-content: space-between; -} - -.detail-btn-view view { - opacity: 0.75; - height: 80upx; - border-radius: 80upx; - width: 80upx; - justify-content: center; - align-items: center; - line-height: 80upx; - margin: 0 30upx; - font-family: texticons; - background: #eee; - color: #555; -} -.detail-btn-view view text{ - margin-left: 10upx; -} -.detail-btn-view .download:before { - content: '\e617'; -} -.detail-btn-view .collect:before { - content: '\e68d'; -} -.detail-btn-view .setting { - flex: 1; -} diff --git a/examples/image-template/main.js b/examples/image-template/main.js deleted file mode 100644 index 9b3aefdf87730523ce40e145bb84396c4b8493cf..0000000000000000000000000000000000000000 --- a/examples/image-template/main.js +++ /dev/null @@ -1,11 +0,0 @@ -import Vue from 'vue' -import App from './App' - -Vue.config.productionTip = false - -App.mpType = 'app' - -const app = new Vue({ - ...App -}) -app.$mount() \ No newline at end of file diff --git a/examples/image-template/manifest.json b/examples/image-template/manifest.json deleted file mode 100644 index f4482bdb77cbb71e8da615e1b6c36ffdd44fa474..0000000000000000000000000000000000000000 --- a/examples/image-template/manifest.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name" : "image", - "appid" : "__UNI__D5C0215", - "description" : "图片App模版", - "transformPx" : false, - "icons" : [ - { - "sizes" : "分辨率,192x192", - "src" : "图片路径" - } - ], - "versionName" : "1.0.0", - "versionCode" : 100, - "app-plus" : {}, - // 5+App特有相关 - "quickapp" : {}, - // 快应用特有相关 - "mp-weixin" : {} -} -// 小程序特有相关 - diff --git a/examples/image-template/pages.json b/examples/image-template/pages.json deleted file mode 100644 index 444df18f491bc631ea694bc3557db850e00e9a99..0000000000000000000000000000000000000000 --- a/examples/image-template/pages.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "pages": [{//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - "path": "pages/new/new", - "style": { - "navigationBarTitleText": "最新", - "enablePullDownRefresh": true - } - }, { - "path": "pages/hot/hot", - "style": { - "navigationBarTitleText": "最热", - "enablePullDownRefresh": true - } - }, { - "path": "pages/detail/detail", - "style": { - "navigationBarTitleText": "详情", - "navigationBarBackgroundColor": "#000000", - "app-plus":{ - "bounce":"none", - "titleNView":{ - "buttons":[{ - "fontSrc":"/static/icon.ttf", - "fontSize":"24px", - "text":"\ue602" - }] - } - } - } - }, { - "path": "pages/tag/tag", - "style": { - "navigationBarTitleText": "分类" - } - }, { - "path": "pages/list/list", - "style": { - "navigationBarTitleText": "专题", - "enablePullDownRefresh": true - } - }, { - "path": "pages/center/center", - "style": { - "navigationBarTitleText": "个人中心" - } - }, { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "登录" - } - }], - "globalStyle": { - "navigationBarTextStyle": "white", - "navigationBarTitleText": "妹子图", - "navigationBarBackgroundColor": "#FF80AB", - "backgroundColor": "#fbf9fe" - }, - "tabBar": { - "color": "#444444", - "selectedColor": "#FF80AB", - "borderStyle": "black", - "backgroundColor": "#ffffff", - "list": [{ - "pagePath": "pages/new/new", - "iconPath": "static/index-0.png", - "selectedIconPath": "static/index-1.png", - "text": "最新" - }, { - "pagePath": "pages/hot/hot", - "iconPath": "static/hot-0.png", - "selectedIconPath": "static/hot-1.png", - "text": "推荐" - }, { - "pagePath": "pages/tag/tag", - "iconPath": "static/tag-0.png", - "selectedIconPath": "static/tag-1.png", - "text": "分类" - }, { - "pagePath": "pages/center/center", - "iconPath": "static/center-0.png", - "selectedIconPath": "static/center-1.png", - "text": "我的" - }] - } -} diff --git a/examples/image-template/pages/center/center.vue b/examples/image-template/pages/center/center.vue deleted file mode 100644 index 1db4750e253c59b89150d5281f5cc90424be40ec..0000000000000000000000000000000000000000 --- a/examples/image-template/pages/center/center.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - - - diff --git a/examples/image-template/pages/detail/detail.vue b/examples/image-template/pages/detail/detail.vue deleted file mode 100644 index d91273b7c51e0c85bf1086385f70646580bca93c..0000000000000000000000000000000000000000 --- a/examples/image-template/pages/detail/detail.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - - diff --git a/examples/image-template/pages/hot/hot.vue b/examples/image-template/pages/hot/hot.vue deleted file mode 100644 index 4ea4b21b08b18787d720c8290b94217b6cb9f0bc..0000000000000000000000000000000000000000 --- a/examples/image-template/pages/hot/hot.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - - - diff --git a/examples/image-template/pages/list/list.vue b/examples/image-template/pages/list/list.vue deleted file mode 100644 index bb43d72a7416edcf4cf3a29378d6f84949373bc1..0000000000000000000000000000000000000000 --- a/examples/image-template/pages/list/list.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - - diff --git a/examples/image-template/pages/login/login.vue b/examples/image-template/pages/login/login.vue deleted file mode 100644 index d2780ca3b25b86d9ddd1367b3552dac0f184282f..0000000000000000000000000000000000000000 --- a/examples/image-template/pages/login/login.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff --git a/examples/image-template/pages/new/new.vue b/examples/image-template/pages/new/new.vue deleted file mode 100644 index 02d45f1f01c1305ddd0a6b917aaa55db8720abad..0000000000000000000000000000000000000000 --- a/examples/image-template/pages/new/new.vue +++ /dev/null @@ -1,152 +0,0 @@ - - - - - diff --git a/examples/image-template/pages/tag/tag.vue b/examples/image-template/pages/tag/tag.vue deleted file mode 100644 index c3a8e320109bdc91fca021fd6b88c7c8cb982335..0000000000000000000000000000000000000000 --- a/examples/image-template/pages/tag/tag.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - - - diff --git a/examples/image-template/static/center-0.png b/examples/image-template/static/center-0.png deleted file mode 100644 index 7b3edcf38def49eb13ef4815ae98d622bf56e226..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/center-0.png and /dev/null differ diff --git a/examples/image-template/static/center-1.png b/examples/image-template/static/center-1.png deleted file mode 100644 index 936ab3d8d87cb7a2bcf5d920e489bb22c75fd7ca..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/center-1.png and /dev/null differ diff --git a/examples/image-template/static/hot-0.png b/examples/image-template/static/hot-0.png deleted file mode 100644 index 2624d56eda36c1a7975bae45a6936774fee3675c..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/hot-0.png and /dev/null differ diff --git a/examples/image-template/static/hot-1.png b/examples/image-template/static/hot-1.png deleted file mode 100644 index 4899c8165991effca0606c2b2e58e33ca6f70659..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/hot-1.png and /dev/null differ diff --git a/examples/image-template/static/icon.ttf b/examples/image-template/static/icon.ttf deleted file mode 100644 index 009a10c287ecae953def7c6a4876815c4e3a5247..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/icon.ttf and /dev/null differ diff --git a/examples/image-template/static/index-0.png b/examples/image-template/static/index-0.png deleted file mode 100644 index 2ee7ecb55ac37ef21c6adc430f57be33a65fbea6..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/index-0.png and /dev/null differ diff --git a/examples/image-template/static/index-1.png b/examples/image-template/static/index-1.png deleted file mode 100644 index 19a421ed149215ca5f5b24c0cffd2a5577a18cbd..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/index-1.png and /dev/null differ diff --git a/examples/image-template/static/logo.png b/examples/image-template/static/logo.png deleted file mode 100644 index 6cbdbb2167ba2fe7400ad42c5491b78e60886a8e..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/logo.png and /dev/null differ diff --git a/examples/image-template/static/tag-0.png b/examples/image-template/static/tag-0.png deleted file mode 100644 index 5ab29644a6163c37676cf125ffb0f81600805946..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/tag-0.png and /dev/null differ diff --git a/examples/image-template/static/tag-1.png b/examples/image-template/static/tag-1.png deleted file mode 100644 index 7c5917badf987192ed8341adc4dd5f5ef3fcaa21..0000000000000000000000000000000000000000 Binary files a/examples/image-template/static/tag-1.png and /dev/null differ