| | |
| | | } |
| | | return d.longValue(); |
| | | } |
| | | public static BigDecimal formatBigDecimal(BigDecimal d) { |
| | | if (d == null) { |
| | | new BigDecimal(0); |
| | | } |
| | | return d; |
| | | } |
| | | |
| | | /** |
| | | * Job常é |
| | |
| | | @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; |
| | | |
| | |
| | | |
| | | @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; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | } |
| | |
| | | void initializeCode(); |
| | | |
| | | OrderReleaseVO reusePay(ReusePayDTO reusePayDTO); |
| | | |
| | | void confirmFee(ConfirmFeeOrderDTO orders); |
| | | } |
| | |
| | | |
| | | 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; |
| | |
| | | }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()); |
| | |
| | | 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); |
| | |
| | | } |
| | | multifileMapper.insert(multifileList); |
| | | } |
| | | orders.setOriginPriceNum1(orders.getPriceNum1()); |
| | | orders.setOriginPriceNum2(orders.getPriceNum2()); |
| | | orders.setOriginEstimatedAccount(orders.getOriginEstimatedAccount()); |
| | | orders.setConfirmOtherFee(0l); |
| | | ordersMapper.updateById(orders); |
| | | } |
| | | |
| | |
| | | .set(Orders::getIsUpdateTime,new Date()) |
| | | .set(Orders::getUpdateTime,new Date()) |
| | | .set(Orders::getEstimatedAccount,total) |
| | | .set(Orders::getOriginEstimatedAccount,total) |
| | | .eq(Orders::getId,orders.getId()) |
| | | ); |
| | | //å建æä½æ¥å¿ |
| | |
| | | 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); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * æ¥åæ¹å¤ç订åä¿®æ¹ |
| | |
| | | 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); |
| | |
| | | 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 |
| | |
| | | }) |
| | | |
| | | // 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, |
| | |
| | | /* å¿«åºç¨ç¹æç¸å
³ */ |
| | | "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" : { |
| | |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/set-up/set-up", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "设置" |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/login/login", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "ç»å½é¡µ" |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/withdrawal/withdrawal", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "æç°" |
| | | } |
| | | }, |
| | | { |
| | |
| | | { |
| | | "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" : |
| | |
| | | "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": "", |
| | |
| | | <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> |
| | |
| | | </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> |
| | |
| | | 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 = [] |
| | |
| | | } else { |
| | | this.isLogin = false |
| | | console.log('æªç»é') |
| | | } |
| | | if (this.userInfo && this.userInfo.useIdentity == 1) { |
| | | this.typeViewId = 1 |
| | | } |
| | | }, |
| | | data() { |
| | |
| | | .active { |
| | | font-weight: 500 !important; |
| | | font-size: 32rpx !important; |
| | | color: #222222 !important; |
| | | color: #00BC12 !important; |
| | | } |
| | | .index-labs-row { |
| | | display: inline-block; |
| | |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | position: relative; |
| | | margin-right: 62rpx; |
| | | margin-right: 50rpx; |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | |
| | | bottom: 0; |
| | | left: 50%; |
| | | width: 40rpx; |
| | | height: 2rpx; |
| | | height: 4rpx; |
| | | background-color: #00BC12; |
| | | transform: translate(-50%, 0); |
| | | } |
| | |
| | | } |
| | | } |
| | | .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; |
| | |
| | | </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> |
| | |
| | | </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> |
| | |
| | | } |
| | | }, |
| | | 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 =>{ |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | |
| | | <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> |
| | |
| | | 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() |
| | | }, |