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 @@