diff --git a/App.vue b/App.vue
index 8ae266c1fe43c675cafc3bda70bbcfcc99b1e2e4..ccb3669faeed24489c1835eafb6cedffc2cbfae5 100644
--- a/App.vue
+++ b/App.vue
@@ -1,10 +1,11 @@
-
-
diff --git a/components/refreshBox/refreshBox.nvue b/components/refreshBox/refreshBox.nvue
deleted file mode 100644
index 54ce6cce48d98e2ed8e81958b2c1846b1e482ee9..0000000000000000000000000000000000000000
--- a/components/refreshBox/refreshBox.nvue
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
- {{config[state].text}}
-
-
-
-
-
-
-
diff --git a/components/uni-agreements/uni-agreements.vue b/components/uni-agreements/uni-agreements.vue
index 200f1f5f7dd5d22315493b1ad252dc7e7ccf887c..f3621dab6e1454a9d2b2759e2632d0c4c29cd851 100644
--- a/components/uni-agreements/uni-agreements.vue
+++ b/components/uni-agreements/uni-agreements.vue
@@ -13,7 +13,7 @@
name:"uni-agreements",
computed:{
agreements(){
- return getApp().config.about.agreements
+ return getApp().globalData.config.about.agreements
}
},
methods:{
diff --git a/components/uni-network/uni-network.vue b/components/uni-network/uni-network.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d5a7ac037d513389d2f2f889698175f90dd166b2
--- /dev/null
+++ b/components/uni-network/uni-network.vue
@@ -0,0 +1,102 @@
+
+
+
+ 网络异常
+
+ 重试
+
+
+ 前往设置
+
+
+
+
+
+
+
diff --git a/manifest.json b/manifest.json
index f0b4b4801034684f9fce14f45caa8cbc82648413..eeb96daa01a9c2cd4842d8f1c43b177d05f2dea1 100644
--- a/manifest.json
+++ b/manifest.json
@@ -11,8 +11,8 @@
"prompt" : "template",
"template" : {
"title" : "服务协议和隐私政策",
- "message" : " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
- "buttonAccept" : "我知道了",
+ "message" : " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
+ "buttonAccept" : "同意",
"buttonRefuse" : "暂不同意"
}
},
@@ -113,8 +113,8 @@
"es6" : false
},
"usingComponents" : true
- // "betterScopedSlots" : true
},
+ // "betterScopedSlots" : true
"mp-alipay" : {
"usingComponents" : true
},
diff --git a/pages.json b/pages.json
index 82b2fcd3f6dcc900f9b293067c0329724c66a678..5f0a1cc0645cd122d9d2b6120f763311c05d9f66 100644
--- a/pages.json
+++ b/pages.json
@@ -3,23 +3,17 @@
{
"path": "pages/list/list",
"style": {
- // #ifdef APP-NVUE
- "enablePullDownRefresh": false,
- // #endif
- // #ifdef H5
"navigationStyle":"custom",
- // #endif
+ "enablePullDownRefresh": true,
"app-plus":{
- // #ifdef APP-PLUS
- "titleNView":{ /*排除了H5*/
- "searchInput":{
- "placeholder":"请输入搜索的内容",
- "backgroundColor":"#efefef",
- "disabled":true,
- "borderRadius":"30px"
- }
- }
- // #endif
+ // "titleNView":{ /*排除了H5*/
+ // "searchInput":{
+ // "placeholder":"请输入搜索的内容",
+ // "backgroundColor":"#efefef",
+ // "disabled":true,
+ // "borderRadius":"30px"
+ // }
+ // }
}
}
},
@@ -73,7 +67,7 @@
"navigationBarTitleText": "文章详情"
}
}, {
- "path": "pages/ucenter/edit/bind-mobile/bind-mobile",
+ "path": "pages/ucenter/userinfo/bind-mobile/bind-mobile",
"style": {
"navigationBarTitleText": "绑定手机号码"
}
@@ -162,12 +156,12 @@
}
}, {
- "path": "pages/ucenter/edit/edit",
+ "path": "pages/ucenter/userinfo/userinfo",
"style": {
"navigationBarTitleText": "个人资料"
}
}, {
- "path": "pages/ucenter/edit/uploadCutImageToUnicloud",
+ "path": "pages/ucenter/userinfo/uploadCutImageToUnicloud",
"style": {
"navigationStyle": "custom"
}
diff --git a/pages/list/detail.vue b/pages/list/detail.vue
index b622c241347b07518307c36639a6ed2e7eaa8a0c..6eff9970f294121dc5ec0277db91cba1ce0f31af 100644
--- a/pages/list/detail.vue
+++ b/pages/list/detail.vue
@@ -47,7 +47,6 @@
-
+
diff --git a/pages/list/list.nvue b/pages/list/list.nvue
index 8d6f29d8c9646a56d6ceb7e8adc4893df171c280..f91190e664144210032f13b50e61078907ec1624 100644
--- a/pages/list/list.nvue
+++ b/pages/list/list.nvue
@@ -1,65 +1,65 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
+ :style='{height:listHight+"px"}'
-
-
- 为您更新了{{data.length}}条内容
-
-
-
-
- 加载中...
-
-
-
-
- 内容为空
-
- |
- {{error.message}}
-
-
-
-
-
-
-
- {{ item.title }}
-
- {{item.user_id[0].username}}
-
+ >
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+ 内容为空
+
+ |
+
+
+
+
+
+
+
+ {{ item.title }}
+
+ {{item.user_id[0].username}}
+
+
-
-
-
-
-
-
- |
-
- - 没有更多数据了 -
- |
+
+
+
+
+
+
+ |
+
+ - 没有更多数据了 -
+ |
+
+
@@ -70,42 +70,34 @@
export default {
data() {
return {
- showRefreshTip: true,
where: "",
keyword: "",
refreshState: 0,
- windowHeight: 0 //窗口的高
+ listHight: 0
}
},
onReady() {
- this.windowHeight = uni.getSystemInfoSync().windowHeight
- this.showRefreshTip = false
+ this.listHight = uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().statusBarHeight - 65
cdbRef = this.$refs.udb
console.log(cdbRef);
},
onShow() {
- try{
- this.keyword = getApp().globalData.searchText
- console.log(this.keyword);
- getApp().globalData.searchText = ''
- this.setInputText()
- }catch(e){
- console.log(e);
- //TODO handle the exception
+ this.keyword = getApp().globalData.searchText
+ console.log(this.keyword);
+ getApp().globalData.searchText = ''
+ if(this.keyword){
+ // #ifdef APP-PLUS
+ if (!currentWebview) {
+ let pages = getCurrentPages();
+ currentWebview = pages[pages.length - 1].$getAppWebview();
+ }
+ // 设置 searchInput的 text
+ currentWebview.setTitleNViewSearchInputText(this.keyword)
+ // #endif
}
},
methods: {
- setInputText() {
- // 设置 searchInput的 text
- // #ifdef APP-PLUS
- if (!currentWebview) {
- let pages = getCurrentPages();
- currentWebview = pages[pages.length - 1].$getAppWebview();
- }
- currentWebview.setTitleNViewSearchInputText(this.keyword)
- // #endif
- },
- testData(data) {
+ testData(data) { //复制同一个数据多遍方便测试,正式项目中不要带
var testData = []
for (let i = 0; i < 10; i++) {
testData.push(...data)
@@ -116,7 +108,6 @@
// `data` 当前查询结果 `ended` 是否有更多数据 `pagination` 分页信息 HBuilderX 3.1.5+ 支持
console.log(9527, data, ended, pagination);
//上拉加载成功
- this.loadMoreEnd()
},
searchClick() {
uni.hideKeyboard();
@@ -129,66 +120,29 @@
}
}
});
- },
- refresh() {
- cdbRef.loadData({
- clear: true
- }, () => {
- this.showRefreshTip = true
- setTimeout(() => {
- this.showRefreshTip = false
- }, 1000)
- this.refreshEnd()
- })
- },
- loadMore() {
- cdbRef.loadMore({
- clear: true
- })
- },
- refreshEnd() {
- // #ifdef APP-NVUE
- this.refreshState = 0
- // #endif
- uni.stopPullDownRefresh()
- },
- loadMoreEnd() {
- console.log('loadMoreEnd');
- },
- // #ifdef APP-NVUE
- onpullingdown({
- pullingDistance,
- viewHeight
- }) {
- if (pullingDistance > viewHeight) {
- this.refreshState = 1
- }
- },
- // #endif
+ },
+ retry(){
+ this.refresh()
+ },
+ refresh(){
+ cdbRef.loadData({
+ clear: true
+ }, () => {
+ uni.stopPullDownRefresh()
+ })
+ console.log('refresh');
+ }
},
- // #ifndef APP-NVUE
onPullDownRefresh() {
this.refresh()
- console.log('refresh');
},
- // #endif
onReachBottom() {
- this.loadMore()
- console.log('触底了');
- },
- onNavigationBarSearchInputClicked() {
- this.searchClick()
- },
- onNavigationBarSearchInputChanged(e) {
- console.log('变了', e);
- if (e.text) {
- this.where = 'title == ' + e.text
- }
+ cdbRef.loadMore({clear: true})
}
}
-
+
diff --git a/pages/ucenter/edit/bind-mobile/bind-mobile.vue b/pages/ucenter/userinfo/bind-mobile/bind-mobile.vue
similarity index 100%
rename from pages/ucenter/edit/bind-mobile/bind-mobile.vue
rename to pages/ucenter/userinfo/bind-mobile/bind-mobile.vue
diff --git a/pages/ucenter/edit/limeClipper/images/photo.svg b/pages/ucenter/userinfo/limeClipper/images/photo.svg
similarity index 100%
rename from pages/ucenter/edit/limeClipper/images/photo.svg
rename to pages/ucenter/userinfo/limeClipper/images/photo.svg
diff --git a/pages/ucenter/edit/limeClipper/images/rotate.svg b/pages/ucenter/userinfo/limeClipper/images/rotate.svg
similarity index 100%
rename from pages/ucenter/edit/limeClipper/images/rotate.svg
rename to pages/ucenter/userinfo/limeClipper/images/rotate.svg
diff --git a/pages/ucenter/edit/limeClipper/index.styl b/pages/ucenter/userinfo/limeClipper/index.styl
similarity index 100%
rename from pages/ucenter/edit/limeClipper/index.styl
rename to pages/ucenter/userinfo/limeClipper/index.styl
diff --git a/pages/ucenter/edit/limeClipper/limeClipper.vue b/pages/ucenter/userinfo/limeClipper/limeClipper.vue
similarity index 100%
rename from pages/ucenter/edit/limeClipper/limeClipper.vue
rename to pages/ucenter/userinfo/limeClipper/limeClipper.vue
diff --git a/pages/ucenter/edit/limeClipper/utils.js b/pages/ucenter/userinfo/limeClipper/utils.js
similarity index 100%
rename from pages/ucenter/edit/limeClipper/utils.js
rename to pages/ucenter/userinfo/limeClipper/utils.js
diff --git a/pages/ucenter/edit/main.js b/pages/ucenter/userinfo/main.js
similarity index 100%
rename from pages/ucenter/edit/main.js
rename to pages/ucenter/userinfo/main.js
diff --git a/pages/ucenter/edit/uploadCutImageToUnicloud.vue b/pages/ucenter/userinfo/uploadCutImageToUnicloud.vue
similarity index 100%
rename from pages/ucenter/edit/uploadCutImageToUnicloud.vue
rename to pages/ucenter/userinfo/uploadCutImageToUnicloud.vue
diff --git a/pages/ucenter/edit/edit.vue b/pages/ucenter/userinfo/userinfo.vue
similarity index 100%
rename from pages/ucenter/edit/edit.vue
rename to pages/ucenter/userinfo/userinfo.vue
diff --git a/static/getDataState/loading.png b/static/getDataState/loading.png
deleted file mode 100644
index 0c37a2683a6fdf5d0194b6f3f3347219b457664f..0000000000000000000000000000000000000000
Binary files a/static/getDataState/loading.png and /dev/null differ
diff --git a/static/getDataState/nodata.png b/static/getDataState/nodata.png
index 21616ae7325f1e2a3fddf3c663855b2281a05f25..2b9d1b807a627813e4e744054f1fca2069db96a1 100644
Binary files a/static/getDataState/nodata.png and b/static/getDataState/nodata.png differ
diff --git a/static/getDataState/nowifi.png b/static/getDataState/nowifi.png
deleted file mode 100644
index df2d87c014c685baa701f852e16ac8c4410ac9f8..0000000000000000000000000000000000000000
Binary files a/static/getDataState/nowifi.png and /dev/null differ
diff --git a/static/logo.png b/static/logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..b5771e209bb677e2ebd5ff766ad5ee11790f305a
Binary files /dev/null and b/static/logo.png differ
diff --git a/static/uni-network/disconnection.png b/static/uni-network/disconnection.png
new file mode 100644
index 0000000000000000000000000000000000000000..e87b613ac0d52d2e71ef23deb947970074d24630
Binary files /dev/null and b/static/uni-network/disconnection.png differ
diff --git a/uni.scss b/uni.scss
index 845142dd5eb11438513b665ccb5f83d4f08b8fb5..45ae737e66433b1d6050e07a62833f7146183de2 100644
--- a/uni.scss
+++ b/uni.scss
@@ -61,7 +61,7 @@ $uni-spacing-row-lg: 30rpx;
/* 垂直间距 */
$uni-spacing-col-sm: 8rpx;
-$uni-spacing-col-base: 16rpx;
+$uni-spacing-col-base: 8px;
$uni-spacing-col-lg: 24rpx;
/* 透明度 */
diff --git a/uni_modules/uni-image-menu/readme.md b/uni_modules/uni-image-menu/readme.md
index 960d129c3c5274b43405f57a2c421d3303611b7a..ecca1b09d800a6127c4306c266994a4e96a5dbbf 100644
--- a/uni_modules/uni-image-menu/readme.md
+++ b/uni_modules/uni-image-menu/readme.md
@@ -1 +1,19 @@
-# uni-image-menu
\ No newline at end of file
+# uni-image-menu
+
+使用示例:
+```
+import uniImageMenu from 'uni_modules/uni-image-menu/js_sdk/uni-image-menu.js';
+uniImageMenu.show({
+ list:[{
+ "img": "/static/sharemenu/wechatfriend.png",
+ "text": "微信好友"
+ },
+ {
+ "img": "/static/sharemenu/wechatmoments.png",
+ "text": "微信朋友圈"
+ }],
+ cancelText:param.cancelText
+}, e => {
+ console.log(e)
+})
+```
\ No newline at end of file
diff --git a/uni_modules/uni-nodata/changelog.md b/uni_modules/uni-nodata/changelog.md
deleted file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000
diff --git a/uni_modules/uni-nodata/components/uni-nodata/uni-nodata.nvue b/uni_modules/uni-nodata/components/uni-nodata/uni-nodata.nvue
deleted file mode 100644
index 4b43d9b0ecbd39cc0311d8898249f23151d8360a..0000000000000000000000000000000000000000
--- a/uni_modules/uni-nodata/components/uni-nodata/uni-nodata.nvue
+++ /dev/null
@@ -1,231 +0,0 @@
-
-
-
-
- {{textTypes[networkType]}}
-
-
-
-
-
-
-
- {{isLoading ? '加载中...' : ''}}
-
-
-
- 重试
-
-
- 设置
-
-
-
-
-
-
-
-
-
diff --git a/uni_modules/uni-nodata/package.json b/uni_modules/uni-nodata/package.json
deleted file mode 100644
index 475832fbc6108b9b8d4bd3cfaf9798e8d377aa84..0000000000000000000000000000000000000000
--- a/uni_modules/uni-nodata/package.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "id": "uni-nodata",
- "displayName": "uni-nodata",
- "version": "1.0.0",
- "description": "uni-nodata",
- "keywords": [
- "uni-nodata"
-],
- "repository": "",
- "engines": {
- "HBuilderX": "^3.1.0"
- },
- "dcloudext": {
- "category": [
- "前端组件",
- "通用组件"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "",
- "data": "",
- "permissions": ""
- },
- "npmurl": ""
- },
- "uni_modules": {
- "dependencies": [],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "u",
- "aliyun": "u"
- },
- "client": {
- "App": {
- "app-vue": "u",
- "app-nvue": "u"
- },
- "H5-mobile": {
- "Safari": "u",
- "Android Browser": "u",
- "微信浏览器(Android)": "u",
- "QQ浏览器(Android)": "u"
- },
- "H5-pc": {
- "Chrome": "u",
- "IE": "u",
- "Edge": "u",
- "Firefox": "u",
- "Safari": "u"
- },
- "小程序": {
- "微信": "u",
- "阿里": "u",
- "百度": "u",
- "字节跳动": "u",
- "QQ": "u"
- },
- "快应用": {
- "华为": "u",
- "联盟": "u"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-nodata/readme.md b/uni_modules/uni-nodata/readme.md
deleted file mode 100644
index 004b43c5dab8c156f2b5ea196c867415a42e0987..0000000000000000000000000000000000000000
--- a/uni_modules/uni-nodata/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-# uni-nodata
\ No newline at end of file
diff --git a/uni_modules/uni-nodata/static/loading.png b/uni_modules/uni-nodata/static/loading.png
deleted file mode 100644
index 0c37a2683a6fdf5d0194b6f3f3347219b457664f..0000000000000000000000000000000000000000
Binary files a/uni_modules/uni-nodata/static/loading.png and /dev/null differ
diff --git a/uni_modules/uni-nodata/static/nodata.png b/uni_modules/uni-nodata/static/nodata.png
deleted file mode 100644
index 21616ae7325f1e2a3fddf3c663855b2281a05f25..0000000000000000000000000000000000000000
Binary files a/uni_modules/uni-nodata/static/nodata.png and /dev/null differ
diff --git a/uni_modules/uni-nodata/static/nowifi.png b/uni_modules/uni-nodata/static/nowifi.png
deleted file mode 100644
index df2d87c014c685baa701f852e16ac8c4410ac9f8..0000000000000000000000000000000000000000
Binary files a/uni_modules/uni-nodata/static/nowifi.png and /dev/null differ
diff --git a/uni_modules/uni-share/changelog.md b/uni_modules/uni-share/changelog.md
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..be8451fed70553cd6838f52b66ce27d165caa425 100644
--- a/uni_modules/uni-share/changelog.md
+++ b/uni_modules/uni-share/changelog.md
@@ -0,0 +1,2 @@
+## 1.0.0(2021-04-28)
+第1版发布
diff --git a/uni_modules/uni-share/js_sdk/uni-share.js b/uni_modules/uni-share/js_sdk/uni-share.js
index be5f2372b7e6cbf60386a6fcd412a3d90a66a082..fa429521f279f19214df270fe7efc624384d0890 100644
--- a/uni_modules/uni-share/js_sdk/uni-share.js
+++ b/uni_modules/uni-share/js_sdk/uni-share.js
@@ -78,6 +78,4 @@ export default async (param,callback) => {
callback(e)
});
}
-
-
-}
+}
\ No newline at end of file
diff --git a/uni_modules/uni-share/package.json b/uni_modules/uni-share/package.json
index ad36fb88afee1a0c197eb3a60accb3a2faa5af74..42512a25795bb73b0f5902c22b0b69127ec378c3 100644
--- a/uni_modules/uni-share/package.json
+++ b/uni_modules/uni-share/package.json
@@ -2,9 +2,9 @@
"id": "uni-share",
"displayName": "uni-share",
"version": "1.0.0",
- "description": "uni-share",
+ "description": "底部弹出宫格图标式的分享菜单,可覆盖原生组件。",
"keywords": [
- "uni-share"
+ "分享菜单"
],
"repository": "",
"engines": {
@@ -13,7 +13,7 @@
"dcloudext": {
"category": [
"JS SDK",
- "JS SDK"
+ "通用 SDK"
],
"sale": {
"regular": {
@@ -27,9 +27,9 @@
"qq": ""
},
"declaration": {
- "ads": "",
- "data": "",
- "permissions": ""
+ "ads": "无",
+ "data": "无",
+ "permissions": "无"
},
"npmurl": ""
},
@@ -38,37 +38,37 @@
"encrypt": [],
"platforms": {
"cloud": {
- "tcb": "u",
- "aliyun": "u"
+ "tcb": "y",
+ "aliyun": "y"
},
"client": {
"App": {
- "app-vue": "u",
- "app-nvue": "u"
+ "app-vue": "y",
+ "app-nvue": "y"
},
"H5-mobile": {
- "Safari": "u",
- "Android Browser": "u",
- "微信浏览器(Android)": "u",
- "QQ浏览器(Android)": "u"
+ "Safari": "n",
+ "Android Browser": "n",
+ "微信浏览器(Android)": "n",
+ "QQ浏览器(Android)": "n"
},
"H5-pc": {
- "Chrome": "u",
- "IE": "u",
- "Edge": "u",
- "Firefox": "u",
- "Safari": "u"
+ "Chrome": "n",
+ "IE": "n",
+ "Edge": "n",
+ "Firefox": "n",
+ "Safari": "n"
},
"小程序": {
- "微信": "u",
- "阿里": "u",
- "百度": "u",
- "字节跳动": "u",
- "QQ": "u"
+ "微信": "n",
+ "阿里": "n",
+ "百度": "n",
+ "字节跳动": "n",
+ "QQ": "n"
},
"快应用": {
- "华为": "u",
- "联盟": "u"
+ "华为": "n",
+ "联盟": "n"
}
}
}
diff --git a/uni_modules/uni-share/readme.md b/uni_modules/uni-share/readme.md
index ea226ce000593dae80e6f04d74d2837021a6098e..ebbf90e13320d0a1ae5dcd70e6b1550bfd78c940 100644
--- a/uni_modules/uni-share/readme.md
+++ b/uni_modules/uni-share/readme.md
@@ -1,57 +1,73 @@
-# uni-share
-例子
-import uniShare from 'uni_modules/uni-share/js_sdk/uni-share.js';
-uniShare({
- menus:[
- {
- "img": "/static/sharemenu/wechatfriend.png",
- "text": "微信好友",
- "share": {
- "provider": "weixin",
- "scene": "WXSceneSession"
- }
- },
- {
- "img": "/static/sharemenu/wechatmoments.png",
- "text": "微信朋友圈",
- "share": {
- "provider": "weixin",
- "scene": "WXSceneSession"
- }
- },
- {
- "img": "/static/sharemenu/weibo.png",
- "text": "微博",
- "share": {
- "provider": "sinaweibo"
- }
- },
- {
- "img": "/static/sharemenu/qq.png",
- "text": "QQ",
- "share": {
- "provider": "qq"
- }
- },
- {
- "img": "/static/sharemenu/copyurl.png",
- "text": "复制",
- "share": "copyurl"
- },
- {
- "img": "/static/sharemenu/more.png",
- "text": "更多",
- "share": "shareSystem"
- }
- ],
- cancelText:"取消分享",
- content:{
- type: 0,
- href: "https://uniapp.dcloud.io/api/plugins/share?id=share",
- title: "主标题",
- summary: "分享内容的摘要",
- imageUrl: "https://uniapp.dcloud.io/api/plugins/share?id=share",
- }
-},e=>{ //callback
- console.log(e);
-})
\ No newline at end of file
+#### 本功能基于[底部图标菜单](https://ext.dcloud.net.cn/plugin?id=4858)封装而成。
+### 示例代码
+```
+ uniShare({
+ content: { //公共的分享参数配置 类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
+ type: 0,
+ href: 'https://uniapp.dcloud.io/',
+ title: '标题',
+ summary: '描述',
+ imageUrl: 'https://img-cdn-aliyun.dcloud.net.cn/stream/icon/__UNI__HelloUniApp.png'
+ },
+ menus: [{
+ "img": "/static/app-plus/sharemenu/wechatfriend.png",
+ "text": "微信好友",
+ "share": { //当前项的分享参数配置。可覆盖公共的配置如下:分享到微信小程序,配置了type=5
+ "provider": "weixin",
+ "scene": "WXSceneSession"
+ }
+ },
+ {
+ "img": "/static/app-plus/sharemenu/wechatmoments.png",
+ "text": "微信朋友圈",
+ "share": {
+ "provider": "weixin",
+ "scene": "WXSenceTimeline"
+ }
+ },
+ {
+ "img": "/static/app-plus/sharemenu/mp_weixin.png",
+ "text": "微信小程序",
+ "share": {
+ provider: "weixin",
+ scene: "WXSceneSession",
+ type: 5,
+ miniProgram: {
+ id: baseappConfig.mp.weixin.id,
+ path: `/pages/list/detail?id=${_id}&title=${title}`,
+ webUrl: baseappConfig.h5.url +
+ `/#/pages/list/detail?id=${_id}&title=${title}`,
+ type: 0
+ },
+ }
+ },
+ {
+ "img": "/static/app-plus/sharemenu/weibo.png",
+ "text": "微博",
+ "share": {
+ "provider": "sinaweibo"
+ }
+ },
+ {
+ "img": "/static/app-plus/sharemenu/qq.png",
+ "text": "QQ",
+ "share": {
+ "provider": "qq"
+ }
+ },
+ {
+ "img": "/static/app-plus/sharemenu/copyurl.png",
+ "text": "复制",
+ "share": "copyurl"
+ },
+ {
+ "img": "/static/app-plus/sharemenu/more.png",
+ "text": "更多",
+ "share": "shareSystem"
+ }
+ ],
+ cancelText: "取消分享",
+ }, e => { //callback
+ console.log(e);
+ })
+```
\ No newline at end of file