团购修改

ymt-groupSet
游梦婷 1 year ago
parent 89a7fa337c
commit 094c46e762
  1. 5
      components/evan-steps/evan-step.vue
  2. 11
      pages/welcome/welcome.vue
  3. 4
      subpackages/groupBuyingConfiguration/groupProduct/groupProduct.vue
  4. 26
      subpackages/groupBuyingConfiguration/groupProduct/groupProductAdd.vue
  5. 18
      subpackages/groupBuyingConfiguration/storeImg/storeImgAdd.vue
  6. 3
      subpackages/groupBuyingConfiguration/storeProduct/storeProductAdd.vue

@ -347,11 +347,11 @@
position: absolute; position: absolute;
height: 30px; height: 30px;
top: 0; top: 0;
left: 30px; left: 50%;
/* #ifdef APP-NVUE */ /* #ifdef APP-NVUE */
right: -39px; right: -39px;
/* #endif */ /* #endif */
padding: 0 0px 0 40px; padding:0;
/* #ifndef APP-NVUE */ /* #ifndef APP-NVUE */
display: flex; display: flex;
width: 100%; width: 100%;
@ -390,6 +390,7 @@
.evan-step__circle--horizontal { .evan-step__circle--horizontal {
margin-left: 0px; margin-left: 0px;
z-index: 1;
} }
.evan-step__circle--finish {} .evan-step__circle--finish {}

@ -19,8 +19,8 @@
// uni.reLaunch({ // uni.reLaunch({
// // url: '/pages/login/login', // url: '/pages/login/login',
// url: '/subpackages/groupBuyingConfiguration/groupVerify/groupVerify?orderKey='+2925678915731387, // // url: '/subpackages/groupBuyingConfiguration/groupVerify/groupVerify?orderKey='+'4576027622249814',
// }) // })
// return // return
@ -104,11 +104,16 @@
// 0001https://gratia-pay.dctpay.com/cweb?accountId=0001&key=123 // 0001https://gratia-pay.dctpay.com/cweb?accountId=0001&key=123
if (app.globalData.accountId == '0001' && app.globalData.h5code){ if (app.globalData.accountId == '0001' && app.globalData.h5code){
let orderKey = uni.getStorageSync("urlKey"); let orderKey = uni.getStorageSync("urlKey");
if(orderKey){ if(orderKey&&this.userInfo.store.id){
uni.redirectTo({ uni.redirectTo({
url: '/subpackages/groupBuyingConfiguration/groupVerify/groupVerify?orderKey='+orderKey, url: '/subpackages/groupBuyingConfiguration/groupVerify/groupVerify?orderKey='+orderKey,
}) })
return false; return false;
}else{
uni.redirectTo({
url: '/pages/login/login'
})
return false;
} }
} }
return true; return true;

@ -20,7 +20,7 @@
</view> </view>
<view class="flex-1 fotct text1">{{item.name}}</view> <view class="flex-1 fotct text1">{{item.name}}</view>
<view class="flex-1 fotct text1">{{item.price}}</view> <view class="flex-1 fotct text1">{{item.price}}</view>
<view class="flex-1 fotct text1">{{item.status | filterStatus}}</view> <view :class="'flex-1 fotct text1'+(item.status == 2 ? ' fcorred ':'')">{{item.status | filterStatus}}</view>
<next-bubble-menu class="flex-1 fotct font14" :d-width="150" :dataList="item.status | filterDataList" <next-bubble-menu class="flex-1 fotct font14" :d-width="150" :dataList="item.status | filterDataList"
bingEleId="imgType" @change="getItem($event,item)"> bingEleId="imgType" @change="getItem($event,item)">
<view class=" font14 fcor41c " id="imgType">操作<text class="icon xia font14 fcor41c"></text></view> <view class=" font14 fcor41c " id="imgType">操作<text class="icon xia font14 fcor41c"></text></view>
@ -52,7 +52,7 @@
</view> </view>
<view class="width100 dis-flex bor-botm1"> <view class="width100 dis-flex bor-botm1">
<view class=" fotct fontwig6 backcor6 titleWidth minheight40">状态</view> <view class=" fotct fontwig6 backcor6 titleWidth minheight40">状态</view>
<view class="flex-1 fotct ">{{productDetail.status | filterStatus}}</view> <view :class="'flex-1 fotct'+(productDetail.status == 2 ? ' fcorred ':'') ">{{productDetail.status | filterStatus}}</view>
</view> </view>
<view class="width100 dis-flex bor-botm1"> <view class="width100 dis-flex bor-botm1">
<view class=" fotct fontwig6 backcor6 titleWidth minheight40">使用时间</view> <view class=" fotct fontwig6 backcor6 titleWidth minheight40">使用时间</view>

@ -85,7 +85,7 @@
<view class="content dis-flex flex-sp" v-for="(item2,index2) in item.list" :key="index2"> <view class="content dis-flex flex-sp" v-for="(item2,index2) in item.list" :key="index2">
<view class="text">{{item2.productName}}</view> <view class="text">{{item2.productName}}</view>
<view class="dis-flex"> <view class="dis-flex">
<view class="text">{{item2.count}}</view> <view class="text">{{item2.productSpec}}</view>
<view class="icon shanchu margle20 font16 fcorred" @click.stop="deleteGroupDetail(item2.id)"></view> <view class="icon shanchu margle20 font16 fcorred" @click.stop="deleteGroupDetail(item2.id)"></view>
</view> </view>
@ -108,9 +108,11 @@
<!-- 底部按钮 --> <!-- 底部按钮 -->
<view class="footer-btn backcorfff"> <view class="footer-btn backcorfff">
<view v-if="(status==2&&merchart>1)" class="height50 flex-1 fcor089 fotct" @click="merchart--">上一步</view> <!-- <view v-if="(status==2&&merchart>1)" class="height50 flex-1 fcor089 fotct" @click="merchart--">上一步</view>
<button class="backcor89 flex-1 fcorfff" @click="clickToSave" v-if="merchart!=2">保存</button> <button class="backcor89 flex-1 fcorfff" @click="clickToSave" v-if="merchart!=2">保存</button>
<view v-if="(status==2&&merchart<3)||merchart==2" class="height50 flex-1 fcor089 fotct" @click="merchart++">下一步</view> <view v-if="(status==2&&merchart<3)||merchart==2" class="height50 flex-1 fcor089 fotct" @click="merchart++">下一步</view> -->
<view v-if="(status==2&&merchart>1)" class="height50 flex-1 fcor089 fotct" @click="merchart--">上一步</view>
<button class="backcor89 flex-1 fcorfff" @click="clickToSave" >保存</button>
</view> </view>
@ -374,6 +376,7 @@
return true return true
}, },
clickToSave() { clickToSave() {
if (this.merchart == 1) { if (this.merchart == 1) {
/* 第一步:团购基本内容*/ /* 第一步:团购基本内容*/
if (!this.validate()) return; // if (!this.validate()) return; //
@ -387,7 +390,10 @@
return return
} }
} }
if(this.merchart == 2){} if(this.merchart == 2){
this.merchart = this.merchart+1;
return
}
if(this.merchart==3){/* 第三步规则内容 */ if(this.merchart==3){/* 第三步规则内容 */
if(!this.ruleData.content){ if(!this.ruleData.content){
@ -438,7 +444,7 @@
this.groupId = res.return_data.id; this.groupId = res.return_data.id;
this.productDetail.groupId = res.return_data.id; this.productDetail.groupId = res.return_data.id;
this.ruleData.groupId = res.return_data.id; this.ruleData.groupId = res.return_data.id;
this.merchart = 2; this.merchart = this.merchart+1;
} else { } else {
uni.showToast({ uni.showToast({
title: res.return_msg, title: res.return_msg,
@ -452,17 +458,17 @@
/* 修改配置团购基本内容*/ /* 修改配置团购基本内容*/
editGroupContent() { editGroupContent() {
editGroupContent(this.productData).then(res => { editGroupContent(this.productData).then(res => {
let title;
if (res.return_code == '000000') { if (res.return_code == '000000') {
title = res.return_data; this.merchart = this.merchart+1;
} else { } else {
title = res.return_msg;
}
uni.showToast({ uni.showToast({
title: title, title: res.return_msg,
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}) })
}
this.merchart = 2; this.merchart = 2;
}) })
}, },

@ -68,11 +68,12 @@
return true return true
}, },
isShowAdd(){ isShowAdd(){
if(this.imgValue.length>=1){ // if(this.imgValue.length>=1){
return false // return false
}else{ // }else{
return true // return true
} // }
return true;
}, },
}, },
@ -167,6 +168,9 @@
// //
uploadFile(imgURL) { uploadFile(imgURL) {
const that = this; const that = this;
uni.showLoading({
title:'加载中...'
})
uni.uploadFile({ uni.uploadFile({
url: that.reqUrl + '/fileUpload/uploadfile', url: that.reqUrl + '/fileUpload/uploadfile',
filePath: imgURL, filePath: imgURL,
@ -175,8 +179,12 @@
}, },
name: 'files', name: 'files',
success: function(uploadFileRes) { success: function(uploadFileRes) {
uni.hideLoading();
that.getImgSignedUrl(JSON.parse(uploadFileRes.data) that.getImgSignedUrl(JSON.parse(uploadFileRes.data)
.return_data); .return_data);
},
fail: function() {
uni.hideLoading();
} }
}); });
}, },

@ -14,7 +14,8 @@
class=" flex-1 " placeholder="请输入价格(保留两位小数)"> class=" flex-1 " placeholder="请输入价格(保留两位小数)">
</view> </view>
<view class="dis-flex marb10 bor-botm1"> <view class="dis-flex marb10 bor-botm1">
<view class=" marRight10 fontwig6 padleft15 paddtright10">规格: <view class=" marRight10 fontwig6 padleft15 paddtright10">
规格:
</view> </view>
<input type="text" name="name" v-model.trim="productData.spec" placeholder-class="corf6" <input type="text" name="name" v-model.trim="productData.spec" placeholder-class="corf6"
class=" flex-1 " placeholder="请输入规格"> class=" flex-1 " placeholder="请输入规格">

Loading…
Cancel
Save