master
yujialong 11 months ago
parent f8863f5d14
commit 8d7d86cd7e
  1. 5
      config/request.js
  2. 6
      libs/share.js
  3. 12
      other/activityDetail/activityDetail.vue
  4. 19
      pages/person/person.vue
  5. 7
      pages/supplier/supplier.vue
  6. 24
      team/auth/auth.vue

@ -5,9 +5,8 @@
*/
export default {
// baseURL: 'https://huorantech.cn/',
baseURL: 'http://192.168.31.217:10010/',
// baseURL: 'http://124.71.79.122/',
// baseURL: 'http://192.168.31.217:10010/',
baseURL: 'http://124.71.79.122/',
headers: {
'Content-Type': 'application/json;charset=UTF-8'
},

@ -3,7 +3,7 @@ export default{
onShareAppMessage() {
// 设置转发的参数
return {
title: "职站商城",
title: "GPAC",
// path: '',
imageUrl: "",
success: function(res) {
@ -19,7 +19,7 @@ export default{
// 分享到朋友圈
onShareTimeline:function(res){
return {
title: '职站商城',
title: 'GPAC',
// imageUrl:'/static/image/phone.png',
query:''
}
@ -27,7 +27,7 @@ export default{
// 收藏
onAddToFavorites:function(res) {
return {
title: '职站商城',
title: 'GPAC',
// imageUrl:'/static/image/phone.png',
query: '',
}

@ -44,7 +44,7 @@
<view v-if="!curTab" class="detail">
<mp-html :content="form.description"/>
</view>
<view v-else class="list">
<view v-else-if="curTab === 2" class="list">
<view v-for="(item, i) in list" :key="i" class="item" @click="toDetail(item)">
<view class="top">
<image class="avatar" :src="item.userAvatars || Common.avatar"></image>
@ -54,7 +54,7 @@
</view>
<view class="btns">
<view class="btn share">分享</view>
<button class="share" open-type="share">分享</button>
<view :class="['btn sign', {signed: form.signed, disabled: !form.signing}]" @click="presign">{{ form.signed ? '取消报名' : '立刻报名' }}</view>
</view>
@ -257,6 +257,7 @@
.banner {
.pic {
width: 100%;
max-height: 500rpx;
}
}
.info {
@ -333,9 +334,16 @@
text-align: center;
}
.share {
width: 200rpx;
margin: 0;
font-size: 28rpx;
color: #fff;
text-align: center;
background-color: #75b4ff;
border-radius: 0;
border-top-left-radius: 40rpx;
border-bottom-left-radius: 40rpx;
border: 0;
}
.sign {
background-color: $uni-primary;

@ -203,6 +203,7 @@
// #ifdef MP-WEIXIN
this.headerTop = uni.getMenuButtonBoundingClientRect().top + 8 + 'px'
// #endif
this.platformId = uni.getStorageSync('platformId')
this.per = true
this.getInfo()
if (this.platformId !== 7) {
@ -216,15 +217,15 @@
const { result } = await viewUserDetails({
openId: this.openId
})
// statusfalse退
// if (result.status === false) {
// this.$util.errMsg(result.message)
// setTimeout(() => {
// uni.clearStorageSync()
// this.$util.to('/pages/login/login')
// }, 1500)
// return false
// }
// statustrue退
if (result.status === true) {
this.$util.errMsg(result.message)
setTimeout(() => {
uni.clearStorageSync()
this.$util.to('/pages/login/login')
}, 1500)
return false
}
if (result.hrUserInfo) {
if (!result.hrUserInfo.userAvatars) result.hrUserInfo.userAvatars = Common.avatar //

@ -114,6 +114,7 @@
}
},
onShow() {
this.active = ''
this.keyword = ''
this.per = true
this.typeVisible = false
@ -138,6 +139,7 @@
pageSize: this.pageSize,
platformSource: 6,
keyWord: this.keyword,
supplierClassificationId: this.active,
}).then(async ({ data }) => {
this.list = this.reachBottom > 0 ? [...this.list, ...data.records] : data.records
this.page++ // page+1
@ -155,9 +157,10 @@
this.classifications = list[0].children
},
//
classificationClick(item, query) {
classificationClick(item) {
this.active = item.id
query && this.initList()
this.typeVisible = false
this.initList()
},
//
closeType() {

@ -37,7 +37,7 @@
</template>
<script>
import { creditCodeAuthentication, businessLicensePictureVerification, updateTeamInfo, organizationCertification, kindergartenWeChatApplication } from '@/apis/modules/user.js'
import { enterpriseCertificationStatus, creditCodeAuthentication, businessLicensePictureVerification, updateTeamInfo, organizationCertification, kindergartenWeChatApplication } from '@/apis/modules/user.js'
import OSS from '@/libs/Oss/upload'
export default {
data() {
@ -67,8 +67,21 @@
const pages = getCurrentPages()
const { options } = pages[pages.length - 1]
this.platformId = +options.platformId
this.getEnterInfo()
},
methods: {
//
async getEnterInfo() {
const res = await enterpriseCertificationStatus(this.openId)
if (res.data) {
const { data } = res
this.businessLicensePicture = data.businessLicensePicture || ''
this.licenseForRunningSchool = data.licenseForRunningSchool || ''
this.form.companyName = data.companyName || ''
this.form.creditCode = data.creditCode || ''
this.form.legalPerson = data.legalPerson || ''
}
},
//
uploadBusinessLicense() {
const that = this
@ -114,10 +127,13 @@
uni.requestSubscribeMessage({
tmplIds: ['ZB6wTenlv13mivxXwi-DWwjgVoNJ6eUr1vBvNdQGbJw'],
success: (res) => {
that.$util.sucMsg('提交成功,请重新登录!')
uni.setStorageSync('platformId', that.platformId)
const name = that.platformId == 6 ? '供应商' : '幼儿园'
that.$util.sucMsg(`您已成功提交${name}认证,现在为您切换到${name}端。`)
setTimeout(() => {
uni.clearStorageSync()
that.$util.to('/pages/login/login')
uni.switchTab({
url: '/pages/person/person'
})
}, 1500)
},
fail: function(err) {

Loading…
Cancel
Save