diff --git a/App.vue b/App.vue
index c03cf91bad16f073b0dcba224d2ad417397b50b9..8ae266c1fe43c675cafc3bda70bbcfcc99b1e2e4 100644
--- a/App.vue
+++ b/App.vue
@@ -93,7 +93,7 @@
/* #endif */
}
- /* #ifndef APP-NVUE */
+ /* #ifndef APP-NVUE */
view,
scroll-view,
text,
@@ -105,10 +105,8 @@
box-sizing: border-box;
flex-direction: column;
}
-
scroll-view {
-webkit-overflow-scrolling: touch;
}
-
- /* #endif */
+ /* #endif */
diff --git a/baseapp.config.js b/baseapp.config.js
index 43d68646865f3b2e156a618956c6c1c7eb452042..c7ec7023bcd295c224974d0e75095697ea97178a 100644
--- a/baseapp.config.js
+++ b/baseapp.config.js
@@ -18,7 +18,14 @@ module.exports = {
"/uni_modules/uni-news-favorite/pages/uni-news-favorite/list",
"/pages/ucenter/edit/uploadCutImageToUnicloud"
],
- "login": [ "smsCode","univerify", "username", "weixin", "apple"] //默认就是短信验证码登陆
+ "login": [ "smsCode","uniVerify", "username", "weixin", "apple"],
+ /*
+ 根据数组的第0项,决定登陆方式的第一优先级。
+ 为完全列举到的或设备环境不支持的选项,将被隐藏。
+ 快捷登陆按钮,在任意一页面都存在。
+ 所以只有三种情况:
+ 一键登录(uniVerify)、账号(username)、验证码登陆(其他值为第一项都为验证码登陆)
+ */
},
"about": {
"appName": "base-app",
diff --git a/common/appInit.js b/common/appInit.js
index 8da69676e94c6e5c8c5f569485c0320a99494579..0a807143d87870ed4664b6e710c122b9131239d2 100644
--- a/common/appInit.js
+++ b/common/appInit.js
@@ -8,8 +8,7 @@ export default function() {
initAppVersion();
// baseappConfig挂载到getApp().
- getApp({allowDefault: true}).config = baseappConfig;
-
+ getApp({allowDefault: true}).config = baseappConfig;
//自定义路由拦截
const {
@@ -41,8 +40,8 @@ export default function() {
}
//控制登陆优先级
if (url == '/pages/ucenter/login-page/index/index') {
- //一键登录(univerify)、密码登陆(username)、快捷登录&验证码登陆(!univerify&password)
- if (login[0] == 'univerify') {
+ //一键登录(uniVerify)、账号(username)、验证码登陆(短信smsCode)
+ if (login[0] == 'uniVerify') {
// console.log(e.url,url);
if (e.url == url) {
e.url += '?'
@@ -67,7 +66,7 @@ export default function() {
fail(e) { // 失败回调拦截
console.log(e);
if (
- e.errCode === 11 && uni.getSystemInfoSync().platform == "android" ||
+ e.errCode === 11 && uni.getSystemInfoSync().platform == "android" ||
e.errCode === 2 && uni.getSystemInfoSync().platform == "ios"
){
uni.showModal({
diff --git a/common/extiLogin.js b/common/extiLogin.js
deleted file mode 100644
index 17ab4c3d59ffe239d921c96f9b306b6f292c3ebe..0000000000000000000000000000000000000000
--- a/common/extiLogin.js
+++ /dev/null
@@ -1,25 +0,0 @@
-export default function(result){
- uni.showToast({
- title: '登陆成功',
- icon: 'none'
- });
- console.log('登陆成功',result);
- uni.setStorageSync('uni_id_uid', result.uid)
- uni.setStorageSync('uni_id_token', result.token)
- uni.setStorageSync('uni_id_token_expired', result.tokenExpired)
- //delete result.userInfo.token
- // this.setUserInfo(result.userInfo)
-
- var delta = 0//判断需要返回几层
- let pages = getCurrentPages();
- // console.log(pages);
- pages.forEach((page,index)=>{
- // console.log(pages[pages.length-index-1].route.split('/')[2]);
- pages[pages.length-index-1].route.split('/')
- if(pages[pages.length-index-1].route.split('/')[2] == 'login-page'){
- delta ++
- }
- })
- // console.log('判断需要返回几层',delta);
- uni.navigateBack({delta})
-}
\ No newline at end of file
diff --git a/components/auth-btn/auth-btn.vue b/components/auth-btn/auth-btn.vue
deleted file mode 100644
index 2047000e7eb74d46c4b94846b40bf0ab52521908..0000000000000000000000000000000000000000
--- a/components/auth-btn/auth-btn.vue
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
-
- ···
-
-
-
-
-
-
-
diff --git a/components/login-action-sheet/login-action-sheet.vue b/components/login-action-sheet/login-action-sheet.vue
deleted file mode 100644
index f73419734a3343f20af1ad8c3344ddecf3fa6062..0000000000000000000000000000000000000000
--- a/components/login-action-sheet/login-action-sheet.vue
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
-
- {{providerName[item.value]}}
-
-
-
- 取消
-
-
-
-
-
-
-
-
diff --git a/components/null/null.vue b/components/null/null.vue
new file mode 100644
index 0000000000000000000000000000000000000000..7bf8b74da2fce9508d3476b82d7267650586f019
--- /dev/null
+++ b/components/null/null.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
diff --git a/components/refreshBox/refreshBox.nvue b/components/refreshBox/refreshBox.nvue
new file mode 100644
index 0000000000000000000000000000000000000000..54ce6cce48d98e2ed8e81958b2c1846b1e482ee9
--- /dev/null
+++ b/components/refreshBox/refreshBox.nvue
@@ -0,0 +1,71 @@
+
+
+
+
+ {{config[state].text}}
+
+
+
+
+
+
+
diff --git a/components/u-parse/components/wxParseAudio.vue b/components/u-parse/components/wxParseAudio.vue
deleted file mode 100644
index b277717f10b99d3f569da411b04528a40c22d222..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseAudio.vue
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
diff --git a/components/u-parse/components/wxParseImg.vue b/components/u-parse/components/wxParseImg.vue
deleted file mode 100644
index de9978b1db7ad66b051a3cc506486ff9c28c9ce9..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseImg.vue
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
-
diff --git a/components/u-parse/components/wxParseTable.vue b/components/u-parse/components/wxParseTable.vue
deleted file mode 100644
index e1e25bf5ebeeb03d4de0c30eaac30eade2a7011e..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTable.vue
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/u-parse/components/wxParseTemplate0.vue b/components/u-parse/components/wxParseTemplate0.vue
deleted file mode 100644
index 01bf8e167bd04c35944a1aa215bf21872db0566f..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate0.vue
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate1.vue b/components/u-parse/components/wxParseTemplate1.vue
deleted file mode 100644
index 7054e35fa54630114d83705331c35d8041ef1306..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate1.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate10.vue b/components/u-parse/components/wxParseTemplate10.vue
deleted file mode 100644
index 11c252ce6a46fb73063dc69f5742a0e5112d3792..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate10.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate11.vue b/components/u-parse/components/wxParseTemplate11.vue
deleted file mode 100644
index 0d04e53c4fca34129d60c608e73f10a994cf2b24..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate11.vue
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate2.vue b/components/u-parse/components/wxParseTemplate2.vue
deleted file mode 100644
index f06782a14c142d95f5536a9603b0bc28de88bfb7..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate2.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate3.vue b/components/u-parse/components/wxParseTemplate3.vue
deleted file mode 100644
index b0943f8498307ce0375e700935ce6cbf4d2a3991..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate3.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate4.vue b/components/u-parse/components/wxParseTemplate4.vue
deleted file mode 100644
index 8a437564ccf7d7b5f33936b7a8a8281012d8247d..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate4.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate5.vue b/components/u-parse/components/wxParseTemplate5.vue
deleted file mode 100644
index 0c0993e39cd367438d2899cc53398ede4c089fe0..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate5.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate6.vue b/components/u-parse/components/wxParseTemplate6.vue
deleted file mode 100644
index 0dca28ae3de8c8d103e62dd4bc527f7a9de500ae..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate6.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate7.vue b/components/u-parse/components/wxParseTemplate7.vue
deleted file mode 100644
index b62acafe60976999276dcafc01ed5e07d7943221..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate7.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate8.vue b/components/u-parse/components/wxParseTemplate8.vue
deleted file mode 100644
index f6fa037d7cdc02c5b26264a8fd4253a3a56276bb..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate8.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseTemplate9.vue b/components/u-parse/components/wxParseTemplate9.vue
deleted file mode 100644
index 47ac81a2bf68433a4e87b53ad6541716c65b42a7..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseTemplate9.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- \n
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{node.text}}
-
-
-
diff --git a/components/u-parse/components/wxParseVideo.vue b/components/u-parse/components/wxParseVideo.vue
deleted file mode 100644
index 7d05285ea5cb5d97bef8cc36a763b498fff4593d..0000000000000000000000000000000000000000
--- a/components/u-parse/components/wxParseVideo.vue
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/components/u-parse/libs/html2json.js b/components/u-parse/libs/html2json.js
deleted file mode 100644
index 09273820f381c410931de744a511a962d75985f1..0000000000000000000000000000000000000000
--- a/components/u-parse/libs/html2json.js
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * html2Json 改造来自: https://github.com/Jxck/html2json
- *
- *
- * author: Di (微信小程序开发工程师)
- * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com)
- * 垂直微信小程序开发交流社区
- *
- * github地址: https://github.com/icindy/wxParse
- *
- * for: 微信小程序富文本解析
- * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184
- */
-
-import wxDiscode from './wxDiscode';
-import HTMLParser from './htmlparser';
-
-function makeMap(str) {
- const obj = {};
- const items = str.split(',');
- for (let i = 0; i < items.length; i += 1) obj[items[i]] = true;
- return obj;
-}
-
-// Block Elements - HTML 5
-const block = makeMap('br,code,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video');
-
-// Inline Elements - HTML 5
-const inline = makeMap('a,abbr,acronym,applet,b,basefont,bdo,big,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var');
-
-// Elements that you can, intentionally, leave open
-// (and which close themselves)
-const closeSelf = makeMap('colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr');
-
-function removeDOCTYPE(html) {
- const isDocument = /
([^]*)<\/body>/.test(html);
- return isDocument ? RegExp.$1 : html;
-}
-
-function trimHtml(html) {
- return html
- .replace(//gi, '')
- .replace(/\/\*.*?\*\//gi, '')
- .replace(/[ ]+/gi, '')
- .replace(/
diff --git a/pages/list/detail.vue b/pages/list/detail.vue
index f0b12e48451efa4f29b44c981d3db6bea1f64039..b622c241347b07518307c36639a6ed2e7eaa8a0c 100644
--- a/pages/list/detail.vue
+++ b/pages/list/detail.vue
@@ -6,25 +6,25 @@
unicloud-db 组件文档:https://uniapp.dcloud.net.cn/uniCloud/unicloud-db-component
DB Schema 规范:https://uniapp.dcloud.net.cn/uniCloud/schema
-->
-
-
-
-
+
+
+
+
{{ title }}
+ foreignKey="opendb-news-articles.user_id" @load="loadData">
-
-
-
+
@@ -50,24 +49,22 @@
-
diff --git a/pages/list/search/search.nvue b/pages/list/search/search.nvue
index 1f59a0cdb097171af8fb33dfd5e805a3fab0d150..f150313062c5ce5cca4feddc304f49f1b021fc1f 100644
--- a/pages/list/search/search.nvue
+++ b/pages/list/search/search.nvue
@@ -296,8 +296,8 @@
},
loadList(text = '') {
getApp().globalData.searchText = text;
- uni.navigateTo({
- url:'/pages/list/news-list'
+ uni.switchTab({
+ url:'/pages/list/list'
})
},
backPage(){
diff --git a/pages/test/test.vue b/pages/test/test copy.vue
similarity index 100%
rename from pages/test/test.vue
rename to pages/test/test copy.vue
diff --git a/pages/test/test.nvue b/pages/test/test.nvue
new file mode 100644
index 0000000000000000000000000000000000000000..8e80ba0ebb3f0c237bee5c15cb4f61b2277dbfdb
--- /dev/null
+++ b/pages/test/test.nvue
@@ -0,0 +1,32 @@
+
+
+
+
+
+ 我是内容{{item}}-{{index}}
+
+ |
+
+
+
+
+
+
+
diff --git a/pages/ucenter/settings/settings.vue b/pages/ucenter/settings/settings.vue
index 553b37e11f19049871b471f3eb0128a1a3e85127..01591bf36828946e4cbe13cc4396b467faec7a2f 100644
--- a/pages/ucenter/settings/settings.vue
+++ b/pages/ucenter/settings/settings.vue
@@ -1,14 +1,21 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
退出登录
登录
@@ -27,33 +34,9 @@
} from 'vuex';
export default {
data() {
- return {
- agreeList: [
- [{
- title: '个人资料',
- event: 'toEdit'
- },
- {
- title: '修改密码',
- event: 'changePwd'
- }
- ],
- [
- //#ifdef APP-PLUS
- {
- title: '推送功能',
- name: 'push',
- event: 'openSetting',
- isChecked: false,
- showSwitch: true
- },
- {
- title: '清理缓存',
- event: 'clearTmp'
- },
- //#endif
- ]
- ]
+ return {
+ supportMode:[],
+ pushIsOn:"wait"
}
},
computed: {
@@ -63,10 +46,25 @@
})
},
onLoad() {
- this.initSoterAuthentication();
+ // #ifdef APP-PLUS || MP-WEIXIN
+ uni.checkIsSupportSoterAuthentication({
+ success: (res) => {
+ console.log(res);
+ this.supportMode = res.supportMode
+ },
+ fail: (err) => {
+ reject(err);
+ }
+ })
+ // #endif
},
- onShow() {
- this.checkPush();
+ onShow() {
+ // 检查手机端获取推送是否开启
+ //#ifdef APP-PLUS
+ setTimeout(()=>{
+ this.pushIsOn = isOn();
+ },1)
+ //#endif
},
methods: {
...mapMutations({
@@ -87,41 +85,14 @@
}
});
},
- checkPush() {
- // 手机端获取推送是否开启
- //#ifdef APP-PLUS
- let pushIsOn = isOn();
- this.agreeList.forEach(item => {
- item.name == 'push' ? (item.isChecked = pushIsOn) : '';
- })
- //#endif
- },
/**
* 添加生物认证选项
- */
- initSoterAuthentication() {
- // #ifdef APP-PLUS || MP-WEIXIN
-
- let checkAuthModeList = [{
- title: '指纹解锁',
- name: 'fingerPrint',
- event: 'startSoterAuthentication'
- }, {
- title: '人脸解锁',
- name: 'facial',
- event: 'startSoterAuthentication'
- }];
- uni.checkIsSupportSoterAuthentication({
- success: (res) => {
- res.supportMode.forEach(item => {
- this.agreeList.push([checkAuthModeList.find(mode => mode.name == item)]);
- })
- },
- fail: (err) => {
- reject(err);
- }
- })
- // #endif
+ */
+ fingerPrint(){
+
+ },
+ facial(){
+
},
/**
* 开始生物认证
@@ -210,14 +181,6 @@
});
}
},
- /**
- * 每一项的点击事件
- */
- itemClick(item) {
- if (item.event) {
- this[item.event](item);
- }
- },
clearTmp() {
uni.showLoading({
title: '清除中',
@@ -264,7 +227,8 @@
/**
* 打开设置页面
*/
- openSetting() {
+ openSetting() {
+ console.log('openSetting');
setting();
}
}
@@ -326,8 +290,8 @@
background-color: #F9F9F9;
}
- .list-item {
+ .content /deep/ .uni-list-item--disabled,.list-item {
height: 50px;
margin-bottom: 1px;
}
-
+
\ No newline at end of file
diff --git a/pages/ucenter/ucenter.vue b/pages/ucenter/ucenter.vue
index d73d51a0d31c6313105af98f1c67d3917e907b14..c5543f370ea8e16eb55c4e7a3d09eec210f18d21 100644
--- a/pages/ucenter/ucenter.vue
+++ b/pages/ucenter/ucenter.vue
@@ -1,10 +1,10 @@
-
+
{{userInfo.nickname||userInfo.username||userInfo.mobile||'未登录'}}
-
+
@@ -204,23 +204,11 @@