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 {
// baseURL: 'https://huorantech.cn/',
baseURL: 'http://192.168.31.151:9000/',
// baseURL: 'http://121.37.12.51/',
// baseURL: 'http://192.168.31.117:9000/',
baseURL: 'http://121.37.12.51/',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},

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

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

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

@ -44,7 +44,7 @@
},
//
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({
// title: '',
// mask: true

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

Loading…
Cancel
Save