wangfukang 17 hours ago
parent
commit
79a4dd825b
  1. 26
      package1/group/groupBuySingle.vue
  2. 6
      package1/myCenter/addGoods.vue
  3. 15
      package1/myCenter/goodsList.vue
  4. 32
      package1/order/orderDetail.vue
  5. 17
      package1/order/returnOrder.vue

26
package1/group/groupBuySingle.vue

@ -118,7 +118,7 @@
</view> </view>
<view class="goods-content-center"> <view class="goods-content-center">
<view class="goods-deal1"> <view class="goods-deal1">
销量 <text> {{item.tailWarn}}</text> 销量 <text> {{item.tailWarn != null ? item.tailWarn : 0}}</text>
</view> </view>
</view> </view>
<view class="shop-tag1"> <view class="shop-tag1">
@ -601,9 +601,13 @@
onlineWorkerInterval:2500, onlineWorkerInterval:2500,
onlineWorkerDuration:500, onlineWorkerDuration:500,
menuList: [{ menuList: [{
categoryName: '猜你喜欢', categoryName: '推荐',
id: '1', id: 'tuijian',
checked: true checked: true
},{
categoryName: '必点',
id: 'bidian',
checked: false
}], }],
shopRecommend:[], shopRecommend:[],
availableCoupons: [], availableCoupons: [],
@ -797,6 +801,8 @@
} else { } else {
that.productItem = [...that.productItem, ...res.result.records]; that.productItem = [...that.productItem, ...res.result.records];
} }
let hasTuijian = false
let bidian = false
for(let i = 0;i<that.productItem.length;i++){ for(let i = 0;i<that.productItem.length;i++){
if(this.productItem[i].sellBeginTime !='' && this.productItem[i].sellEndTime != ''){ if(this.productItem[i].sellBeginTime !='' && this.productItem[i].sellEndTime != ''){
let isEndTime = this.isWithinBusinessHours(this.productItem[i].sellBeginTime,this.productItem[i].sellEndTime) let isEndTime = this.isWithinBusinessHours(this.productItem[i].sellBeginTime,this.productItem[i].sellEndTime)
@ -808,6 +814,20 @@
that.productItem[i].isChecked = false that.productItem[i].isChecked = false
that.moreBuyList.push(that.productItem[i]) that.moreBuyList.push(that.productItem[i])
} }
if(that.productItem[i].isPush == 1){
that.productItem[i].categoryId = 'tuijian'
hasTuijian = true
}
if(that.productItem[i].isMust == 1){
that.productItem[i].categoryId = 'bidian'
bidian = true
}
}
if(hasTuijian == false){
that.menuList.splice(0,1)
}
if(bidian == false){
that.menuList.splice(1,1)
} }
console.log('好的',that.productItem) console.log('好的',that.productItem)
// //

6
package1/myCenter/addGoods.vue

@ -137,6 +137,9 @@
</view> </view>
</view> </view>
<view slot="footer" style="display: flex;padding-left: 40rpx;margin-top: 20rpx;"> <view slot="footer" style="display: flex;padding-left: 40rpx;margin-top: 20rpx;">
<uni-forms-item label="设置最大选择数" name="maxSelect">
<input type="digit" class="content-input" v-model="maxSelect" placeholder="可设置最大选择数">
</uni-forms-item>
<button type="text" @tap="$refs.addTypeDialog.close()" style="margin-right: 20rpx;">取消</button> <button type="text" @tap="$refs.addTypeDialog.close()" style="margin-right: 20rpx;">取消</button>
<button type="text" @tap="guigeSubmit">提交</button> <button type="text" @tap="guigeSubmit">提交</button>
</view> </view>
@ -151,6 +154,7 @@
return { return {
dataList: {}, dataList: {},
modalType:0, modalType:0,
maxSelect:1,
categoryData:[], categoryData:[],
categoryIndex: 0, categoryIndex: 0,
modalclassType:'', modalclassType:'',
@ -637,7 +641,7 @@
if(this.attrValueArr.length>0){ if(this.attrValueArr.length>0){
let index1 = false let index1 = false
for (var m = 0; m < this.attrValueArr.length; m++) { for (var m = 0; m < this.attrValueArr.length; m++) {
if(this.attrValueArr[m].title == this.categorySonData[i].title){ if(this.attrValueArr[m].title == this.categorySonData[i].title && this.attrValueArr[m].parentName == this.typeToAttrName){
index1 = true index1 = true
this.categorySonData[i].checked = true this.categorySonData[i].checked = true
} }

15
package1/myCenter/goodsList.vue

@ -37,6 +37,10 @@
</view> </view>
<view class="box-right-num"></view> <view class="box-right-num"></view>
<view class="box-right-price"> <view class="box-right-price">
<view class="price-box">
<text>{{item.attributeListPrice | sliceMsg}}</text>
<text>价格</text>
</view>
<view class="price-box"> <view class="price-box">
<text>{{item.lunchBox}}</text> <text>{{item.lunchBox}}</text>
<text>餐盒费</text> <text>餐盒费</text>
@ -151,7 +155,16 @@
} }
}, },
filters: { filters: {
sliceMsg(val) {
var name = ''
if (typeof(val) == 'string') {
let newObj = JSON.parse(val)
for (let as in newObj) {
name = newObj[as].specPrice
}
}
return name;
},
}, },
onShow() { onShow() {
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()

32
package1/order/orderDetail.vue

@ -135,7 +135,7 @@
<view class="status-btn" style="top: 0;" v-if="orderStatus(orderDetail)" @tap="returnPopupProp(orderDetail)"> <view class="status-btn" style="top: 0;" v-if="orderStatus(orderDetail)" @tap="returnPopupProp(orderDetail)">
取消订单 取消订单
</view> </view>
<view class="status-btn" style="top: 0;" v-if="orderDetail.status == 5 && orderDetail.mallRefundRecord.length < 1" @tap="returnProducts(orderDetail)"> <view class="status-btn" style="top: 0;" v-if="orderDetail.status == 5 && hasRefund == false" @tap="returnProducts(orderDetail)">
申请售后 申请售后
</view> </view>
<view class="status-btn" style="top: 70rpx;" @tap="refreah(orderDetail)"> <view class="status-btn" style="top: 70rpx;" @tap="refreah(orderDetail)">
@ -441,6 +441,16 @@
查看评价 > 查看评价 >
</view> </view>
</view> </view>
<view style="height: 80rpx;line-height: 80rpx;display: flex;" v-if="hasRefund">
<view style="flex: 1;color: #777;font-weight: 700;">
申请平台介入
</view>
<view style="color: #000;font-weight: 700;" @tap="checkEvaluate">
<img @tap="makeCall('15533910775')"
src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png"
alt="" style="width: 40rpx;height: 40rpx;margin: 20rpx 0 0 20rpx;" />
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -504,20 +514,20 @@
</uni-popup> </uni-popup>
<uni-popup ref="returnPopup" background-color="#fff"> <uni-popup ref="returnPopup" background-color="#fff">
<view class="car-content" style="height: auto;padding: 20rpx;" v-if="orderDetail.deliveryType == 1 && orderDetail.status != 10 && orderDetail.otherOrder != 1"> <view class="car-content" style="height: auto;padding: 20rpx;" v-if="orderDetail.status != 10">
<view class="car-title" style="padding: 0 20rpx;"> <view class="car-title" style="padding: 0 20rpx;">
选择退款原因 选择退款原因
</view> </view>
<view class="" style="padding: 0 20rpx;"> <view class="" style="padding: 0 20rpx;">
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.otherOrder != 1">
<radio :checked="sellTime==2" name="sellTime" @click="checkSellTime(2)" /> <radio :checked="sellTime==2" name="sellTime" @click="checkSellTime(2)" />
全额退款商家原因 全额退款商家原因
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="payData.deliveryType ==1">
<radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" /> <radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" />
全额退款配送员原因 全额退款配送员原因
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="payData.deliveryType ==1 && orderDetail.otherOrder != 1">
<radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" /> <radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" />
全额退款商家+配送员原因 全额退款商家+配送员原因
</view> </view>
@ -612,6 +622,7 @@
refundType:3, refundType:3,
refundTypeStatus:4, refundTypeStatus:4,
shopTime:'', shopTime:'',
hasRefund:false,
peisongTime:'', peisongTime:'',
shopItem:{}, shopItem:{},
orderId:'', orderId:'',
@ -770,7 +781,7 @@
}, },
checkEvaluate(){ checkEvaluate(){
console.log(this.orderDetail) console.log(this.orderDetail)
if(this.orderDetail.comments.length>0){ if(this.orderDetail.comments != null && this.orderDetail.comments.length>0){
this.$refs.evaluatePopup.open() this.$refs.evaluatePopup.open()
}else{ }else{
this.tui.toast("暂无评价"); this.tui.toast("暂无评价");
@ -964,6 +975,13 @@
that.tui.request("/mall/order/detail/"+id, "GET", {}, false, true).then((res) => { that.tui.request("/mall/order/detail/"+id, "GET", {}, false, true).then((res) => {
if (res.code == 200) { if (res.code == 200) {
that.orderDetail = res.result; that.orderDetail = res.result;
if(that.orderDetail.mallRefundRecord != null && that.orderDetail.mallRefundRecord.length > 0){
for(let i = 0; i < that.orderDetail.mallRefundRecord.length;i++){
if(that.orderDetail.mallRefundRecord[i].status >= 3){
that.hasRefund = true
}
}
}
if(that.orderDetail.groupInfo){ if(that.orderDetail.groupInfo){
// 0: 1: 2: 3:() // 0: 1: 2: 3:()
if(that.orderDetail.groupInfo.status != 1 && that.orderDetail.groupInfo.status != 2){ if(that.orderDetail.groupInfo.status != 1 && that.orderDetail.groupInfo.status != 2){

17
package1/order/returnOrder.vue

@ -223,30 +223,25 @@
选择退款原因 选择退款原因
</view> </view>
<view style="padding: 0 20rpx;"> <view style="padding: 0 20rpx;">
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.deliveryType ==1 && orderDetail.otherOrder != 1">
<radio :checked="sellTime==0" name="sellTime" @click="checkSellTime(0)" /> <radio :checked="sellTime==0" name="sellTime" @click="checkSellTime(0)" />
只退商品 商品退款
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.deliveryType ==1 && orderDetail.otherOrder != 1">
<radio :checked="sellTime==1" name="sellTime" @click="checkSellTime(1)" /> <radio :checked="sellTime==1" name="sellTime" @click="checkSellTime(1)" />
退配送费 退配送费
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.otherOrder != 1">
<radio :checked="sellTime==2" name="sellTime" @click="checkSellTime(2)" /> <radio :checked="sellTime==2" name="sellTime" @click="checkSellTime(2)" />
全额退款商家原因 全额退款商家原因
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.deliveryType ==1">
<radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" /> <radio :checked="sellTime==3" name="sellTime" @click="checkSellTime(3)" />
全额退款配送员原因 全额退款配送员原因
</view> </view>
<view style="height:80rpx;"> <view style="height:80rpx;" v-if="orderDetail.deliveryType ==1 && orderDetail.otherOrder != 1">
<radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" /> <radio :checked="sellTime==4" name="sellTime" @click="checkSellTime(4)" />
全额退款商家+配送员原因 全额退款商家+配送员原因
</view> </view>
</view> </view>
<view class="btn" @tap="chooseReturnType()">确认</view> <view class="btn" @tap="chooseReturnType()">确认</view>

Loading…
Cancel
Save