diff --git a/other/activityDetail/activityDetail.vue b/other/activityDetail/activityDetail.vue
index 3883738..fb70d28 100644
--- a/other/activityDetail/activityDetail.vue
+++ b/other/activityDetail/activityDetail.vue
@@ -55,7 +55,7 @@
- {{ stopSign ? '已截止报名' : comStatus === 1 ? (signed ? '取消报名' : '立刻报名') : statusList[comStatus] }}
+ {{ stopSign ? (signed ? '已报名' : '已截止报名') : comStatus === 1 ? (signed ? '取消报名' : '立刻报名') : statusList[comStatus] }}
@@ -162,7 +162,6 @@
handleStatus () {
const data = this.form
let status = 0
- let signed = 0 // 是否已经报了名
const signUpStartTime = new Date(data.signUpStartTime) // 报名开始时间
const signUpEndTime = new Date(data.signUpEndTime) // 报名结束时间
const playStartTime = new Date(data.playStartTime) // 活动开始时间
@@ -175,7 +174,6 @@
} else if (now > signUpStartTime && now < signUpEndTime) {
// 报名中
status = 1
- if (data.competitionRegistration) signed = 1
} else if (now > signUpEndTime && now < playEndTime) {
// 已截止报名
this.stopSign = 1
@@ -184,7 +182,7 @@
status = 2
}
this.comStatus = status
- this.signed = signed
+ this.signed = data.competitionRegistration ? 1 : 0
},
// 已报名人员
getRegList() {
diff --git a/other/addGoods/addGoods.vue b/other/addGoods/addGoods.vue
index 9ef706f..8843683 100644
--- a/other/addGoods/addGoods.vue
+++ b/other/addGoods/addGoods.vue
@@ -66,11 +66,11 @@
售价:
-
+
市场价:
-
+
@@ -85,6 +85,7 @@
export default {
data() {
return {
+ team: uni.getStorageSync('team'),
openId: uni.getStorageSync('openId'),
prodId: '',
form: {
@@ -253,6 +254,7 @@
})
form.totalStocks = stocks
form.status = status
+ form.shopId = this.team.isTeam ? this.team.teamId : this.team.parentId
try {
if (this.prodId) {
await update(form)
diff --git a/other/goods/goods.vue b/other/goods/goods.vue
index 3ef4939..3b3356b 100644
--- a/other/goods/goods.vue
+++ b/other/goods/goods.vue
@@ -5,7 +5,7 @@
- 全部
- - 已上架({{ status1 }})
+ - 已上架({{ status1 }})
- 已下架({{ status2 }})
- 草稿({{ status3 }})
@@ -56,6 +56,8 @@
export default {
data() {
return {
+ team: uni.getStorageSync('team'),
+ isTeam: uni.getStorageSync('team').isTeam == 1, // 队长
Goods,
curTab: '',
tabs: [],
@@ -113,6 +115,7 @@
status: this.curTab,
current: this.page,
prodName: this.keyword,
+ shopId: this.team.isTeam ? this.team.teamId : this.team.parentId
}).then(({ page, productCount }) => {
// 各种状态的商品数量
const status1 = productCount.find(e => e.status === 1)
diff --git a/other/goodsDetail/goodsDetail.vue b/other/goodsDetail/goodsDetail.vue
index bf35835..a8cd1ed 100644
--- a/other/goodsDetail/goodsDetail.vue
+++ b/other/goodsDetail/goodsDetail.vue
@@ -37,7 +37,7 @@
-
+
编辑
@@ -49,6 +49,7 @@
export default {
data() {
return {
+ isTeam: uni.getStorageSync('team').isTeam == 1, // 队长
prodId: '',
curPic: 0,
pic: [],
diff --git a/other/supplierDetail/supplierDetail.vue b/other/supplierDetail/supplierDetail.vue
index 81a40f5..c48f411 100644
--- a/other/supplierDetail/supplierDetail.vue
+++ b/other/supplierDetail/supplierDetail.vue
@@ -139,6 +139,7 @@
const { options } = pages[pages.length - 1]
this.teamId = options.teamId
this.accountId = options.accountId
+ this.page = 1
this.getInfo()
this.getGoods()
},
@@ -174,6 +175,9 @@
shopId: this.teamId,
})
const list = res.page.records
+ list.forEach(e => {
+ if (e.pic) e.pic = e.pic.split(',')[0]
+ })
this.goods = this.reachBottom > 0 ? [...this.goods, ...list] : list
this.page++ // 每次获取了数据后page+1
const noMore = this.goods.length === res.page.total // 是否加载完所有数据
@@ -252,9 +256,9 @@
color: #000;
}
.logo {
- width: 80rpx;
- min-width: 80rpx;
- height: 80rpx;
+ width: 100rpx;
+ min-width: 100rpx;
+ height: 100rpx;
margin-right: 20rpx;
border-radius: 50%;
}
@@ -280,7 +284,7 @@
background-color: #fff;
.pics {
margin: 20rpx 0;
- .pic {
+ swiper, .pic {
width: 100%;
height: 500rpx;
}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index a57dc7c..28a6104 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -138,8 +138,8 @@
this.menuBtnInfo = uni.getMenuButtonBoundingClientRect()
// .top + 8 + 'px'
// #endif
- // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzA0Nzg1NDg5LCJleHAiOjE3MDU2NDk0ODksImFjY291bnRJZCI6IjQ5ODMiLCJzaG9wSWQiOjYsInBsYXRmb3JtSWQiOjV9.B0gXKl9gOEi9oSNZl8M_gGcqFXf9hAYbqtVHygDoYxM')
- // uni.setStorageSync('openId', 'o3hKk60jbhAuLm4K3weIgQGFmv2g')
+ // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzA1OTk4NTU2LCJleHAiOjE3MDY4NjI1NTYsImFjY291bnRJZCI6IjUwNTAiLCJzaG9wSWQiOjM2LCJwbGF0Zm9ybUlkIjo2fQ.y4PVCH76hXp3gC1J44h83KpYBmfIyeM4SP8G7ru3P8M')
+ // uni.setStorageSync('openId', 'o3hKk686kGjgMygKdPTJd5KQQ7CA')
this.keyword = ''
this.curTab = ''
this.per = true
@@ -263,9 +263,12 @@
// link 1小程序内链接,2外连接
if (item.link === '1') {
const { selectLinkId, correspondingLinkId } = item
- // selectLinkId 1商品,2活动,3供应商,4店铺
+ // selectLinkId 1商品(商品的是有供应商id跟商品id组成),2活动,3供应商,4店铺
if (selectLinkId === '1') {
-
+ if (correspondingLinkId.includes(',')) {
+ const ids = correspondingLinkId.split(',')
+ ids.length === 2 && this.$util.to(`/other/goodsDetail/goodsDetail?prodId=${ids[1]}`)
+ }
} else if (selectLinkId === '2') {
this.$util.to('/other/activityDetail/activityDetail?id=' + correspondingLinkId)
} else if (selectLinkId === '3') {
diff --git a/pages/login/login.vue b/pages/login/login.vue
index c9d7311..72f13c7 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -95,8 +95,8 @@
}
},
onShow() {
- // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzA0Nzg1NDg5LCJleHAiOjE3MDU2NDk0ODksImFjY291bnRJZCI6IjQ5ODMiLCJzaG9wSWQiOjYsInBsYXRmb3JtSWQiOjV9.B0gXKl9gOEi9oSNZl8M_gGcqFXf9hAYbqtVHygDoYxM')
- // uni.setStorageSync('openId', 'o3hKk60jbhAuLm4K3weIgQGFmv2g')
+ // uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyIiwiaWF0IjoxNzA1OTk4NTU2LCJleHAiOjE3MDY4NjI1NTYsImFjY291bnRJZCI6IjUwNTAiLCJzaG9wSWQiOjM2LCJwbGF0Zm9ybUlkIjo2fQ.y4PVCH76hXp3gC1J44h83KpYBmfIyeM4SP8G7ru3P8M')
+ // uni.setStorageSync('openId', 'o3hKk686kGjgMygKdPTJd5KQQ7CA')
// 先授权用户信息,再授权手机号
this.checkLogin()
},
@@ -141,12 +141,18 @@
this.isLogin = true
this.isReg = true
} else {
- const e = data.sessionKey
- uni.setStorageSync('token', data.token)
- uni.setStorageSync('platformId', data.platformId)
- uni.setStorageSync('openId', e.openid)
- this.handleTab(data.platformId)
- this.toIndex()
+ if (data.tips) {
+ that.$util.errMsg(data.tips)
+ }
+
+ setTimeout(() => {
+ const e = data.sessionKey
+ uni.setStorageSync('token', data.token)
+ uni.setStorageSync('platformId', data.platformId)
+ uni.setStorageSync('openId', e.openid)
+ this.handleTab(data.platformId)
+ this.toIndex()
+ }, data.tips ? 2000 : 0)
}
}).catch(e => {
this.submiting = false
diff --git a/pages/person/person.vue b/pages/person/person.vue
index a2dbe58..320b465 100644
--- a/pages/person/person.vue
+++ b/pages/person/person.vue
@@ -5,7 +5,7 @@
-
+
@@ -23,7 +23,7 @@
- {{ curAccount.account || info.phone }}
+ {{ curTeam.organizationName }}
@@ -91,7 +91,7 @@
{{ platformName }}负责人
- {{ auditStatus }}
+ {{ curTeam.authentication }}
@@ -160,7 +160,6 @@