main
liudan 2 years ago
parent c3b6fc1241
commit d93f6453c7
  1. 4
      .hbuilderx/launch.json
  2. 6
      androidPrivacy.json
  3. 2
      manifest.json
  4. 2
      package.json
  5. 3
      pages.json
  6. 3
      pages/detail/detail.vue
  7. 12
      pages/login/login.vue
  8. 15
      pages/register/register.vue
  9. 15
      pages/register/register1.vue
  10. 6
      store/index.js

@ -10,6 +10,10 @@
{ {
"launchtype" : "local" "launchtype" : "local"
}, },
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud" "type" : "uniCloud"
} }
] ]

@ -1,15 +1,15 @@
{ {
"version" : "1", "version" : "6",
"prompt" : "template", "prompt" : "template",
"title" : "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"http://lxwx.h5.njrenzhou.cn/#/pages/my/richText?id=1\">《用户协议》</a>和<a href=\"http://lxwx.h5.njrenzhou.cn/#/pages/my/richText?id=2\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意", "buttonRefuse" : "暂不同意",
"hrefLoader" : "system|default", "hrefLoader" : "system|default",
"backToExit" : "false", "backToExit" : "false",
"second" : { "second" : {
"title" : "确认提示", "title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>,否则将退出应用。", "message" : "  进入应用前,你需先同意<a href=\"http://lxwx.h5.njrenzhou.cn/#/pages/my/richText?id=1\">《用户协议》</a>和<a href=\"http://lxwx.h5.njrenzhou.cn/#/pages/my/richText?id=2\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续", "buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用" "buttonRefuse" : "退出应用"
}, },

@ -8,7 +8,7 @@
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
"usingComponents" : true, "usingComponents" : true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler" : "留学万象",
"compilerVersion" : 3, "compilerVersion" : 3,
"splashscreen" : { "splashscreen" : {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender" : true,

@ -1,5 +1,5 @@
{ {
"name": "lxwx", "name": "留学万象",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "main.js", "main": "main.js",

@ -18,6 +18,7 @@
"style" : "style" :
{ {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
@ -113,7 +114,7 @@
"globalStyle": { "globalStyle": {
"navigationStyle": "custom", "navigationStyle": "custom",
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app", "navigationBarTitleText": "留学万象",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"backgroundColor": "#F3F5F7" "backgroundColor": "#F3F5F7"
}, },

@ -63,6 +63,7 @@
}, },
onLoad(option) { onLoad(option) {
this.id = option.id this.id = option.id
this.$store.commit('shareHandle',this.$mp.page.route+'?id='+this.$mp.page.options.id)
this.articleDetails() this.articleDetails()
// H5: // H5:
// #ifndef APP-PLUS // #ifndef APP-PLUS
@ -132,10 +133,10 @@
'token':uni.getStorageSync('userInfo').token 'token':uni.getStorageSync('userInfo').token
}, },
}).then((res) => { }).then((res) => {
that.$store.commit('shareHandle',this.$mp.page.route+'?id='+this.$mp.page.options.id)
that.$refs.uToast.show({ that.$refs.uToast.show({
message:"分享成功" message:"分享成功"
}) })
that.isCollect = true
}).catch((res) =>{ }).catch((res) =>{
}) })

@ -89,9 +89,15 @@
console.log(res) console.log(res)
that.$store.commit('login',res.userinfo) that.$store.commit('login',res.userinfo)
uni.setStorageSync('source','phone') uni.setStorageSync('source','phone')
uni.reLaunch({ if(that.$store.state.share){
url:'/pages/my/my' uni.navigateTo({
}) url:'/'+that.$store.state.share
})
}else{
uni.reLaunch({
url:'/pages/my/my'
})
}
}) })
} }
}); });

@ -110,9 +110,18 @@
console.log(res) console.log(res)
that.$store.commit('login',res.userinfo) that.$store.commit('login',res.userinfo)
uni.setStorageSync('source','phone') uni.setStorageSync('source','phone')
uni.reLaunch({ // uni.reLaunch({
url:'/pages/my/my' // url:'/pages/my/my'
}) // })
if(that.$store.state.share){
uni.navigateTo({
url:"/"+that.$store.state.share
})
}else{
uni.reLaunch({
url:'/pages/my/my'
})
}
}) })
} }
}); });

@ -63,9 +63,18 @@
// uni.reLaunch({ // uni.reLaunch({
// url: '/'+currentPage // url: '/'+currentPage
// }); // });
uni.reLaunch({ if(this.$store.state.share){
url:'/pages/my/my' uni.navigateTo({
}) url:"/"+this.$store.state.share
})
}else{
uni.reLaunch({
url:'/pages/my/my'
})
}
// uni.reLaunch({
// url:'/pages/my/my'
// })
// uni.setStorageSync('token', res.userinfo) // uni.setStorageSync('token', res.userinfo)
}).catch((res)=>{ }).catch((res)=>{
if(res.code==0){ if(res.code==0){

@ -5,7 +5,8 @@ const store = new Vuex.Store({
state: { state: {
hasLogin: false, hasLogin: false,
userInfo: {}, userInfo: {},
source:'phone' source:'phone',
share:''
}, },
mutations: { mutations: {
login(state, provider) { login(state, provider) {
@ -26,6 +27,9 @@ const store = new Vuex.Store({
uni.removeStorage({ uni.removeStorage({
key: 'userInfo' key: 'userInfo'
}) })
},
shareHandle(state,value){
state.share = value;
} }
}, },
actions: { actions: {

Loading…
Cancel
Save