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 { export default {
// baseURL: 'https://huorantech.cn/', // baseURL: 'http://192.168.31.217:10010/',
baseURL: 'http://192.168.31.217:10010/', baseURL: 'http://124.71.79.122/',
// baseURL: 'http://124.71.79.122/',
headers: { headers: {
'Content-Type': 'application/json;charset=UTF-8' 'Content-Type': 'application/json;charset=UTF-8'
}, },

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

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

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

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

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

Loading…
Cancel
Save