doum
2025-09-01 65f8691ebf4f5de4a7fe2cef4fd9345b26372e55
前端
已添加1个文件
已删除8个文件
已修改13个文件
2867 ■■■■■ 文件已修改
server/services/src/main/java/com/doumee/core/constants/Constants.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/services/src/main/java/com/doumee/dao/business/model/Orders.java 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/services/src/main/java/com/doumee/dao/dto/ConfirmFeeOrderDTO.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/services/src/main/java/com/doumee/service/business/OrdersService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/services/src/main/java/com/doumee/service/business/impl/OrdersServiceImpl.java 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/web/src/main/java/com/doumee/api/web/OrdersApi.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/main.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/manifest.json 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages.json 108 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/catering-certification/catering-certification.vue 313 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/certification-results/certification-results.vue 373 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/certification-successful/certification-successful.vue 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/demand-hall/demand-hall.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/employment-certification/employment-certification.vue 818 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/freight-certification/freight-certification.vue 300 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/freight/freight.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/index/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/mine/mine.vue 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/packaging-worker/packaging-worker.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/set-up/set-up.vue 227 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/withdrawal-successful/withdrawal-successful.vue 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/withdrawal/withdrawal.vue 305 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/services/src/main/java/com/doumee/core/constants/Constants.java
@@ -143,6 +143,12 @@
        }
        return d.longValue();
    }
    public static BigDecimal formatBigDecimal(BigDecimal d) {
        if (d == null) {
            new BigDecimal(0);
        }
        return d;
    }
    /**
     * Job常量
server/services/src/main/java/com/doumee/dao/business/model/Orders.java
@@ -97,6 +97,12 @@
    @ApiModelProperty(value = "计价数量2(分拣工/包装工 äººæ•°)", example = "1")
    private Integer priceNum2;
    @ApiModelProperty(value = "(发单方设置)计价数量1((重量/人数/(天数/小时/重量)/(天数/次数)/用餐天数)", example = "1")
    private Integer originPriceNum1;
    @ApiModelProperty(value = "(发单方设置)计价数量2(分拣工/包装工 äººæ•°)", example = "1")
    private Integer originPriceNum2;
    @ApiModelProperty(value = "需求补充")
    private String supplement;
@@ -105,6 +111,13 @@
    @ApiModelProperty(value = "预估费用", example = "1")
    private Long estimatedAccount;
    @ApiModelProperty(value = "接单方确认其他费用(分)", example = "1")
    private Long confirmOtherFee;
    @ApiModelProperty(value = "接单方确认费用备注", example = "1")
    private String confirmFeeRemark;
    @ApiModelProperty(value = "(发单方设置)预估费用", example = "1")
    private Long originEstimatedAccount;
    @ApiModelProperty(value = "实际支付费用", example = "1")
    private Long payAccount;
server/services/src/main/java/com/doumee/dao/dto/ConfirmFeeOrderDTO.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,30 @@
package com.doumee.dao.dto;
import com.doumee.dao.business.model.Member;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * @author  dm
 * @since 2025/03/31 16:44
 */
@Data
@ApiModel("确认订单费用信息")
public class ConfirmFeeOrderDTO {
    @ApiModelProperty(value = "订单主键")
    private Integer orderId;
    @ApiModelProperty(value = "计价数量1((重量/人数/(天数/小时/重量)/(天数/次数)/用餐天数)", example = "1")
    private Integer priceNum1;
    @ApiModelProperty(value = "计价数量2(分拣工/包装工 äººæ•°)", example = "1")
    private Integer priceNum2;
    @ApiModelProperty(value = "接单方确认其他费用(分)", example = "1")
    private Long confirmOtherFee;
    @ApiModelProperty(value = "接单方确认费用备注" )
    private String confirmFeeRemark;
    @ApiModelProperty(hidden = true)
    private Member member;
}
server/services/src/main/java/com/doumee/service/business/OrdersService.java
@@ -150,4 +150,6 @@
    void initializeCode();
    OrderReleaseVO reusePay(ReusePayDTO reusePayDTO);
    void confirmFee(ConfirmFeeOrderDTO orders);
}
server/services/src/main/java/com/doumee/service/business/impl/OrdersServiceImpl.java
@@ -46,6 +46,7 @@
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
@@ -147,6 +148,10 @@
        }else{
            orders.setStatus(Constants.ordersStatus.wait.getKey());
        }
        orders.setOriginPriceNum1(orders.getPriceNum1());
        orders.setOriginPriceNum2(orders.getPriceNum2());
        orders.setOriginEstimatedAccount(orders.getOriginEstimatedAccount());
        orders.setConfirmOtherFee(0l);
        ordersMapper.insert(orders);
        orderReleaseVO.setId(orders.getId());
@@ -382,7 +387,8 @@
            throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"订单已修改,待接单方确认,无法进行该操作");
        }
        if(!Constants.equalsInteger(model.getType(),Constants.TWO)){
            if(Constants.equalsInteger(model.getStatus(),Constants.ZERO)||Constants.equalsInteger(model.getStatus(),Constants.ONE)){
            if(Constants.equalsInteger(model.getStatus(),Constants.ZERO)
                    ||Constants.equalsInteger(model.getStatus(),Constants.ONE)){
                this.updateById(orders);
            }else if(Constants.equalsInteger(model.getStatus(),Constants.TWO)){
                this.updOrderData(orders,model);
@@ -439,6 +445,10 @@
            }
            multifileMapper.insert(multifileList);
        }
        orders.setOriginPriceNum1(orders.getPriceNum1());
        orders.setOriginPriceNum2(orders.getPriceNum2());
        orders.setOriginEstimatedAccount(orders.getOriginEstimatedAccount());
        orders.setConfirmOtherFee(0l);
        ordersMapper.updateById(orders);
    }
@@ -794,6 +804,7 @@
                .set(Orders::getIsUpdateTime,new Date())
                .set(Orders::getUpdateTime,new Date())
                .set(Orders::getEstimatedAccount,total)
                .set(Orders::getOriginEstimatedAccount,total)
                .eq(Orders::getId,orders.getId())
        );
        //创建操作日志
@@ -848,6 +859,72 @@
        return bigDecimalPrice.divide(new BigDecimal("1"),0,BigDecimal.ROUND_HALF_UP).longValue();//orders.getPrice() * orders.getPriceNum1() * orders.getPriceNum2();
    }
    /**
     * æŽ¥å•方确认订单费用
     */
    @Override
    @Transactional(rollbackFor = {BusinessException.class,Exception.class})
    public void  confirmFee(ConfirmFeeOrderDTO confirmUpdOrderDTO){
        if(Objects.isNull(confirmUpdOrderDTO)
                || Objects.isNull(confirmUpdOrderDTO.getOrderId())
                || Objects.isNull(confirmUpdOrderDTO.getPriceNum1())){
            throw new BusinessException(ResponseStatus.BAD_REQUEST);
        }
        Orders orders = ordersMapper.selectById(confirmUpdOrderDTO.getOrderId());
        if(Objects.isNull(orders)||Constants.equalsInteger(orders.getDeleted(),Constants.ONE)){
            throw new BusinessException(ResponseStatus.DATA_EMPTY);
        }
        if(!Constants.equalsInteger(orders.getAcceptMemberId(),confirmUpdOrderDTO.getMember().getId())){
            throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"非您的订单无法进行该操作");
        }
        if(!Constants.equalsInteger(orders.getStatus(),Constants.ordersStatus.doing.getKey())){
            throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"订单状态已流转,无法进行该操作");
        }
        //类型:0=用工;1=运货;2=订餐
        if(Constants.equalsInteger(orders.getType(),Constants.ZERO)){
            //用工类型:0=采摘工;1=分拣工;2=包装工;(用工订单)
            if(Constants.equalsInteger(orders.getWorkType(),Constants.ONE)){
                //1=分拣工
                if( Objects.isNull(confirmUpdOrderDTO.getPriceNum2())){//必须有用工数量(人)
                    throw new BusinessException(ResponseStatus.BAD_REQUEST);
                }
            }else if(Constants.equalsInteger(orders.getWorkType(),Constants.TWO)){
                //包装工 ç”¨è½¦ç±»åž‹(用工包装/运货使用):0=天;1=次/小时;2=重量
                if( !Constants.equalsInteger(orders.getCarType(),Constants.TWO)
                        && Objects.isNull(confirmUpdOrderDTO.getPriceNum2())){
                    //不是按重量计费的,必须有用工数量(人)
                    throw new BusinessException(ResponseStatus.BAD_REQUEST);
                }
            }
        }else  if(Constants.equalsInteger(orders.getType(),Constants.ONE)){
            //运货订单
        }else{
            throw  new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"该订单不支持该操作,请返回刷新重试!");
        }
        orders.setPriceNum1(confirmUpdOrderDTO.getPriceNum1());
        orders.setPriceNum2(confirmUpdOrderDTO.getPriceNum2());
        Long totalFee = this.getTotal(orders);//重新计算费用
        Long payFee = totalFee+Constants.formatLongNum(confirmUpdOrderDTO.getConfirmOtherFee());//重新计算费用
        BigDecimal recFee = new BigDecimal(payFee).multiply((new BigDecimal(1).subtract(Constants.formatBigDecimal(orders.getPlatformRata())))).setScale(0, RoundingMode.HALF_UP) ;
        ordersMapper.update(new UpdateWrapper<Orders>().lambda()
                .set(Orders::getPriceNum1,confirmUpdOrderDTO.getPriceNum1())
                .set(Orders::getPriceNum2,confirmUpdOrderDTO.getPriceNum2())
                .set(Orders::getConfirmFeeRemark,confirmUpdOrderDTO.getConfirmFeeRemark())
                .set(Orders::getConfirmOtherFee,confirmUpdOrderDTO.getConfirmOtherFee())
                .set(Orders::getEstimatedAccount,totalFee)
                .set(Orders::getPayAccount,payFee)
                .set(Orders::getReceiveAccount,recFee.longValue())
                .set(Orders::getUpdateTime,new Date())
                .eq(Orders::getId,orders.getId())
        );
        //记录同意修改的日志
        Constants.OrdersLog ordersLog = Constants.OrdersLog.UPD_AGREE;
        this.saveOrderLog(orders,ordersLog,
                ordersLog.getInfo(),confirmUpdOrderDTO.getMember().getId(),null);
    }
    /**
     * æŽ¥å•方处理订单修改
@@ -1158,7 +1235,7 @@
        if(!Constants.equalsInteger(orders.getType(),Constants.TWO)){
            orders.setPayAccount(doneOrderDTO.getAmount());
            //提成金额
            Long tcje = Long.valueOf(new BigDecimal(orders.getPayAccount().toString()).multiply(orders.getPlatformRata()).intValue());
            Long tcje =  (new BigDecimal(orders.getPayAccount().toString()).multiply(Constants.formatBigDecimal(orders.getPlatformRata())).setScale(0,RoundingMode.HALF_UP).longValue());
            orders.setReceiveAccount(orders.getPayAccount() - tcje);
            orders.setOutTradeNo(UUID.randomUUID().toString().replace("-",""));
            ordersMapper.updateById(orders);
server/web/src/main/java/com/doumee/api/web/OrdersApi.java
@@ -65,6 +65,17 @@
        ordersService.update(orders);
        return  ApiResponse.success("操作成功");
    }
    @LoginRequired
    @ApiOperation(value = "接单方确认订单费用 - æŽ¥å•æ–¹", notes = "小程序端")
    @PostMapping("/confirmFee")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true),
    })
    public ApiResponse confirmFee(@RequestBody ConfirmFeeOrderDTO orders) {
        orders.setMember(this.getMemberResponse());
        ordersService.confirmFee(orders);
        return  ApiResponse.success("操作成功");
    }
//    @LoginRequired
small-program/main.js
@@ -15,10 +15,10 @@
})
// Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/'
Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/'
// Vue.prototype.$baseUrl = 'http://192.168.1.54:10011/'
// Vue.prototype.$baseUrl = 'https://test.doumee.cn/jinkuai_web/'
// Vue.prototype.$baseUrl = 'https://jinkuai.832smartfarm.com/jinkuai_web/'
Vue.prototype.$baseUrl = 'https://jinkuai.832smartfarm.com/jinkuai_web/'
const app = new Vue({
    store,
small-program/manifest.json
@@ -50,15 +50,21 @@
    /* å¿«åº”用特有相关 */
    "quickapp" : {},
    /* å°ç¨‹åºç‰¹æœ‰ç›¸å…³ */
    "optimization" :{"subPackages":true},
    "mp-weixin" : {
        "appid" : "wx332441ae5b12be7d",
        "setting" : {
            "urlCheck" : false,
            "es6" : true,
            "postcss" : true,
            "minified" : true
        },
        "usingComponents" : true,
            "es6": true,
            "postcss": true,
            "minified": true
        },
        "optimization":{
            "subPackages": true
        },
        "usingComponents": true,
        "runmode": "liberate",
        "lazyCodeLoading": "requiredComponents" ,// å¯ç”¨æŒ‰éœ€æ³¨å…¥
        "requiredPrivateInfos" : [ "getLocation", "chooseLocation" ],
        "permission" : {
            "scope.userLocation" : {
small-program/pages.json
@@ -87,24 +87,10 @@
            }
        },
        {
            "path" : "pages/set-up/set-up",
            "style" :
            {
                "navigationBarTitleText" : "设置"
            }
        },
        {
            "path" : "pages/login/login",
            "style" : 
            {
                "navigationBarTitleText" : "登录页"
            }
        },
        {
            "path" : "pages/withdrawal/withdrawal",
            "style" :
            {
                "navigationBarTitleText" : "提现"
            }
        },
        {
@@ -113,49 +99,8 @@
            {
                "navigationBarTitleText" : "余额明细"
            }
        },
        {
            "path" : "pages/withdrawal-successful/withdrawal-successful",
            "style" :
            {
                "navigationBarTitleText" : "提现成功"
            }
        },
        {
            "path" : "pages/employment-certification/employment-certification",
            "style" :
            {
                "navigationBarTitleText" : "用工认证"
            }
        },
        {
            "path" : "pages/freight-certification/freight-certification",
            "style" :
            {
                "navigationBarTitleText" : "运货认证"
            }
        },
        {
            "path" : "pages/catering-certification/catering-certification",
            "style" :
            {
                "navigationBarTitleText" : "供餐认证"
            }
        },
        {
            "path" : "pages/certification-successful/certification-successful",
            "style" :
            {
                "navigationBarTitleText" : "认证成功"
            }
        },
        {
            "path" : "pages/certification-results/certification-results",
            "style" :
            {
                "navigationBarTitleText" : "认证结果"
            }
        },
        },
        {
            "path" : "pages/rich-text-page/rich-text-page",
            "style" : 
@@ -163,7 +108,54 @@
                "navigationBarTitleText" : "富文本页面"
            }
        }
    ],
    ],
    "subPackages": [{
        "root": "packageA", // åˆ†åŒ…的根目录
        "name": "packageA", // åˆ†åŒ…的根目录
        "pages":[
            {
                "path" : "pages/withdrawal/withdrawal",
                "style" :
                {
                    "navigationBarTitleText" : "提现"
                }
            },
            {
                "path" : "pages/withdrawal-successful/withdrawal-successful",
                "style" :
                {
                    "navigationBarTitleText" : "提现成功"
                }
            },
            {
                "path" : "pages/set-up/set-up",
                "style" :
                {
                    "navigationBarTitleText" : "设置"
                }
            },
             {
                "path" : "pages/employment-certification/employment-certification",
                "style" :
                {
                    "navigationBarTitleText" : "用工认证"
                }
            },
            {
                "path" : "pages/certification-results/certification-results",
                "style" :
                {
                    "navigationBarTitleText" : "认证结果"
                }
            }
        ]
    }],
    "preloadRule":{
        "pages/mine/mine":{
            "network": "all",
            "packages": ["packageA"]
        }
    },
    "globalStyle": {
        "navigationBarTextStyle": "black",
        "navigationBarTitleText": "",
small-program/pages/catering-certification/catering-certification.vue
ÎļþÒÑɾ³ý
small-program/pages/certification-results/certification-results.vue
ÎļþÒÑɾ³ý
small-program/pages/certification-successful/certification-successful.vue
ÎļþÒÑɾ³ý
small-program/pages/demand-hall/demand-hall.vue
@@ -18,8 +18,8 @@
        <template v-else>
            <!-- å‘单方 -->
            <view class="index-labs" v-if="typeViewId === 0" :style="{ top: statusbarHeight + navHeight + 'px' }">
                <scroll-view scroll-x class="scroll-view_H">
                    <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list1" :key="index" @click="clickOrderType(item.id)">
                <scroll-view scroll-x class="scroll-view_H" :scroll-into-view="'view'+status">
                    <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list1" :id="'view'+item.id" :key="item.id" @click="clickOrderType(item.id)">
                        {{item.name}}
                        <view class="index-labs-row-x" v-if="item.id === status"></view>
                    </view>
@@ -27,8 +27,8 @@
            </view>
            <!-- æŽ¥å•æ–¹ -->
            <view class="index-labs" v-if="typeViewId === 1" :style="{ top: statusbarHeight + navHeight + 'px' }">
                <scroll-view scroll-x class="scroll-view_H">
                    <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list" :key="index" @click="clickOrderType(item.id)">
                <scroll-view scroll-x class="scroll-view_H" :scroll-into-view="'view'+status">
                    <view :class="item.id === status ? 'index-labs-row active' : 'index-labs-row'" v-for="(item, index) in list" :id="'view'+item.id" :key="item.id" @click="clickOrderType(item.id)">
                        {{item.name}}
                        <view class="index-labs-row-x" v-if="item.id === status"></view>
                    </view>
@@ -210,11 +210,33 @@
        computed: {
            ...mapState(['navHeight', 'statusbarHeight','userInfo','token','openid', 'latitude', 'longitude'])
        },
        onShow(options) {
        async onShow(options) {
            var flag = getApp().globalData.orderStatus
                console.log(getApp().globalData,"=====================================")
            this.status = ''
            this.commentStatus=''
            // status: this.status === 5 ? 4 : this.status,
            // commentStatus: this.status === 5 ? 0 : '',
            if(flag =='1'){//发单方待接单
                this.status = 1
            }else if(flag =='2'){//发单方进行中
                this.status = 3
            }else if(flag =='3'){//发单方待评价
                this.status = 5
            }else if(flag =='4'){//接单方已接单
                this.status =2
            }else if(flag =='5'){//接单方进行中
                this.status =3
            }else if(flag =='6'){//接单方已完成
                this.status =4
            }
            this.typeViewId = 0
            if(this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}'){
                console.log('已登陆')
                this.isLogin = true
                if (this.userInfo && this.userInfo.useIdentity == 1) {
                    this.typeViewId = 1
                }
                if (!this.isOnce) {
                    this.commentStatus = ''
                    this.orderList = []
@@ -225,9 +247,6 @@
            } else {
                this.isLogin = false
                console.log('未登陆')
            }
            if (this.userInfo && this.userInfo.useIdentity == 1) {
                this.typeViewId = 1
            }
        },
        data() {
@@ -707,7 +726,7 @@
                .active {
                    font-weight: 500 !important;
                    font-size: 32rpx !important;
                    color: #222222 !important;
                    color: #00BC12 !important;
                }
                .index-labs-row {
                    display: inline-block;
@@ -717,7 +736,7 @@
                    font-size: 30rpx;
                    color: #666666;
                    position: relative;
                    margin-right: 62rpx;
                    margin-right: 50rpx;
                    &:last-child {
                        margin: 0 !important;
                    }
@@ -726,7 +745,7 @@
                        bottom: 0;
                        left: 50%;
                        width: 40rpx;
                        height: 2rpx;
                        height: 4rpx;
                        background-color: #00BC12;
                        transform: translate(-50%, 0);
                    }
small-program/pages/employment-certification/employment-certification.vue
ÎļþÒÑɾ³ý
small-program/pages/freight-certification/freight-certification.vue
ÎļþÒÑɾ³ý
small-program/pages/freight/freight.vue
@@ -950,14 +950,14 @@
                        }
                    }
                    .list-item-row-val {
                        width: 100%;
                        // width: 100%;
                        padding: 30rpx 0;
                        box-sizing: border-box;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        text {
                            width: 80%;
                            // width: 80%;
                            flex-shrink: 0;
                            font-weight: 400;
                            font-size: 30rpx;
small-program/pages/index/index.vue
@@ -305,10 +305,10 @@
                            </view>
                        </view>
                    </template>
                    <view class="box-hz-btn" :style="{ backgroundImage: 'url(' + btn + ')' }">
                        <view class="box-hz-btn-kf"  @click="contactPhone()" >客服</view>
                        <view class="box-hz-btn-next" @click="jump()">立即下单</view>
                        <view class="box-hz-btn-next"  @click="jump()" v-if="typeId  == 2">立即下单</view>
                        <view class="box-hz-btn-next"  @click="jump()" v-if="typeId !== 2">下一步</view>
                    </view>
                </view>
            </view>
small-program/pages/mine/mine.vue
@@ -35,35 +35,35 @@
            </view>
            <view class="statistics">
                <view class="statistics-box" v-if="!isLogin || userInfo.useIdentity !=1">
                    <view class="statistics-item" >
                    <view class="statistics-item" @click="jumpOrderList('0')" >
                        <text>{{isLogin?(userInfo.userCenterVO.releaseTaskTotal||0):'-'}}</text>
                        <text>总发单数</text>
                    </view>
                    <view class="statistics-x"></view>
                    <view class="statistics-item">
                    <view class="statistics-item" @click="jumpOrderList('1')" >
                        <text class="redtxt">{{isLogin?(userInfo.userCenterVO.waitReceiveTotal||0):'-'}}</text>
                        <text>待接单</text>
                    </view>
                    <view class="statistics-item">
                    <view class="statistics-item" @click="jumpOrderList('2')" >
                        <text>{{isLogin?(userInfo.userCenterVO.doingTotal||0):'-'}}</text>
                        <text>进行中</text>
                    </view>
                    <view class="statistics-item">
                    <view class="statistics-item" @click="jumpOrderList('3')" >
                        <text>{{isLogin?(userInfo.userCenterVO.waitCommentTotal||0):'-'}}</text>
                        <text>待评价</text>
                    </view>
                </view>
                <view class="statistics-box" v-else>
                    <view class="statistics-item" >
                    <view class="statistics-item" @click="jumpOrderList('4')" >
                        <text>{{isLogin?(userInfo.userCenterVO.receiveTotal||0):'-'}}</text>
                        <text>已接单</text>
                    </view>
                    <view class="statistics-x"></view>
                    <view class="statistics-item">
                    <view class="statistics-item" @click="jumpOrderList('5')">
                        <text>{{isLogin?(userInfo.userCenterVO.taskingTotal||0):'-'}}</text>
                        <text>进行中</text>
                    </view>
                    <view class="statistics-item">
                    <view class="statistics-item" @click="jumpOrderList('6')">
                        <text>{{isLogin?(userInfo.userCenterVO.doneTotal||0):'-'}}</text>
                        <text>已完成</text>
                    </view> 
@@ -164,6 +164,13 @@
            }
        },
        methods: {
            jumpOrderList(flag){
                const app = getApp();
                app.globalData.orderStatus = flag;
                uni.switchTab({
                    url: '/pages/demand-hall/demand-hall'
                })
            },
            getUserInfo() {
                var that = this;
                this.$u.api.getMemberInfo({}).then(res =>{ 
@@ -186,17 +193,17 @@
                switch(type) {
                    case 1:
                        uni.navigateTo({
                            url: '/pages/set-up/set-up'
                            url: '/packageA/pages/set-up/set-up'
                        })
                        break;
                    case 2:
                        if(!this.userInfo.workerIdentity ||this.userInfo.workerIdentity ==0){
                            uni.navigateTo({
                                url:  '/pages/employment-certification/employment-certification?flag=0'
                                url:  '/packageA/pages/employment-certification/employment-certification?flag=0'
                            })
                        }else{
                            uni.navigateTo({
                                url: '/pages/certification-results/certification-results?flag=0'
                                url: '/packageA/pages/certification-results/certification-results?flag=0'
                            })
                        }
                        break;
@@ -204,22 +211,22 @@
                    case 3:
                        if(!this.userInfo.driverIdentity ||this.userInfo.driverIdentity ==0){
                            uni.navigateTo({
                                url: '/pages/employment-certification/employment-certification?flag=1'
                                url: '/packageA/pages/employment-certification/employment-certification?flag=1'
                            })
                        }else{
                            uni.navigateTo({
                                url: '/pages/certification-results/certification-results?flag=1'
                                url: '/packageA/pages/certification-results/certification-results?flag=1'
                            })
                        }
                        break;
                    case 4:
                        if(!this.userInfo.chefIdentity ||this.userInfo.chefIdentity ==0){
                            uni.navigateTo({
                                url: '/pages/employment-certification/employment-certification?flag=2'
                                url: '/packageA/pages/employment-certification/employment-certification?flag=2'
                            })
                        }else{
                            uni.navigateTo({
                                url: '/pages/certification-results/certification-results?flag=2'
                                url: '/packageA/pages/certification-results/certification-results?flag=2'
                            })
                        }
                        break;
@@ -230,12 +237,12 @@
                        break;
                    case 6:
                        uni.navigateTo({
                            url: '/pages/withdrawal/withdrawal'
                            url: '/packageA/pages/withdrawal/withdrawal'
                        })
                        break;
                    case 7:
                        uni.navigateTo({
                            url: '/pages/certification-results/certification-results'
                            url: '/packageA/pages/certification-results/certification-results'
                        })
                        break;
                }
small-program/pages/packaging-worker/packaging-worker.vue
@@ -9,7 +9,7 @@
                <view class="list-item-row" @click="show = true">
                    <view class="list-item-row-label">用工时间<b>*</b></view>
                    <view class="list-item-row-val">
                        <text>{{form.startDate ? form.startDate + ' è‡³ ' + form.endDate + ' (' + form.priceNum1 + '天) ' : '请选择'}}</text>
                        <text>{{form.startDate ? form.startDate + ' è‡³ ' + form.endDate + ' (' + workDays + '天) ' : '请选择'}}</text>
                        <u-icon name="arrow-right" color="#111111" size="16"></u-icon>
                    </view>
                </view>
@@ -240,6 +240,8 @@
                this.form.lgt = option.longitude
                this.form.location = option.address
                this.form.workType = option.workType
                this.form.days = option.days
                this.workDays = option.days
            }
            this.getCateList()
        },
small-program/pages/set-up/set-up.vue
ÎļþÒÑɾ³ý
small-program/pages/withdrawal-successful/withdrawal-successful.vue
ÎļþÒÑɾ³ý
small-program/pages/withdrawal/withdrawal.vue
ÎļþÒÑɾ³ý