|
@@ -57,7 +57,7 @@
|
|
|
<span class="linexx">*</span> <span>最多报名人数</span>
|
|
|
</view>
|
|
|
<view class="lineRight">
|
|
|
- <input type="number" v-model="number" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
|
|
|
+ <input :disabled="isExistGroup" type="number" v-model="number" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="line" ><!-- style="border: none;" -->
|
|
@@ -65,7 +65,7 @@
|
|
|
<span class="linexx">*</span> <span>支付方式</span>
|
|
|
</view>
|
|
|
<view class="lineRight payBox">
|
|
|
- <view class="payType" @click="payType=1">
|
|
|
+ <view class="payType" @click="payTypeCL(1)">
|
|
|
<img src="../../static/img/ckn.png" alt="" class="payTypeImg" v-if="payType!=1">
|
|
|
<img src="../../static/img/cky.png" alt="" class="payTypeImg" v-if="payType==1">
|
|
|
<view class="payTypeTxt">在线支付</view>
|
|
@@ -82,7 +82,7 @@
|
|
|
<span class="linexx">*</span> <span>支付金额</span>
|
|
|
</view>
|
|
|
<view class="lineRight">
|
|
|
- <input type="text" v-model="money" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
|
|
|
+ <input :disabled="isExistGroup" type="text" v-model="money" placeholder="请输入" class="lineRightInput" placeholder-class="inputPlace">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="payType==1">
|
|
@@ -90,7 +90,7 @@
|
|
|
<view class="lineLeft">
|
|
|
<span>拼团设置</span>
|
|
|
</view>
|
|
|
- <view class="lineRight"><switch :checked='groupType' @change="switchgroupType" style="transform:scale(0.8)"/></view>
|
|
|
+ <view class="lineRight"><switch :disabled="isExistGroup" :checked='groupType' @change="switchgroupType" style="transform:scale(0.8)"/></view>
|
|
|
</view>
|
|
|
<view v-if="groupType">
|
|
|
<view class="line" >
|
|
@@ -98,7 +98,7 @@
|
|
|
<span class="linexx">*</span> <span>拼团人数</span>
|
|
|
</view>
|
|
|
<view class="lineRight">
|
|
|
- <input type="number" @blur="blurgroupNumber" v-model="groupNumber" placeholder="可输入大于1的整数" class="lineRightInput" placeholder-class="inputPlace">
|
|
|
+ <input type="number" :disabled="isExistGroup" @blur="blurgroupNumber" v-model="groupNumber" placeholder="可输入大于1的整数" class="lineRightInput" placeholder-class="inputPlace">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="line" >
|
|
@@ -106,7 +106,7 @@
|
|
|
<span class="linexx">*</span> <span>拼团有效期</span>
|
|
|
</view>
|
|
|
<view class="lineRight">
|
|
|
- <input type="digit" @blur="blurgroupTime" v-model="groupTime" placeholder="可输入0.5至72小时" class="linecInput" placeholder-class="inputPlace">
|
|
|
+ <input type="digit" :disabled="isExistGroup" @blur="blurgroupTime" v-model="groupTime" placeholder="可输入0.5至72小时" class="linecInput" placeholder-class="inputPlace">
|
|
|
</view>
|
|
|
<viwe class="lineRight">小时</viwe>
|
|
|
</view>
|
|
@@ -115,7 +115,7 @@
|
|
|
<span class="linexx">*</span> <span>拼团价</span>
|
|
|
</view>
|
|
|
<view class="lineRight">
|
|
|
- <input type="digit" @blur="blurgroupMoney" v-model="groupMoney" placeholder="需小于支付金额" class="linecInput" placeholder-class="inputPlace">
|
|
|
+ <input type="digit" :disabled="isExistGroup" @blur="blurgroupMoney" v-model="groupMoney" placeholder="需小于支付金额" class="linecInput" placeholder-class="inputPlace">
|
|
|
</view>
|
|
|
<viwe class="lineRight">元</viwe>
|
|
|
</view>
|
|
@@ -124,14 +124,14 @@
|
|
|
<span class="linexx">*</span><span>拼团超时自动成团</span>
|
|
|
<image @click="zyct" src="../../static/img/icon_help.png" mode="" class="helpIcon"></image>
|
|
|
</view>
|
|
|
- <view class="lineRight"><switch :checked='groupOutState' @change="switchgroupOutState" style="transform:scale(0.8)"/></view>
|
|
|
+ <view class="lineRight"><switch :disabled="isExistGroup" :checked='groupOutState' @change="switchgroupOutState" style="transform:scale(0.8)"/></view>
|
|
|
</view>
|
|
|
<view class="line line3">
|
|
|
<view class="lineLeft2">
|
|
|
<span class="linexx">*</span><span>自由参团</span>
|
|
|
<image @click="zdct" src="../../static/img/icon_help.png" mode="" class="helpIcon"></image>
|
|
|
</view>
|
|
|
- <view class="lineRight"><switch :checked='groupRestrictions' @change="switchgroupRestrictions" style="transform:scale(0.8)"/></view>
|
|
|
+ <view class="lineRight"><switch :disabled="isExistGroup" :checked='groupRestrictions' @change="switchgroupRestrictions" style="transform:scale(0.8)"/></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -272,9 +272,18 @@
|
|
|
},
|
|
|
methods: {
|
|
|
nopayCl(){
|
|
|
+ if(this.isExistGroup){
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.payType=2;
|
|
|
this.groupType=false
|
|
|
},
|
|
|
+ payTypeCL(){
|
|
|
+ if(this.isExistGroup){
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.payType=1;
|
|
|
+ },
|
|
|
zdct(){
|
|
|
uni.showModal({
|
|
|
title: '自由参团',
|
|
@@ -477,14 +486,14 @@
|
|
|
}
|
|
|
},
|
|
|
preview(){
|
|
|
- if(this.isExistGroup){
|
|
|
+ /* if(this.isExistGroup){
|
|
|
uni.showToast({
|
|
|
- title: '已有用户参与该拼团活动,无法修改活动内容',
|
|
|
+ title: '已有用户参与该拼团活动,无法修改报名信息',
|
|
|
icon:'none',
|
|
|
duration: 3000
|
|
|
});
|
|
|
return false
|
|
|
- }
|
|
|
+ } */
|
|
|
//console.log(this.clWhere)
|
|
|
// if(this.money==0){
|
|
|
// this.money=0
|
|
@@ -645,6 +654,9 @@
|
|
|
this.endTime=e.detail.value;
|
|
|
},
|
|
|
clWhere(num){
|
|
|
+ if(this.isExistGroup){
|
|
|
+ return false
|
|
|
+ }
|
|
|
console.log(this.clWhereList)
|
|
|
this.clWhereString=this.clWhereList.join(',');
|
|
|
if(this.clWhereString.indexOf(num)!=-1){
|