yujialong 1 year ago
parent 36566437fc
commit 0893a628ef
  1. 1
      components/sideSelect/sideSelect.vue
  2. 10
      other/registeredActivity/registeredActivity.vue
  3. 10
      pages.json
  4. 6
      pages/index/index.vue
  5. 15
      pages/person/person.vue
  6. 188
      pages/supplier/supplier.vue
  7. 6
      team/auth/auth.vue
  8. 73
      team/certified/certified.vue
  9. 2
      team/info/info.vue
  10. 21
      team/infoEdit/infoEdit.vue

@ -21,6 +21,7 @@
methods: { methods: {
menuChange(item) { menuChange(item) {
this.cur = item.id this.cur = item.id
this.$emit('menuClick', item)
} }
} }
} }

@ -6,7 +6,7 @@
</view> </view>
<view class="wrap"> <view class="wrap">
<sideSelect :menus="menus" /> <sideSelect :menus="menus" @menuClick="menuClick" />
<view class="list"> <view class="list">
<uni-swipe-action> <uni-swipe-action>
<uni-swipe-action-item <uni-swipe-action-item
@ -300,18 +300,18 @@
}) })
} }
}, },
//
menuClick(e) {
}
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.page {
// background-color: #fff;
}
.wrap { .wrap {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin: 0 0;
} }
.list { .list {
flex: 1; flex: 1;

@ -154,6 +154,14 @@
"navigationBarTitleText" : "信息维护", "navigationBarTitleText" : "信息维护",
"enablePullDownRefresh" : false "enablePullDownRefresh" : false
} }
},
{
"path" : "certified/certified",
"style" :
{
"navigationBarTitleText" : "幼儿园认证",
"enablePullDownRefresh" : false
}
} }
] ]
} }
@ -161,7 +169,7 @@
"preloadRule": { "preloadRule": {
"pages/index/index": { "pages/index/index": {
"network": "all", "network": "all",
"packages": ["order"] "packages": ["other"]
} }
}, },
"condition": { // "condition": { //

@ -2,7 +2,7 @@
<view :class="[{oh: !per}]"> <view :class="[{oh: !per}]">
<view class="page"> <view class="page">
<view class="search-wrap"> <view class="search-wrap">
<uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="searchConfirm" /> <uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="initList" />
<view> <view>
<uni-icons type="notification" size="20"></uni-icons> <uni-icons type="notification" size="20"></uni-icons>
</view> </view>
@ -173,10 +173,6 @@
this.$set(item, 'signing', signing) this.$set(item, 'signing', signing)
}, },
//
searchConfirm() {
this.initList()
},
// //
toDetail(item) { toDetail(item) {
this.$util.to('/other/activityDetail/activityDetail?id=' + item.id) this.$util.to('/other/activityDetail/activityDetail?id=' + item.id)

@ -18,7 +18,7 @@
<view class="title">基础功能</view> <view class="title">基础功能</view>
<ul class="func"> <ul class="func">
<li @click="toPage('')"> <li @click="tips">
<image src="https://occupationlab.com/images/preschoolEdu/icon1.png" /> <image src="https://occupationlab.com/images/preschoolEdu/icon1.png" />
<view class="text ell">我的电子券</view> <view class="text ell">我的电子券</view>
</li> </li>
@ -49,7 +49,7 @@
<view class="supplier"> <view class="supplier">
<view class="title">我是供应商</view> <view class="title">我是供应商</view>
<view class="badge">供应商负责人</view> <view class="badge">供应商负责人</view>
<view class="auth">未认证</view> <view class="auth" @click="toPage('/team/certified/certified')">未认证</view>
</view> </view>
</view> </view>
@ -122,7 +122,8 @@
teams: [], teams: [],
my: { my: {
info: { info: {
phone: '' userName: '谢道韫',
phone: '1356413671'
}, },
teamInfo: { teamInfo: {
annualMarketingFee: '', annualMarketingFee: '',
@ -310,8 +311,8 @@
border-radius: 50%; border-radius: 50%;
} }
.avatar { .avatar {
width: 120rpx; width: 100rpx;
height: 120rpx; height: 100rpx;
border: 0; border: 0;
} }
.text { .text {
@ -319,11 +320,11 @@
} }
.name { .name {
margin-bottom: 10rpx; margin-bottom: 10rpx;
font-size: 40rpx; font-size: 32rpx;
color: #333; color: #333;
} }
.phone { .phone {
font-size: 28rpx; font-size: 26rpx;
color: #333; color: #333;
} }
.tag { .tag {

@ -5,32 +5,30 @@
<uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="searchConfirm" /> <uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="searchConfirm" />
</view> </view>
<view class="banner"> <image class="banner" src="@/static/image/info-bg.jpg" mode="widthFix"></image>
<image class="pic" src="@/static/image/info-bg.jpg" mode="widthFix"></image>
</view>
<ul class="tab"> <view class="wrap">
<li v-for="(tab, i) in tabs" :class="{active: curTab === tab.id}" @click="tabChange(tab)">{{ tab.name }}</li> <sideSelect :menus="menus" @menuClick="menuClick" />
</ul> <view class="list">
<view class="list"> <view class="item" v-for="(item, i) in list" :key="i" @click="toDetail(item)">
<li v-for="(item, i) in list" :key="i" @click="toDetail(item)"> <view class="pro-name">
<view class="pro-name"> <image class="icon" src="@/static/image/info-bg.jpg"></image>
<image class="icon" src="@/static/image/info-bg.jpg"></image> {{ item.productName }}
{{ item.productName }}
</view>
<view class="info">
<view class="line">
<text class="name">产品简介</text>
<view class="val ell-wrap">
<view class="ell">{{ item.productIntroduction }}</view>
</view>
</view> </view>
<view class="line"> <view class="info">
<text class="name">产品类型</text> <view class="line">
<text class="val">{{ item.typeName }}</text> <text class="name">产品简介</text>
<view class="val ell-wrap">
<view class="ell">{{ item.productIntroduction }}</view>
</view>
</view>
<view class="line">
<text class="name">产品类型</text>
<text class="val">{{ item.typeName }}</text>
</view>
</view> </view>
</view> </view>
</li> </view>
</view> </view>
</view> </view>
<view v-if="!per" class="per-mask">功能升级中敬请期待...</view> <view v-if="!per" class="per-mask">功能升级中敬请期待...</view>
@ -46,6 +44,40 @@
return { return {
per: true, // per: true, //
teamId: uni.getStorageSync('teamId') || '', teamId: uni.getStorageSync('teamId') || '',
menus: [
{
id: '',
name: '全部'
},
{
id: 1,
name: '服装'
},
{
id: 2,
name: '教具'
},
{
id: 3,
name: '课程'
},
{
id: 4,
name: '家具'
},
{
id: 4,
name: '设备'
},
{
id: 4,
name: '服务'
},
{
id: 4,
name: '其它'
},
],
list: [], list: [],
keyword: '', keyword: '',
tags: [], tags: [],
@ -69,7 +101,7 @@
this.keyword = '' this.keyword = ''
this.per = true this.per = true
// this.getInfo() // this.getInfo()
// this.getShopCart() // this.getProducts()
}, },
methods: { methods: {
// //
@ -79,85 +111,6 @@
} }
// this.getProducts() // this.getProducts()
}, },
//
getAuth() {
uni.getStorageSync('token') && getUserRolesPermissionMenu({
teamId: this.list.find(e => e.teamId == this.teamId).partnerClassificationId,
platformId: 4
}).then(({ permissionMenu }) => {
uni.hideLoading()
const auth = []
//
const generateAuth = (list, parent) => {
list.map(e => {
const name = `${parent ? parent + ':' : ''}${e.name}`
auth.push(name)
generateAuth(e.children, name)
})
}
generateAuth(permissionMenu[0].children, '')
uni.setStorageSync('auth', auth)
this.$forceUpdate()
this.initRole()
}).catch(e => {
uni.hideLoading()
uni.setStorageSync('auth', [])
this.initRole()
})
},
//
getInfo() {
uni.showLoading({
title: '加载中'
})
getTeamsByAccountId().then(({ data }) => {
data.map(e => {
const n = e.partnerClassificationList
e.id = n.id
// parnerIdidteamIduni.getStorageSync('team').partnerId使
e.teamId = e.isTeam == 1 ? +e.partnerClassificationId : n.id
e.partnerClassificationName = n.partnerClassificationName
delete e.partnerClassificationList
})
if (data.length) {
/**
* @description 如果是第一次进则默认选中第一个团队并把该团队的信息存入缓存
* 或者团队列表里没有该id则说明超管已经被转让也需要重新选中团队
*/
if (!uni.getStorageSync('team') || !data.find(e => e.teamId == this.teamId)) {
this.teamId = data[0].teamId
uni.setStorageSync('team', data[0])
}
} else {
// 退
uni.hideLoading()
uni.clearStorageSync()
uni.navigateTo({
url: '../login/login'
})
}
this.list = data
this.getAuth()
}).catch(e => {
uni.hideLoading()
})
},
//
getTags() {
tagsList().then(res => {
this.tags = res.tagsList.slice(0, 8)
}).catch(e => {})
},
//
getShopCart() {
shoppingCartList({
pageNum: 1,
pageSize: 1000,
}).then(({ data }) => {
this.total = data.total
}).catch(e => {})
},
// //
getProducts() { getProducts() {
// //
@ -173,25 +126,10 @@
}) })
this.hotProducts = page.records this.hotProducts = page.records
}).catch(e => {}) }).catch(e => {})
//
listOfGoods({
pageNum: 1,
pageSize: 5,
sort: 0,
isShelves: 0,
hotTag: 1,
selection: 1
}).then(({ page }) => {
page.records.forEach(e => {
e.productIntroduction = this.$util.removeTag(e.productIntroduction)
})
this.offcialProducts = page.records
}).catch(e => {})
}, },
// //
searchConfirm(e) { searchConfirm(e) {
e.value && this.$util.to(`/order/products/products?keyword=${e.value}`)
}, },
// //
toHot(item) { toHot(item) {
@ -216,13 +154,17 @@
<style scoped lang="scss"> <style scoped lang="scss">
.banner { .banner {
position: relative; display: block;
.pic { width: 100%;
width: 100%; border: 0;
} }
.wrap {
display: flex;
align-items: flex-start;
} }
.list { .list {
li { flex: 1;
.item {
padding: 24rpx; padding: 24rpx;
margin: 16rpx 24rpx; margin: 16rpx 24rpx;
background-color: #fff; background-color: #fff;

@ -70,9 +70,9 @@
uploadYY() { uploadYY() {
const that = this const that = this
uni.chooseImage({ uni.chooseImage({
success: (chooseImageRes) => { success: (res) => {
const tempFilePaths = chooseImageRes.tempFilePaths[0]; const file = res.tempFilePaths[0];
OSS(tempFilePaths, (name) => { OSS(file, (name) => {
that.yy = name that.yy = name
}) })
} }

@ -0,0 +1,73 @@
<template>
<view>
<view class="block">
<view class="certified">
<image class="icon" src="https://occupationlab.com/images/preschoolEdu/icon7.png" mode="widthFix" />
<view class="text">您已经通过幼儿园认证</view>
</view>
<view class="form-list">
<view class="line">
<view class="name">幼儿园名称</view>
<view class="val">测试测试</view>
</view>
<view class="line">
<view class="name">统一社会信用代码</view>
<view class="val">测试测试</view>
</view>
<view class="line">
<view class="name">法人</view>
<view class="val">测试测试</view>
</view>
</view>
</view>
<view class="btn-wrap">
<view class="btn" @click="back">确定</view>
</view>
</view>
</template>
<script>
import { my } from '@/apis/modules/parner.js'
export default {
data() {
return {
}
},
onShow() {
// this.getInfo()
},
methods: {
//
getInfo() {
const { partnerId, teamId } = uni.getStorageSync('team')
my({
partnerId,
teamId
}).then(({ my }) => {
this.info = my.info
}).catch(e => {})
},
//
back() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.certified {
padding: 100rpx 0;
text-align: center;
.icon {
width: 80rpx;
margin-bottom: 20rpx;
}
.text {
font-size: 26rpx;
color: #333;
}
}
</style>

@ -53,7 +53,7 @@
} }
}, },
onShow() { onShow() {
this.getInfo() // this.getInfo()
}, },
methods: { methods: {
// //

@ -4,8 +4,8 @@
<view class="form-list"> <view class="form-list">
<view class="line with-arrow"> <view class="line with-arrow">
<view class="name">LOGO</view> <view class="name">LOGO</view>
<view class="val"> <view class="val" @click="uploadLogo">
<image class="avatar" src="@/static/image/info-bg.jpg"></image> <image class="avatar" :src="logo"></image>
<uni-icons type="right" size="18" color="#ababab"></uni-icons> <uni-icons type="right" size="18" color="#ababab"></uni-icons>
</view> </view>
</view> </view>
@ -53,14 +53,15 @@
<script> <script>
import { my } from '@/apis/modules/parner.js' import { my } from '@/apis/modules/parner.js'
import OSS from '@/libs/Oss/upload'
export default { export default {
data() { data() {
return { return {
logo: 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'
} }
}, },
onShow() { onShow() {
this.getInfo() // this.getInfo()
}, },
methods: { methods: {
// //
@ -73,6 +74,18 @@
this.info = my.info this.info = my.info
}).catch(e => {}) }).catch(e => {})
}, },
// logo
uploadLogo() {
const that = this
uni.chooseImage({
success: (res) => {
const file = res.tempFilePaths[0];
OSS(file, (name) => {
that.logo = name
})
}
});
},
// //
submit() { submit() {

Loading…
Cancel
Save