yujialong 2 years ago
parent fab6e0aa3d
commit 333013dd5c
  1. 4
      config/request.js
  2. 2
      pages/login/login.vue
  3. 11
      pages/reg/reg.vue
  4. 2
      team/article/article.vue
  5. 2
      team/scheme/scheme.vue
  6. 5
      team/send/send.vue

@ -6,8 +6,8 @@
export default { export default {
// baseURL: 'https://huorantech.cn/', // baseURL: 'https://huorantech.cn/',
baseURL: 'http://192.168.31.151:9000/', // baseURL: 'http://192.168.31.117:9000/',
// baseURL: 'http://121.37.12.51/', baseURL: 'http://121.37.12.51/',
headers: { headers: {
'Content-Type': 'application/json;charset=UTF-8' 'Content-Type': 'application/json;charset=UTF-8'
}, },

@ -45,7 +45,7 @@
} }
}, },
onShow() { onShow() {
uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjgwNTgwODQ5LCJleHAiOjE2ODA2MjQwNDksImFjY291bnRJZCI6IjIxNiJ9.oyssva0Fdvs0i8ud1mU_TF693qMGzx76xyYJiBbzeBI') // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNjgwNTgwODQ5LCJleHAiOjE2ODA2MjQwNDksImFjY291bnRJZCI6IjIxNiJ9.oyssva0Fdvs0i8ud1mU_TF693qMGzx76xyYJiBbzeBI')
// //
this.checkLogin() this.checkLogin()
}, },

@ -126,13 +126,22 @@
this.toIndex() this.toIndex()
}).catch(res => {}) }).catch(res => {})
} else { // or } else { // or
partnerAccountApplication(form).then(res => { partnerAccountApplication(form).then(({ token, teamId }) => {
this.$util.sucMsg(form.isTeam === 0 ? '创建成功' : '注册成功') this.$util.sucMsg(form.isTeam === 0 ? '创建成功' : '注册成功')
// tokenteamId
if (token) {
teamId && uni.setStorageSync('teamId', teamId)
uni.setStorageSync('token', token)
setTimeout(() => {
this.toIndex()
}, 1500)
} else {
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: '../login/login' url: '../login/login'
}) })
}, 1500) }, 1500)
}
}).catch(res => {}) }).catch(res => {})
} }
}, },

@ -63,7 +63,7 @@
}, },
// //
download(item) { download(item) {
this.$util.to(`../send/send?url=${item.filePath}`) this.$util.to(`../send/send?url=${item.filePath}&copyWriting=${item.fileName}`)
// uni.showLoading({ // uni.showLoading({
// title: '...', // title: '...',
// mask: true // mask: true

@ -44,7 +44,7 @@
}, },
// //
download() { download() {
this.$util.to(`../send/send?url=${this.form.schemeFile}`) this.$util.to(`../send/send?url=${this.form.schemeFile}&copyWriting=${this.form.fileName}`)
// uni.showLoading({ // uni.showLoading({
// title: '', // title: '',
// mask: true // mask: true

@ -25,6 +25,7 @@
export default { export default {
data() { data() {
return { return {
copyWriting: '',
url: '', url: '',
email: '', email: '',
otherEmail: '', otherEmail: '',
@ -40,6 +41,7 @@
const pages = getCurrentPages() const pages = getCurrentPages()
const { options } = pages[pages.length - 1] const { options } = pages[pages.length - 1]
this.url = options.url this.url = options.url
this.copyWriting = options.copyWriting
this.getInfo() this.getInfo()
}, },
methods: { methods: {
@ -65,7 +67,8 @@
if (this.myVal && !this.email) return this.$util.errMsg('请选择其他邮箱!') if (this.myVal && !this.email) return this.$util.errMsg('请选择其他邮箱!')
if (this.otherVal && !otherEmail) return this.$util.errMsg('请输入邮箱!') if (this.otherVal && !otherEmail) return this.$util.errMsg('请输入邮箱!')
mailFileSend({ mailFileSend({
copyWriting: this.url, url: this.url,
copyWriting: this.copyWriting,
mail: this.myVal ? this.email : otherEmail mail: this.myVal ? this.email : otherEmail
}).then(res => { }).then(res => {
this.$util.sucMsg('发送成功!') this.$util.sucMsg('发送成功!')

Loading…
Cancel
Save