From b675fda8c9aaa370f0756c74099dbd6a1f004c5b Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Wed, 27 Dec 2023 21:00:29 +0800
Subject: [PATCH] fix
---
apis/modules/supplier.js | 2 +-
apis/modules/user.js | 16 +--
config/request.js | 4 +-
other/activityDetail/activityDetail.vue | 4 -
other/supplierDetail/supplierDetail.vue | 146 +++++++++++++++---------
pages.json | 5 -
pages/person/person.vue | 34 +++---
team/auth/auth.vue | 29 ++++-
team/infoEdit/infoEdit.vue | 8 +-
9 files changed, 151 insertions(+), 97 deletions(-)
diff --git a/apis/modules/supplier.js b/apis/modules/supplier.js
index c381802..e177fd3 100644
--- a/apis/modules/supplier.js
+++ b/apis/modules/supplier.js
@@ -2,5 +2,5 @@ import request from '@/apis/request.js'
const { get, post } = request
export const selectEnterpriseCertificationList = (data) => {
- return post('users/enterprise/certification/selectEnterpriseCertificationList', data)
+ return post('nakadai/enterprise/certification/selectEnterpriseCertificationList', data)
}
diff --git a/apis/modules/user.js b/apis/modules/user.js
index 1a2ac30..e3027fa 100644
--- a/apis/modules/user.js
+++ b/apis/modules/user.js
@@ -8,22 +8,22 @@ export const kindergartenWeChatApplication = (data) => {
return post('nakadai/kindergarten/platformTeamAccount/kindergartenWeChatApplication', data)
}
export const realNameAuthentication = (data) => {
- return post(`users/users/autonym/realNameAuthentication`, data)
+ return post(`nakadai/users/autonym/realNameAuthentication`, data)
}
export const faceAuthentication = (data) => {
- return post(`users/users/autonym/faceAuthentication?imgFile=${data.imgFile}&side=${data.side}`)
+ return post(`nakadai/users/autonym/faceAuthentication?imgFile=${data.imgFile}&side=${data.side}`)
}
export const authenticationOrNot = () => {
- return post(`users/users/autonym/authenticationOrNot`)
+ return post(`nakadai/users/autonym/authenticationOrNot`)
}
export const businessLicensePictureVerification = (imgFile) => {
- return post(`users/users/autonym/businessLicensePictureVerification?imgFile=${imgFile}`)
+ return post(`nakadai/users/autonym/businessLicensePictureVerification?imgFile=${imgFile}`)
}
export const creditCodeAuthentication = (data) => {
- return post(`users/users/autonym/creditCodeAuthentication`, data)
+ return post(`nakadai/users/autonym/creditCodeAuthentication`, data)
}
export const organizationCertification = (data) => {
- return post(`users/users/autonym/organizationCertification`, data)
+ return post(`nakadai/users/autonym/organizationCertification`, data)
}
export const updateTeamInfo = (data) => {
return post(`nakadai/kindergarten/platformTeamAccount/updateTeamInfo`, data)
@@ -35,10 +35,10 @@ export const viewUserDetails = (data) => {
return get(`users/users/userAccount/viewUserDetails`, data)
}
export const enterpriseCertificationStatus = (openId) => {
- return post(`users/enterprise/certification/enterpriseCertificationStatus?openId=${openId}`)
+ return post(`nakadai/enterprise/certification/enterpriseCertificationStatus?openId=${openId}`)
}
export const saveCertification = (data) => {
- return post(`users/enterprise/certification/save`, data)
+ return post(`nakadai/enterprise/certification/save`, data)
}
diff --git a/config/request.js b/config/request.js
index 08ed423..c7a55e0 100644
--- a/config/request.js
+++ b/config/request.js
@@ -6,8 +6,8 @@
export default {
// baseURL: 'https://huorantech.cn/',
- baseURL: 'http://192.168.31.51: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'
},
diff --git a/other/activityDetail/activityDetail.vue b/other/activityDetail/activityDetail.vue
index 764b477..77ba67b 100644
--- a/other/activityDetail/activityDetail.vue
+++ b/other/activityDetail/activityDetail.vue
@@ -50,9 +50,6 @@
{{ item.username }}
-
- 组织名称:
- 手机号:{{ item.phone }}
@@ -275,7 +272,6 @@
.top {
display: flex;
align-items: center;
- margin-bottom: 20rpx;
}
.avatar {
width: 60rpx;
diff --git a/other/supplierDetail/supplierDetail.vue b/other/supplierDetail/supplierDetail.vue
index 41338ba..1095811 100644
--- a/other/supplierDetail/supplierDetail.vue
+++ b/other/supplierDetail/supplierDetail.vue
@@ -2,48 +2,65 @@
{{ form.classificationName }}
+
+
-
+
-
-
-
- 公司简介
-
-
-
-
+
+
+
+ 测试标题
+ ¥12.8
+
+ -->
+
+
+
+
+ 联系我们
+
+
+
@@ -55,32 +72,19 @@
return {
teamId: '',
curTab: 0,
- tabs: [
- {
- name: '详情介绍',
- id: 0
- },
- {
- name: '界面图',
- id: 1
- },
- {
- name: '参数',
- id: 2
- }
- ],
form: {
classificationName: '',
+ slogan: '',
briefIntroduction: ''
},
- shopCartTotal: 0,
- types: [],
+ desPics: [],
+ curPic: 0,
dotsStyles: {
backgroundColor: 'rgba(83, 200, 249,0.3)',
border: '1px rgba(83, 200, 249,0.3) solid',
color: '#fff',
- selectedBackgroundColor: 'rgba(83, 200, 249,0.9)',
- selectedBorder: '1px rgba(83, 200, 249,0.9) solid'
+ selectedBackgroundColor: 'rgba(255, 255, 249,0.9)',
+ selectedBorder: '1px rgba(251, 251, 251,0.9) solid'
},
mpStyle: {
p: 'font-size: 25rpx !important;font-family: Microsoft Yahei !important;font-weight: 400 !important;color: #333 !important;',
@@ -103,9 +107,20 @@
const res = await queryTeamInfo({
teamId: this.teamId
})
- this.form = res.teamInfo
+ const data = res.teamInfo
+ if (data) {
+ // 处理描述图片
+ if (data.pictureUrl) {
+ this.desPics = data.pictureUrl.split(',')
+ }
+ }
+ this.form = data
uni.hideLoading()
},
+ // 描述图片切换
+ picChange(e) {
+ this.curPic = e.detail.current;
+ },
// tab切换
tabChange(id) {
this.curTab = id
@@ -122,6 +137,11 @@
padding: 20rpx;
.name {
font-size: 30rpx;
+ font-weight: 600;
+ }
+ .slogan {
+ margin: 20rpx 0;
+ font-size: 28rpx;
}
}
.tabs {
@@ -148,11 +168,27 @@
}
}
}
+.block {
+ padding: 24rpx;
+}
.detail {
- padding: 34rpx 32rpx;
- margin: 16rpx 0;
- border-radius: 20px;
- background-color: #fff;
+ .title {
+ margin-bottom: 20rpx;
+ font-size: 28rpx;
+ font-weight: 600;
+ }
+ .pics {
+ margin: 20rpx 0;
+ .pic {
+ width: 100%;
+ height: 300rpx;
+ }
+ }
+ .des {
+ margin-top: 20rpx;
+ font-size: 26rpx;
+ line-height: 1.6;
+ }
}
.list {
display: flex;
diff --git a/pages.json b/pages.json
index aaa0089..3b23ca0 100644
--- a/pages.json
+++ b/pages.json
@@ -212,11 +212,6 @@
"iconPath": "static/image/tab2.png",
"selectedIconPath": "static/image/tab2-1.png",
"text": "供应商"
- },{
- "pagePath": "pages/shop/shop",
- "iconPath": "static/image/tab3.png",
- "selectedIconPath": "static/image/tab3-1.png",
- "text": "商城"
}, {
"pagePath": "pages/person/person",
"iconPath": "static/image/tab4.png",
diff --git a/pages/person/person.vue b/pages/person/person.vue
index 46d7c5f..32ec4a7 100644
--- a/pages/person/person.vue
+++ b/pages/person/person.vue
@@ -14,14 +14,18 @@
-
- {{ info.userName || userName }}
+
+
+ {{ info.userName || userName }}
+
+ {{ info.authentication }}
+
+
+
+
{{ curAccount.account || info.phone }}
-
- {{ info.authentication }}
-
-
+
@@ -128,10 +132,6 @@
我要采购
-
-
- 对账管理
-
@@ -172,7 +172,9 @@
openId: uni.getStorageSync('openId'),
userName: uni.getStorageSync('userName'),
teams: [],
- info: {},
+ info: {
+ authentication: ''
+ },
enterInfo: {},
headerTop: 0,
auditStatus: '',
@@ -360,7 +362,7 @@
}
.info {
display: flex;
- align-items: flex-start;
+ align-items: center;
padding: 26rpx 0;
.avatar-btn {
padding: 0;
@@ -376,12 +378,13 @@
height: 100rpx;
border: 0;
}
- .text {
- margin-right: 20rpx;
+ .person {
+ display: flex;
+ align-items: center;
+ margin-bottom: 10rpx;
}
.name {
max-width: 49vw;
- margin-bottom: 10rpx;
font-size: 32rpx;
font-weight: 600;
color: #333;
@@ -394,6 +397,7 @@
display: inline-flex;
align-items: center;
padding: 4rpx 16rpx;
+ margin-left: 20rpx;
font-size: 24rpx;
color: $uni-primary;
white-space: nowrap;
diff --git a/team/auth/auth.vue b/team/auth/auth.vue
index 131ac3a..0563cbb 100644
--- a/team/auth/auth.vue
+++ b/team/auth/auth.vue
@@ -108,6 +108,28 @@
}
});
},
+ // 消息推送授权
+ publicNotice() {
+ const that = this
+ uni.requestSubscribeMessage({
+ tmplIds: ['ZB6wTenlv13mivxXwi-DWwjgVoNJ6eUr1vBvNdQGbJw'],
+ success: (res) => {
+ that.$util.sucMsg('提交成功,请重新登录!')
+ setTimeout(() => {
+ uni.clearStorageSync()
+ that.$util.to('/pages/login/login')
+ }, 1500)
+ },
+ fail: function(err) {
+ uni.showToast({
+ title: err,
+ duration: 2000,
+ icon: 'error'
+ });
+ }
+ })
+ },
+ // 提交
async submit() {
if (this.submiting) return false
const { form } = this
@@ -147,11 +169,8 @@
classificationName: form.companyName
})
}
- this.$util.sucMsg('提交成功,请重新登录!')
- setTimeout(() => {
- uni.clearStorageSync()
- this.$util.to('/pages/login/login')
- }, 1500)
+ uni.hideLoading()
+ this.publicNotice()
} catch(e) {
uni.hideLoading()
this.submiting = false
diff --git a/team/infoEdit/infoEdit.vue b/team/infoEdit/infoEdit.vue
index 480fb12..20afe2e 100644
--- a/team/infoEdit/infoEdit.vue
+++ b/team/infoEdit/infoEdit.vue
@@ -123,7 +123,8 @@
provinces: [],
cities: [],
desPics: [],
- submiting: false
+ submiting: false,
+ uploading: false,
}
},
computed: {
@@ -132,7 +133,7 @@
return this.info.platformSource === '6' ? '供应商' : this.info.platformSource === '5' ? '幼儿园' : ''
},
},
- onShow() {
+ onLoad() {
this.getEnterInfo()
this.getProvince()
},
@@ -272,5 +273,8 @@
.arrow-area {
display: none;
}
+ .input-value, .selected-list {
+ padding: 0;
+ }
}