yujialong 9 months ago
parent 50791074c1
commit b7eefb55ee
  1. 58
      other/activityDetail/activityDetail.vue
  2. 3
      other/goodsDetail/goodsDetail.vue
  3. 68
      other/send/send.vue
  4. 8
      pages.json
  5. 6
      pages/person/person.vue
  6. 4
      team/qrcode/qrcode.vue
  7. 2
      team/teams/teams.vue

@ -309,60 +309,12 @@
this.sign()
},
download(item) {
uni.showLoading({
title: '加载中',
mask: true
})
//
uni.downloadFile({
url: item.filePath,
success: function(res) {
console.log('result:', res)
// uni.hideLoading();
if (res.statusCode === 200) {
uni.getFileSystemManager().saveFile({
tempFilePath: res.tempFilePath,
success(res) {
console.log('saveFile:',res.savedFilePath)
uni.openDocument({
filePath: res.savedFilePath,
showMenu: true, //
success: (res) => {
uni.hideLoading()
console.log(res);
},
fail: (e) => {
uni.showToast({
title: '打开失败',
icon: "error"
})
}
})
}
})
}
// uni.showLoading({
// title: '',
// mask: true
// })
// doc, xls, ppt, pdf, docx, xlsx, pptx
// uni.openDocument({
// filePath: res.tempFilePath,
// fileType: 'docx', // doc, xls, ppt, pdf, docx, xlsx, pptx
// showMenu: true, //
// success: res => {
// uni.hideLoading()
// },
// fail: openError => {
// uni.hideLoading()
// }
// })
},
fail: function(err) {
uni.hideLoading()
}
uni.setStorageSync('files', {
copyWriting: this.form.name,
fileName: [item.fileName],
urls: [item.filePath]
})
this.$util.to(`/other/send/send`)
},
}
}

@ -136,7 +136,8 @@
toOrder() {
const el = this.$refs.order
el.remarks = ''
el.getGoods(this.teamId)
el.shopId = this.info.shopId
el.goods = this.info.skuList
el.$refs.popup.open()
},
}

@ -0,0 +1,68 @@
<template>
<view class="container">
<uni-card :is-shadow="false" :border="false" padding="0" is-full>
<view class="form">
<view class="line">
<text>邮箱</text>
<uni-easyinput class="input" v-model="email" placeholder="请输入邮箱" />
</view>
<button type="primary" @click="submit">确认</button>
</view>
</uni-card>
</view>
</template>
<script>
import { mailFileSend } from '@/apis/modules/parner.js'
import { my } from '@/apis/modules/parner.js'
export default {
data() {
return {
email: '',
}
},
onShow() {
},
methods: {
//
submit() {
const { email } = this
if (!email) return this.$util.errMsg('请输入邮箱!')
const data = uni.getStorageSync('files')
data.mail = email
mailFileSend(data).then(res => {
this.$util.sucMsg('发送成功!')
setTimeout(() => {
uni.navigateBack()
}, 1000)
}).catch(e => {})
},
}
}
</script>
<style scoped lang="scss">
.form {
padding: 15px;
background-color: #fff;
}
.line {
display: flex;
align-items: center;
margin-bottom: 15px;
text {
margin-right: 20rpx;
font-size: 28rpx;
}
.input {
flex: 1;
}
}
.bind {
margin-left: 20rpx;
font-size: 26rpx;
color: #1f83ff;
white-space: nowrap;
}
</style>

@ -149,6 +149,14 @@
"navigationBarTitleText" : "商品详情",
"enablePullDownRefresh" : false
}
},
{
"path" : "send/send",
"style" :
{
"navigationBarTitleText" : "下载发送",
"enablePullDownRefresh" : false
}
}
]
},

@ -237,7 +237,7 @@
}
//
const org = result.organizationInfoList.filter(e => !e.isEnable)
const org = result.organizationInfoList.filter(e => !e.isEnable) // isEnable01userAccountList01
if (org && org.length) {
if (org.length) {
/**
@ -250,7 +250,9 @@
uni.setStorageSync('team', org[0])
this.curTeam = org[0]
} else {
this.curTeam = org.find(e => e.teamId == this.teamId)
const team = org.find(e => e.teamId == this.teamId)
this.curTeam = team
uni.setStorageSync('team', team)
}
}
this.isMember = uni.getStorageSync('team').isTeam == 0 //

@ -50,9 +50,9 @@
//
onShareAppMessage(e) {
return {
title: "GPAC",
title: `${this.info.userName}邀请你加入${this.team.organizationName}`,
path: `/team/join/join?accountId=${this.team.accountId}&id=${this.teamId}&isTeam=0&teamName=${this.info.userName}&platformId=${this.platformId}`,
imageUrl: "",
imageUrl: "http://124.71.79.122/images/miniProgram/share.jpg",
success: function(res) {
if (res.errMsg == 'shareAppMessage:ok') {
console.log("成功", res)

@ -188,7 +188,7 @@
padding: 8rpx 16rpx;
font-size: 24rpx;
color: #fff;
background-color: #2979ff;
background-color: #1fbd02;
border-radius: 20px;
}
.btn {

Loading…
Cancel
Save