From 0ad75ffcfc4c581ef54de705fae48b44803ed2a5 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期二, 21 四月 2026 11:27:58 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
server/services/src/main/java/com/doumee/dao/business/model/ShopInfo.java | 3
server/services/src/main/java/com/doumee/service/business/impl/DriverInfoServiceImpl.java | 203 ++++
small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.wxml | 2
server/web/src/main/java/com/doumee/api/web/PaymentCallback.java | 169 +++
server/services/src/main/java/com/doumee/service/business/NoticeService.java | 37
small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js | 179 ++-
server/services/src/main/java/com/doumee/service/business/impl/NoticeServiceImpl.java | 126 ++
server/services/src/main/java/com/doumee/dao/dto/DriverPickupDTO.java | 28
small-program/static/icon/ic_fail@2x.png | 0
server/web/src/main/java/com/doumee/api/web/ConfigApi.java | 2
small-program/pages/address/address.vue | 2
small-program/unpackage/dist/dev/mp-weixin/pages/address/address.wxss | 2
small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_pass@2x.png | 0
server/services/src/main/java/com/doumee/core/utils/aliyun/AliSmsService.java | 12
small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.wxml | 2
server/services/src/main/java/com/doumee/dao/business/model/DriverInfo.java | 6
server/services/src/main/java/com/doumee/core/constants/Constants.java | 168 +-
server/services/src/main/java/com/doumee/core/utils/geocode/MapUtil.java | 168 +++
server/services/src/main/java/com/doumee/service/business/impl/WithdrawalOrdersServiceImpl.java | 94 +
server/services/src/main/java/com/doumee/core/utils/tencent/MapUtil.java | 4
small-program/static/icon/ic_pass@2x.png | 0
small-program/pages/details-entry/details-entry.vue | 418 ++++++++
server/services/src/main/java/com/doumee/dao/business/model/OrdersRefund.java | 3
server/web/src/main/java/com/doumee/api/web/ShopInfoApi.java | 4
server/services/src/main/java/com/doumee/dao/business/model/Notice.java | 68 +
small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxss | 111 ++
small-program/static/icon/address_ic_edit@2x.png | 0
small-program/pages/mine/mine.vue | 9
server/services/src/main/java/com/doumee/dao/dto/DriverVerifyRequest.java | 8
small-program/unpackage/dist/dev/mp-weixin/project.private.config.json | 18
server/services/src/main/java/com/doumee/biz/system/impl/AreasBizImpl.java | 26
server/services/src/main/resources/application-pro.yml | 7
server/services/src/main/java/com/doumee/service/business/DriverInfoService.java | 17
small-program/utils/http.api.js | 4
server/services/src/main/java/com/doumee/config/wx/WxPayV3Service.java | 186 +++
server/services/src/main/java/com/doumee/config/alipay/AlipayProperties.java | 41
server/services/src/main/java/com/doumee/dao/dto/AlipayTransferDTO.java | 39
server/services/src/main/resources/application-test.yml | 7
server/services/src/main/java/com/doumee/config/wx/WxPayProperties.java | 16
small-program/unpackage/dist/dev/mp-weixin/static/icon/address_ic_edit@2x.png | 0
server/services/src/main/java/com/doumee/service/business/OrdersService.java | 4
server/services/src/main/java/com/doumee/dao/business/NoticeMapper.java | 12
small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.js | 21
server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java | 52
server/services/src/main/java/com/doumee/service/business/impl/ShopInfoServiceImpl.java | 15
server/services/src/main/resources/application-dev.yml | 13
small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxml | 2
server/services/src/main/java/com/doumee/dao/vo/ShopDetailVO.java | 9
server/web/src/main/java/com/doumee/api/web/DriverInfoApi.java | 26
/dev/null | 50 -
server/services/src/main/java/com/doumee/dao/vo/PlatformAboutVO.java | 2
small-program/pages/store-apply/store-apply.vue | 110 +-
server/services/src/main/java/com/doumee/dao/dto/ShopUpdateDTO.java | 8
server/services/db/db_change.sql | 14
server/services/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java | 16
server/services/src/main/java/com/doumee/dao/dto/ShopApplyDTO.java | 4
server/services/src/main/java/com/doumee/service/business/impl/OrdersServiceImpl.java | 269 ++++-
small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_fail@2x.png | 0
58 files changed, 2,401 insertions(+), 415 deletions(-)
diff --git a/server/services/db/db_change.sql b/server/services/db/db_change.sql
index 2afd4ab..b240fc2 100644
--- a/server/services/db/db_change.sql
+++ b/server/services/db/db_change.sql
@@ -5,6 +5,20 @@
-- ============================================================
+-- 2026/04/20 鍟嗘埛涓庡徃鏈哄鍔犳敮浠樺疂瀹炲悕濮撳悕瀛楁
+-- ============================================================
+ALTER TABLE `shop_info` ADD COLUMN `ALI_NAME` VARCHAR(50) DEFAULT NULL COMMENT '鏀粯瀹濆疄鍚嶅鍚�' AFTER `ALI_ACCOUNT`;
+ALTER TABLE `driver_info` ADD COLUMN `ALI_ACCOUNT` VARCHAR(100) DEFAULT NULL COMMENT '鏀粯瀹濇彁鐜拌处鎴�' AFTER `LATITUDE`;
+ALTER TABLE `driver_info` ADD COLUMN `ALI_NAME` VARCHAR(50) DEFAULT NULL COMMENT '鏀粯瀹濆疄鍚嶅鍚�' AFTER `ALI_ACCOUNT`;
+
+
+-- ============================================================
+-- 2026/04/20 璁㈠崟閫�娆捐褰曡〃澧炲姞閫�娆剧姸鎬佸瓧娈�
+-- ============================================================
+ALTER TABLE `orders_refund` ADD COLUMN `STATUS` INT DEFAULT 0 COMMENT '閫�娆剧姸鎬侊細0=閫�娆句腑锛�1=閫�娆炬垚鍔燂紱2=閫�娆惧け璐�' AFTER `REFUND_REMARK`;
+
+
+-- ============================================================
-- 2026/04/20 璁㈠崟琛ㄥ鍔犵墿鍝佺骇鍒瓧娈�
-- ============================================================
ALTER TABLE `orders` ADD COLUMN `GOOD_LEVEL` INT DEFAULT NULL COMMENT '鐗╁搧绾у埆锛坈ategory涓婚敭锛宼ype=3锛�' AFTER `GOOD_TYPE`;
diff --git a/server/services/src/main/java/com/doumee/biz/system/impl/AreasBizImpl.java b/server/services/src/main/java/com/doumee/biz/system/impl/AreasBizImpl.java
index a26c322..e8769f2 100644
--- a/server/services/src/main/java/com/doumee/biz/system/impl/AreasBizImpl.java
+++ b/server/services/src/main/java/com/doumee/biz/system/impl/AreasBizImpl.java
@@ -1,8 +1,10 @@
package com.doumee.biz.system.impl;
import com.doumee.biz.system.AreasBiz;
+import com.doumee.dao.business.AreasMapper;
import com.doumee.dao.business.model.Areas;
import com.doumee.service.business.AreasService;
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -16,15 +18,27 @@
public class AreasBizImpl implements AreasBiz {
@Autowired
- private AreasService areasService;
+ private AreasMapper areasMapper;
@Override
public Areas resolveArea(Integer areaId) {
- if (areaId == null) {
- return null;
- }
- // cacheData 涓凡涓烘瘡鏉″尯鍘胯褰曞~鍏呬簡 provinceId/provinceName/cityId/cityName
- return areasService.findById(areaId);
+
+ return areasMapper.selectJoinOne(Areas.class,new MPJLambdaWrapper<Areas>()
+ .selectAll(Areas.class)
+ .select(" a1.id ",Areas::getCityId)
+ .select(" a1.name ",Areas::getCityName)
+ .select(" a2.id ",Areas::getProvinceId)
+ .select(" a2.name ",Areas::getProvinceName)
+ .leftJoin("areas a1 on a1.id = t.PARENT_ID")
+ .leftJoin("areas a2 on a2.id = a1.PARENT_ID")
+ .eq(Areas::getId, areaId)
+ );
+
+// if (areaId == null) {
+// return null;
+// }
+// // cacheData 涓凡涓烘瘡鏉″尯鍘胯褰曞~鍏呬簡 provinceId/provinceName/cityId/cityName
+// return areasMapper.selectById(areaId);
}
}
diff --git a/server/services/src/main/java/com/doumee/config/alipay/AlipayProperties.java b/server/services/src/main/java/com/doumee/config/alipay/AlipayProperties.java
new file mode 100644
index 0000000..6076ebe
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/config/alipay/AlipayProperties.java
@@ -0,0 +1,41 @@
+package com.doumee.config.alipay;
+
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+/**
+ * 鏀粯瀹濋厤缃睘鎬�
+ * @author rk
+ * @date 2026/04/20
+ */
+@Component
+@ConfigurationProperties(prefix = "alipay.pay")
+@Data
+public class AlipayProperties {
+
+ /**
+ * 搴旂敤ID
+ */
+ private String appId;
+
+ /**
+ * 搴旂敤绉侀挜
+ */
+ private String privateKey;
+
+ /**
+ * 搴旂敤鍏挜璇佷功璺緞
+ */
+ private String appCertPath;
+
+ /**
+ * 鏀粯瀹濆叕閽ヨ瘉涔﹁矾寰�
+ */
+ private String alipayPublicCertPath;
+
+ /**
+ * 鏀粯瀹濇牴璇佷功璺緞
+ */
+ private String rootCertPath;
+}
diff --git a/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java b/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java
index de47dc8..d386941 100644
--- a/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java
+++ b/server/services/src/main/java/com/doumee/config/wx/WxMiniConfig.java
@@ -3,9 +3,7 @@
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl;
-import com.doumee.biz.system.SystemDictDataBiz;
import com.doumee.config.mybatis.SpringUtils;
-import com.doumee.core.constants.Constants;
import com.github.binarywang.wxpay.config.WxPayConfig;
import com.github.binarywang.wxpay.constant.WxPayConstants;
import com.github.binarywang.wxpay.service.WxPayService;
@@ -13,12 +11,11 @@
import com.wechat.pay.java.core.Config;
import com.wechat.pay.java.core.RSAAutoCertificateConfig;
import com.wechat.pay.java.core.RSAPublicKeyConfig;
-import com.wechat.pay.java.core.http.HostName;
+import com.wechat.pay.java.core.notification.NotificationParser;
import com.wechat.pay.java.core.notification.RSAPublicKeyNotificationConfig;
-import com.wechat.pay.java.service.billdownload.BillDownloadService;
-import com.wechat.pay.java.service.partnerpayments.jsapi.JsapiService;
-import com.wechat.pay.java.service.partnerpayments.jsapi.JsapiServiceExtension;
+import com.wechat.pay.java.service.payments.jsapi.JsapiServiceExtension;
import com.wechat.pay.java.service.refund.RefundService;
+import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
@@ -28,15 +25,20 @@
/**
* 寰俊灏忕▼搴忕粍浠�
*/
+@Slf4j
@Configuration
public class WxMiniConfig {
/********寰俊灏忕▼搴忔湇鍔�**********/
public static WxMaService wxMaService;
- /********寰俊灏忕▼搴忔敮浠�**********/
+ /********寰俊灏忕▼搴忔敮浠� V2**********/
public static WxPayService wxPayService;
/********寰俊APP鏀粯**********/
public static WxPayService wxAppPayService;
+ /********寰俊鏀粯 V3**********/
+ public static JsapiServiceExtension v3JsapiService;
+ public static RefundService v3RefundService;
+ public static NotificationParser v3NotificationParser;
@Autowired
private WxPayProperties wxPayProperties;
@@ -49,6 +51,7 @@
void init() {
this.load_WxMaService();
this.load_wxPayService();
+ this.load_wxPayV3Service();
// this.load_wxAppPayService();
}
/**
@@ -59,15 +62,13 @@
config.setAppid(StringUtils.trimToNull(wxPayProperties.getAppId()));
config.setSecret(StringUtils.trimToNull(wxPayProperties.getAppSecret()));
config.setMsgDataFormat("JSON");
- //config.setToken("");
- //config.setAesKey("");
WxMaService wxMaService = new WxMaServiceImpl();
wxMaService.setWxMaConfig(config);
this.wxMaService = wxMaService;
}
/**
- * 鍒濆鍖栧井淇″皬绋嬪簭鏀粯
+ * 鍒濆鍖栧井淇″皬绋嬪簭鏀粯 V2
*/
public void load_wxPayService() {
WxPayConfig payConfig = new WxPayConfig();
@@ -83,8 +84,39 @@
this.wxPayService = wxPayService;
}
+ /**
+ * 鍒濆鍖栧井淇℃敮浠� V3锛圝SAPI + 閫�娆� + 鍥炶皟楠岀锛�
+ */
+ public void load_wxPayV3Service() {
+ try {
+ Config config =
+ new RSAPublicKeyConfig.Builder()
+ .merchantId(wxPayProperties.getMchId()) //寰俊鏀粯鐨勫晢鎴峰彿
+ .privateKeyFromPath(wxPayProperties.getPrivateKeyPath()) // 鍟嗘埛API璇佷功绉侀挜鐨勫瓨鏀捐矾寰�
+ .merchantSerialNumber(wxPayProperties.getSerialNumer()) //鍟嗘埛API璇佷功搴忓垪鍙�
+ .publicKeyFromPath(wxPayProperties.getPubKeyPath()) //寰俊鏀粯鍏挜鐨勫瓨鏀捐矾寰�
+ .publicKeyId(wxPayProperties.getPublicKeyId()) //寰俊鏀粯鍏挜ID
+ .apiV3Key(wxPayProperties.getApiV3Key()) //APIv3瀵嗛挜
+ .build();
+ // 鏀粯鍏挜閰嶇疆锛堢敤浜庡洖璋冮獙绛撅級
+ RSAPublicKeyNotificationConfig notifyConfig = new RSAPublicKeyNotificationConfig.Builder()
+ .publicKeyFromPath(wxPayProperties.getPubKeyPath())
+ .publicKeyId(wxPayProperties.getPublicKeyId())
+ .apiV3Key(wxPayProperties.getApiV3Key())
+ .build();
+
+ v3JsapiService = new JsapiServiceExtension.Builder().config(config).build();
+ v3RefundService = new RefundService.Builder().config(config).build();
+ v3NotificationParser = new NotificationParser(notifyConfig);
+
+ log.info("寰俊鏀粯V3鍒濆鍖栨垚鍔�");
+ } catch (Exception e) {
+ log.error("寰俊鏀粯V3鍒濆鍖栧け璐�: {}", e.getMessage(), e);
+ }
+ }
+
// /**
// * 鍒濆鍖朅pp鏀粯
// */
diff --git a/server/services/src/main/java/com/doumee/config/wx/WxMiniUtilService.java b/server/services/src/main/java/com/doumee/config/wx/WxMiniUtilService.java
deleted file mode 100644
index 1b650b8..0000000
--- a/server/services/src/main/java/com/doumee/config/wx/WxMiniUtilService.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package com.doumee.config.wx;
-
-import com.doumee.core.constants.ResponseStatus;
-import com.doumee.core.exception.BusinessException;
-import com.doumee.core.utils.ID;
-import com.github.binarywang.wxpay.bean.request.WxPayRefundRequest;
-import com.github.binarywang.wxpay.bean.result.WxPayRefundResult;
-import com.github.binarywang.wxpay.exception.WxPayException;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
-
-import java.math.BigDecimal;
-
-/**
- * 寰俊灏忕▼搴�-鍏叡鏂规硶
- */
-@Service
-@Slf4j
-public class WxMiniUtilService {
-
-
- /**
- * 璁㈠崟寰俊閫�娆�
- * orderNo:鍟嗘埛璁㈠崟鍙�
- * totalPrice锛氳鍗曟�婚噾棰�
- * refundPrice锛涢��娆鹃噾棰�
- */
- @Transactional(rollbackFor = Exception.class)
- public String wxRefund(String orderNo, Long totalPrice, Long refundPrice) {
- try {
- // 鍙戦�侀��娆捐姹�
- String refNum = ID.nextGUID();
- WxPayRefundRequest request = new WxPayRefundRequest();
- request.setOutTradeNo(orderNo);
- request.setOutRefundNo(refNum);
- request.setTotalFee(totalPrice.intValue());
- request.setRefundFee(refundPrice.intValue());
- WxPayRefundResult response = WxMiniConfig.wxPayService.refund(request);
- if ("SUCCESS".equals(response.getReturnCode()) && "SUCCESS".equals(response.getResultCode())) {
- return refNum;
- } else {
- throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),response.getErrCode() + response.getErrCodeDes());
- }
- } catch (WxPayException e) {
- e.printStackTrace();
- }
- throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"閫�娆惧彂鐢熷紓甯歌鑱旂郴绠$悊鍛�");
- }
-}
diff --git a/server/services/src/main/java/com/doumee/config/wx/WxPayProperties.java b/server/services/src/main/java/com/doumee/config/wx/WxPayProperties.java
index e4c45ba..69d36b6 100644
--- a/server/services/src/main/java/com/doumee/config/wx/WxPayProperties.java
+++ b/server/services/src/main/java/com/doumee/config/wx/WxPayProperties.java
@@ -42,6 +42,16 @@
private String notifyUrl;
/**
+ * V3鏀粯鍥炶皟鍦板潃
+ */
+ private String v3NotifyUrl;
+
+ /**
+ * V3閫�娆惧洖璋冨湴鍧�
+ */
+ private String v3RefundNotifyUrl;
+
+ /**
* 鏀粯璇佷功(p12)
*/
private String keyPath;
@@ -76,13 +86,15 @@
*/
private String privateCertPath;
-
-
/**
* 鏀粯key
*/
private String privateKeyPath;
+ /**
+ * 寰俊鏀粯鍏挜ID
+ */
+ private String publicKeyId;
}
diff --git a/server/services/src/main/java/com/doumee/config/wx/WxPayV3Service.java b/server/services/src/main/java/com/doumee/config/wx/WxPayV3Service.java
new file mode 100644
index 0000000..6a5ace2
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/config/wx/WxPayV3Service.java
@@ -0,0 +1,186 @@
+package com.doumee.config.wx;
+
+import com.doumee.core.constants.ResponseStatus;
+import com.doumee.core.exception.BusinessException;
+import com.doumee.core.utils.ID;
+import com.wechat.pay.java.core.notification.RequestParam;
+import com.wechat.pay.java.service.payments.jsapi.model.PrepayRequest;
+import com.wechat.pay.java.service.payments.jsapi.model.PrepayWithRequestPaymentResponse;
+import com.wechat.pay.java.service.refund.model.AmountReq;
+import com.wechat.pay.java.service.refund.model.CreateRequest;
+import com.wechat.pay.java.service.refund.model.Refund;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 寰俊鏀粯V3鐗堟湰鏈嶅姟锛圝SAPI涓嬪崟 + 閫�娆� + 鍥炶皟楠岀锛�
+ *
+ * @author rk
+ * @date 2026/04/20
+ */
+@Service
+@Slf4j
+public class WxPayV3Service {
+
+ @Autowired
+ private WxPayProperties wxPayProperties;
+
+ /**
+ * JSAPI涓嬪崟锛岃繑鍥炲墠绔皟璧锋敮浠樻墍闇�鐨勫弬鏁�
+ *
+ * @param outTradeNo 鍟嗘埛璁㈠崟鍙�
+ * @param description 鍟嗗搧鎻忚堪
+ * @param totalCents 閲戦锛堝垎锛�
+ * @param openid 鐢ㄦ埛openid
+ * @param notifyUrl 鏀粯鍥炶皟鍦板潃
+ * @param attach 闄勫姞鏁版嵁锛堝洖璋冩椂鍘熸牱杩斿洖锛岀敤浜庤矾鐢变笉鍚屼笟鍔★級
+ * @return 鍓嶇璋冭捣鏀粯鍙傛暟锛坅ppId, timeStamp, nonceStr, package, signType, paySign锛�
+ */
+ public Map<String, String> createOrder(String outTradeNo, String description,
+ Long totalCents, String openid,
+ String notifyUrl, String attach) {
+ if (WxMiniConfig.v3JsapiService == null) {
+ throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "寰俊鏀粯V3鏈垵濮嬪寲");
+ }
+ try {
+ PrepayRequest request = new PrepayRequest();
+ request.setAppid(wxPayProperties.getAppId());
+ request.setMchid(wxPayProperties.getMchId());
+ request.setDescription(description);
+ request.setOutTradeNo(outTradeNo);
+ request.setNotifyUrl(notifyUrl);
+ if (attach != null && !attach.isEmpty()) {
+ request.setAttach(attach);
+ }
+
+ com.wechat.pay.java.service.payments.jsapi.model.Amount amount =
+ new com.wechat.pay.java.service.payments.jsapi.model.Amount();
+ amount.setTotal(1);//totalCents.intValue());
+ amount.setCurrency("CNY");
+ request.setAmount(amount);
+
+ com.wechat.pay.java.service.payments.jsapi.model.Payer payer =
+ new com.wechat.pay.java.service.payments.jsapi.model.Payer();
+ payer.setOpenid(openid);
+ request.setPayer(payer);
+
+ PrepayWithRequestPaymentResponse response =
+ WxMiniConfig.v3JsapiService.prepayWithRequestPayment(request);
+
+ Map<String, String> result = new HashMap<>();
+ result.put("appId", response.getAppId());
+ result.put("timeStamp", response.getTimeStamp());
+ result.put("nonceStr", response.getNonceStr());
+ result.put("package", response.getPackageVal());
+ result.put("signType", response.getSignType());
+ result.put("paySign", response.getPaySign());
+ return result;
+ } catch (Exception e) {
+ log.error("寰俊鏀粯V3涓嬪崟澶辫触: {}", e.getMessage(), e);
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鏀粯璋冭捣澶辫触锛�" + e.getMessage());
+ }
+ }
+
+ /**
+ * V3閫�娆�
+ *
+ * @param outTradeNo 鍟嗘埛璁㈠崟鍙�
+ * @param totalCents 鍘熻鍗曢噾棰濓紙鍒嗭級
+ * @param refundCents 閫�娆鹃噾棰濓紙鍒嗭級
+ * @param reason 閫�娆惧師鍥�
+ * @param notifyUrl 閫�娆惧洖璋冨湴鍧�
+ * @return Refund 閫�娆剧粨鏋滐紙鍖呭惈 outRefundNo銆乻tatus 绛夛級
+ */
+ public Refund refund(String outTradeNo, Long totalCents, Long refundCents,
+ String reason, String notifyUrl) {
+ if (WxMiniConfig.v3RefundService == null) {
+ throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "寰俊鏀粯V3鏈垵濮嬪寲");
+ }
+ try {
+ String outRefundNo = ID.nextGUID();
+
+ CreateRequest request = new CreateRequest();
+ request.setOutTradeNo(outTradeNo);
+ request.setOutRefundNo(outRefundNo);
+ request.setReason(reason);
+ request.setNotifyUrl(notifyUrl);
+
+ AmountReq amount = new AmountReq();
+ amount.setRefund(1L);//refundCents);
+ amount.setTotal(1L);//totalCents);
+ amount.setCurrency("CNY");
+ request.setAmount(amount);
+
+ Refund result = WxMiniConfig.v3RefundService.create(request);
+ log.info("寰俊鏀粯V3閫�娆剧敵璇风粨鏋�, outTradeNo={}, outRefundNo={}, status={}",
+ outTradeNo, outRefundNo, result.getStatus());
+ return result;
+ } catch (Exception e) {
+ log.error("寰俊鏀粯V3閫�娆惧け璐�: {}", e.getMessage(), e);
+ throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "閫�娆惧け璐ワ細" + e.getMessage());
+ }
+ }
+
+ /**
+ * 瑙f瀽V3鏀粯鍥炶皟閫氱煡
+ *
+ * @param serialNumber 璇佷功搴忓垪鍙凤紙Wechatpay-Serial header锛�
+ * @param timestamp 鏃堕棿鎴筹紙Wechatpay-Timestamp header锛�
+ * @param nonce 闅忔満涓诧紙Wechatpay-Nonce header锛�
+ * @param signature 绛惧悕锛圵echatpay-Signature header锛�
+ * @param body 璇锋眰浣揓SON
+ * @return 瑙f瀽鍚庣殑Transaction瀵硅薄
+ */
+ public com.wechat.pay.java.service.payments.model.Transaction parsePayNotify(
+ String serialNumber, String timestamp, String nonce,
+ String signature, String body) {
+ try {
+ RequestParam requestParam = new RequestParam.Builder()
+ .serialNumber(serialNumber)
+ .timestamp(timestamp)
+ .nonce(nonce)
+ .signature(signature)
+ .body(body)
+ .build();
+
+ return WxMiniConfig.v3NotificationParser.parse(requestParam,
+ com.wechat.pay.java.service.payments.model.Transaction.class);
+ } catch (Exception e) {
+ log.error("寰俊鏀粯V3鍥炶皟楠岀澶辫触: {}", e.getMessage(), e);
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鍥炶皟楠岀澶辫触");
+ }
+ }
+
+ /**
+ * 瑙f瀽V3閫�娆惧洖璋冮�氱煡
+ *
+ * @param serialNumber 璇佷功搴忓垪鍙�
+ * @param timestamp 鏃堕棿鎴�
+ * @param nonce 闅忔満涓�
+ * @param signature 绛惧悕
+ * @param body 璇锋眰浣揓SON
+ * @return 瑙f瀽鍚庣殑RefundNotification瀵硅薄
+ */
+ public com.wechat.pay.java.service.refund.model.RefundNotification parseRefundNotify(
+ String serialNumber, String timestamp, String nonce,
+ String signature, String body) {
+ try {
+ RequestParam requestParam = new RequestParam.Builder()
+ .serialNumber(serialNumber)
+ .timestamp(timestamp)
+ .nonce(nonce)
+ .signature(signature)
+ .body(body)
+ .build();
+ return WxMiniConfig.v3NotificationParser.parse(requestParam,
+ com.wechat.pay.java.service.refund.model.RefundNotification.class);
+ } catch (Exception e) {
+ log.error("寰俊鏀粯V3閫�娆惧洖璋冮獙绛惧け璐�: {}", e.getMessage(), e);
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "閫�娆惧洖璋冮獙绛惧け璐�");
+ }
+ }
+}
diff --git a/server/services/src/main/java/com/doumee/core/constants/Constants.java b/server/services/src/main/java/com/doumee/core/constants/Constants.java
index 0409d47..ac995a0 100644
--- a/server/services/src/main/java/com/doumee/core/constants/Constants.java
+++ b/server/services/src/main/java/com/doumee/core/constants/Constants.java
@@ -101,6 +101,7 @@
public static final int ORDER_LOG_ASSIGN_DRIVER = 3; // 鎸囨淳鍙告満
public static final int ORDER_LOG_CANCEL = 4; // 鍙栨秷璁㈠崟
public static final int ORDER_LOG_CONFIRM_ARRIVE = 5; // 纭椤惧鍒板簵
+ public static final int ORDER_LOG_DRIVER_PICKUP = 6; // 鍙告満瀹屾垚鍙栦欢
public static final String SUCCESS = "SUCCESS";
public static final String FAIL = "FAIL";
@@ -276,97 +277,6 @@
- public enum WorkOrderStatus{
- waitConfirm( 0, "寰呭垎閰峎TS","{title}涓婃姤","","寰呭垎閰峎TS" ),
- waitAllocation(1, "寰呭垎閰嶄换鍔�","寰呭垎閰嶄换鍔�","","寰呭垎閰嶄换鍔�"),
- waitDeal(2, "寰呭鐞�","寰呭鐞�","","寰呭伐绋嬪笀澶勭悊"),
- sheClose(3, "宸茶В鍐�","SHE宸插叧闂�","","SHE宸插叧闂�"),
- wtsClose(4, "宸茶В鍐�","WTS宸插叧闂�","","WTS宸插叧闂�"),
- close(5, "宸茶В鍐�","宸茶В鍐�","","宸ョ▼甯堝叧闂�"),
- urge (6, "鍌績","","","")
- ;
-
- private int status;
- private String statusInfo;
- private String statusName;
- private String logTitle;
- private String noticeContent;
-
- // 鏋勯�犳柟娉�
- WorkOrderStatus(int status, String statusInfo,String logTitle,String noticeContent,String statusName ) {
- this.status = status;
- this.statusInfo = statusInfo;
- this.logTitle = logTitle;
- this.noticeContent = noticeContent;
- this.statusName = statusName;
- }
- public static String getName(int index) {
- for (WorkOrderStatus c : WorkOrderStatus.values()) {
- if (c.getKey() == index) {
- return c.statusInfo;
- }
- }
- return null;
- }
- public static String getStatusName(int index) {
- for (WorkOrderStatus c : WorkOrderStatus.values()) {
- if (c.getKey() == index) {
- return c.statusName;
- }
- }
- return null;
- }
-
- public int getKey() {
- return status;
- }
-
- public void setKey(int key) {
- this.status = status;
- }
-
- public int getStatus() {
- return status;
- }
-
- public void setStatus(int status) {
- this.status = status;
- }
-
- public String getStatusName() {
- return statusName;
- }
-
- public void setStatusName(String statusName) {
- this.statusName = statusName;
- }
-
- public String getStatusInfo() {
- return statusInfo;
- }
-
- public void setStatusInfo(String statusInfo) {
- this.statusInfo = statusInfo;
- }
-
- public String getLogTitle() {
- return logTitle;
- }
-
- public void setLogTitle(String logTitle) {
- this.logTitle = logTitle;
- }
-
- public String getNoticeContent() {
- return noticeContent;
- }
-
- public void setNoticeContent(String noticeContent) {
- this.noticeContent = noticeContent;
- }
- }
-
-
/**
* 闄勪欢绫诲瀷锛堝搴� multifile.objType锛�
*/
@@ -497,6 +407,82 @@
}
/**
+ * 璁㈠崟绔欏唴淇¢�氱煡鏋氫妇
+ * title: 閫氱煡鏍囬
+ * content: 閫氱煡鏂囨妯℃澘锛屽崰浣嶇鐢� {xxx} 琛ㄧず
+ */
+ @Getter
+ @AllArgsConstructor
+ public enum MemberOrderNotify {
+ WAIT_PAY("waitPay", "璁㈠崟寰呮敮浠�", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸插垱寤猴紝璇峰湪{timeout}鍒嗛挓鍐呭畬鎴愭敮浠橈紝瓒呮椂灏嗚嚜鍔ㄥ彇娑�"),
+ WAIT_VERIFY("waitVerify", "璁㈠崟寰呮牳楠�", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸叉彁浜わ紝绛夊緟闂ㄥ簵鏍搁獙鐗╁搧淇℃伅锛屽瓨浠剁爜{storeCode}"),
+ WAIT_GRAB("waitGrab", "璁㈠崟寰呮姠鍗�", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸叉牳楠岋紝姝e湪涓烘偍瀹夋帓鍙栦欢鍙告満"),
+ WAIT_PICKUP_REMIND("waitPickupRemind", "璁㈠崟寰呭彇浠�", "璁㈠崟{orderNo}琛屾潕宸插瘎瀛橈紝璇疯寰楀湪棰勭害鍙栦欢鏃堕棿鍑彇浠剁爜鍓嶅線鎸囧畾闂ㄥ簵鍙栧洖"),
+ WAIT_PICKUP_GRABBED("waitPickupGrabbed", "璁㈠崟宸叉姠鍗�", "鎮ㄧ殑琛屾潕璁㈠崟锛氬凡鏈夊徃鏈簕driverName}鎶㈠崟锛屾鍓嶅線鍙栦欢鍦扮偣"),
+ DELIVERING("delivering", "璁㈠崟閰嶉�佷腑", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸茬敱鍙告満{driverName}鍙栦欢锛屾杩愬線鐩殑鍦�"),
+ ARRIVED_NO_SHOP("arrivedNoShop", "璁㈠崟宸查�佽揪", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸查�佽揪{destination},璇峰強鏃剁‘璁ゆ敹璐�"),
+ ARRIVED_HAS_SHOP("arrivedHasShop", "璁㈠崟宸查�佽揪", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸查�佽揪{destination},璇峰強鏃跺彇浠讹紝鍙栦欢鐮亄pickupCode}"),
+ FINISHED("finished", "璁㈠崟宸插畬鎴�", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸插畬鎴愶紝鎰熻阿鎮ㄧ殑鏀寔锛岃瀵规湰娆℃湇鍔″仛鍑鸿瘎浠�"),
+ EVALUATED("evaluated", "璁㈠崟宸茶瘎浠�", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}璇勪环宸叉彁浜わ紝鎰熻阿鎮ㄧ殑鐢ㄥ績璇勪环锛岀鎮ㄥ嚭琛岄『鍒╋紝鏃呴�旀剦蹇�!"),
+ CANCELLED("cancelled", "璁㈠崟宸插彇娑�", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}宸插彇娑堬紝鎰熻阿鎮ㄧ殑鏀寔锛屾杩庝笅娆″啀浼�!"),
+ DRIVER_CHANGED("driverChanged", "鍙告満鍙樻洿鎻愰啋", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}鍘熷徃鏈哄凡鍙栨秷锛岀郴缁熸鍦ㄤ负鎮ㄥ尮閰嶆柊鍙告満锛岃鐣欐剰閫氱煡銆�"),
+ REFUNDING("refunding", "璁㈠崟閫�娆句腑", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}閫�娆剧敵璇峰凡鎻愪氦锛屽钩鍙颁細灏嗗敖蹇负鎮ㄥ鐞嗛��娆�"),
+ REFUNDED("refunded", "璁㈠崟宸查��娆�", "鎮ㄧ殑琛屾潕璁㈠崟锛歿orderNo}閫�娆惧凡瀹屾垚锛岄噾棰漿amount}鍏冨皢鍘熻矾閫�鍥烇紝璇锋敞鎰忔煡鏀�")
+ ;
+
+ private final String key;
+ private final String title;
+ private final String content;
+
+ /**
+ * 鏍煎紡鍖栭�氱煡鍐呭
+ * @param params 閿�煎锛屽 "orderNo","123" 浜ゆ浛浼犲叆
+ */
+ public String format(String... params) {
+ String result = this.content;
+ for (int i = 0; i < params.length - 1; i += 2) {
+ result = result.replace("{" + params[i] + "}", params[i + 1]);
+ }
+ return result;
+ }
+ }
+
+ /**
+ * 闂ㄥ簵璁㈠崟绔欏唴淇¢�氱煡鏋氫妇
+ * title: 閫氱煡鏍囬
+ * content: 閫氱煡鏂囨妯℃澘锛屽崰浣嶇鐢� {xxx} 琛ㄧず
+ */
+ @Getter
+ @AllArgsConstructor
+ public enum ShopOrderNotify {
+ WAIT_VERIFY("waitVerify", "璁㈠崟寰呮牳楠�", "鏂拌鏉庤鍗曪細{orderNo}宸叉敮浠橈紝璇峰敖蹇牳楠岀敤鎴风墿鍝佷俊鎭�"),
+ WAIT_PICKUP("waitPickup", "璁㈠崟寰呭彇浠�", "琛屾潕璁㈠崟锛歿orderNo}宸叉姠鍗曪紝绛夊緟{name}鍙栦欢"),
+ REFUNDING("refunding", "璁㈠崟閫�娆句腑", "琛屾潕璁㈠崟锛歿orderNo}鐢ㄦ埛鎻愪氦閫�娆剧敵璇凤紝璇风煡鎮�"),
+ DELIVERING("delivering", "璁㈠崟閰嶉�佷腑", "琛屾潕璁㈠崟锛歿orderNo}宸茬敱鍙告満{driverName}鍙栦欢锛屾鍦ㄩ厤閫佷腑"),
+ ARRIVED("arrived", "宸查�佽揪", "琛屾潕璁㈠崟锛歿orderNo}宸查�佽揪{destination},璇疯仈绯荤敤鎴风‘璁ょ鏀�"),
+ FINISHED("finished", "璁㈠崟宸插畬鎴�", "琛屾潕璁㈠崟锛歿orderNo}宸插畬鎴愶紝鐩稿叧璁㈠崟缁撶畻浼氬湪{settleDays}涓伐浣滄棩鍐呭畬鎴�"),
+ EVALUATED("evaluated", "璁㈠崟宸茶瘎浠�", "琛屾潕璁㈠崟锛歿orderNo}鐢ㄦ埛宸插畬鎴愯瘎浠凤紝鍙煡鐪嬭瘎浠峰唴瀹�"),
+ SETTLED("settled", "璁㈠崟缁撶畻", "琛屾潕璁㈠崟锛歿orderNo}骞冲彴宸插畬鎴愮粨绠楋紝閲戦涓簕amount}鍏冿紝璇锋敞鎰忔煡鏀躲��")
+ ;
+
+ private final String key;
+ private final String title;
+ private final String content;
+
+ /**
+ * 鏍煎紡鍖栭�氱煡鍐呭
+ * @param params 閿�煎锛屽 "orderNo","123" 浜ゆ浛浼犲叆
+ */
+ public String format(String... params) {
+ String result = this.content;
+ for (int i = 0; i < params.length - 1; i += 2) {
+ result = result.replace("{" + params[i] + "}", params[i + 1]);
+ }
+ return result;
+ }
+ }
+
+ /**
* 寰楀埌request瀵硅薄
*
* @return
diff --git a/server/services/src/main/java/com/doumee/core/utils/aliyun/AliSmsService.java b/server/services/src/main/java/com/doumee/core/utils/aliyun/AliSmsService.java
index 66796b6..e18cb9c 100644
--- a/server/services/src/main/java/com/doumee/core/utils/aliyun/AliSmsService.java
+++ b/server/services/src/main/java/com/doumee/core/utils/aliyun/AliSmsService.java
@@ -24,17 +24,15 @@
@Slf4j
public class AliSmsService {
- private final static String ACCESS_KEY_ID = "LTAI5tMkg7wwV74a8H6Bm3Ej";
- private final static String ACCESS_KEY_SECRET = "FcHKST36sfwfo706L6bvrweGFIbp3n";
- private final static String SING_NAME = "姗欐澶╀笅绉戞妧";
+ private final static String ACCESS_KEY_ID = "LTAI5t835zTU4aaYpGHJCccJ";
+ private final static String ACCESS_KEY_SECRET = "98sAF2NchWVuIzu62zcLq0Ns7LIQTp";
+ private final static String SING_NAME = "鍗椾含涓夊彧楣�";
public static void main(String[] args) {
Map<String,Object> tempParam = new java.util.HashMap<>();
- tempParam.put("order","钁¤悇閲囨憳宸�");
- tempParam.put("time1","07-23");
- tempParam.put("time2","07-24");
- AliSmsService.sendSms("18055151023","SMS_491055243", JSONObject.toJSONString(tempParam));
+ tempParam.put("code","1234");
+ AliSmsService.sendSms("15345690849","SMS_333770877", JSONObject.toJSONString(tempParam));
}
diff --git a/server/services/src/main/java/com/doumee/core/utils/geocode/MapUtil.java b/server/services/src/main/java/com/doumee/core/utils/geocode/MapUtil.java
new file mode 100644
index 0000000..f70ae35
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/core/utils/geocode/MapUtil.java
@@ -0,0 +1,168 @@
+package com.doumee.core.utils.geocode;
+
+import com.alibaba.fastjson.JSONObject;
+import com.doumee.core.utils.Http;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.stereotype.Component;
+
+import java.io.IOException;
+import java.net.URLEncoder;
+
+/**
+ * 楂樺痉鍦板浘宸ュ叿绫�
+ *
+ * @Author : Rk
+ * @create 2026/4/20
+ */
+@Slf4j
+@Component
+public class MapUtil {
+
+ private static String amapKey;
+
+ /** 閫嗗湴鐞嗚В鏋� */
+ private static final String GEO_URL = "https://restapi.amap.com/v3/geocode/regeo";
+
+ /** 椹捐溅璺緞瑙勫垝 */
+ private static final String DRIVING_URL = "https://restapi.amap.com/v3/direction/driving";
+
+ /** 楠戣璺緞瑙勫垝 */
+ private static final String BICYCLING_URL = "https://restapi.amap.com/v4/direction/bicycling";
+
+ @Value("${geocode_map_key:}")
+ public void setAmapKey(String amapKey) {
+ MapUtil.amapKey = amapKey;
+ }
+
+ /**
+ * 閫嗗湴鐞嗚В鏋� - 鏍规嵁缁忕含搴﹁幏鍙栧湴鍧�淇℃伅
+ * 楂樺痉鍧愭爣绯讳负 lng,lat锛堜笌鑵捐 lat,lng 鐩稿弽锛�
+ *
+ * @param lat 绾害
+ * @param lng 缁忓害
+ * @return 鍖呭惈 ad_info 鍩庡競淇℃伅鐨� JSONObject锛堝吋瀹硅吘璁繑鍥炴牸寮忥級
+ */
+ public static JSONObject reverseGeocode(double lat, double lng) {
+ try {
+ String url = GEO_URL
+ + "?key=" + amapKey
+ + "&location=" + lng + "," + lat;
+
+ log.info("楂樺痉鍦板浘閫嗗湴鐞嗚В鏋愯姹�: lat={}, lng={}", lat, lng);
+
+ JSONObject json = new Http().build(url)
+ .setConnectTimeout(5000)
+ .setReadTimeout(10000)
+ .get()
+ .toJSONObject();
+
+ log.info("楂樺痉鍦板浘閫嗗湴鐞嗚В鏋愬搷搴�: {}", json);
+
+ if (!"1".equals(json.getString("status"))) {
+ throw new RuntimeException("楂樺痉鍦板浘閫嗗湴鐞嗚В鏋愬け璐�: " + json.getString("info"));
+ }
+
+ // 杞崲涓哄吋瀹硅吘璁繑鍥炴牸寮�: result.ad_info.city / adcode / district
+ JSONObject regeocode = json.getJSONObject("regeocode");
+ JSONObject addressComponent = regeocode.getJSONObject("addressComponent");
+
+ JSONObject adInfo = new JSONObject();
+ adInfo.put("adcode", addressComponent.getString("adcode"));
+ adInfo.put("city", addressComponent.getString("city"));
+ adInfo.put("district", addressComponent.getString("district"));
+ adInfo.put("province", addressComponent.getString("province"));
+ adInfo.put("nation", addressComponent.getString("country"));
+
+ JSONObject result = new JSONObject();
+ result.put("ad_info", adInfo);
+ result.put("formatted_addresses", regeocode.getString("formatted_address"));
+ return result;
+ } catch (IOException e) {
+ log.error("楂樺痉鍦板浘閫嗗湴鐞嗚В鏋愬紓甯�", e);
+ throw new RuntimeException("楂樺痉鍦板浘閫嗗湴鐞嗚В鏋愬紓甯�", e);
+ }
+ }
+
+ /**
+ * 鍒ゆ柇涓や釜缁忕含搴︽槸鍚﹀湪鍚屼竴涓煄甯�
+ */
+ public static boolean isSameCity(double lat1, double lng1, double lat2, double lng2) {
+ JSONObject result1 = reverseGeocode(lat1, lng1);
+ JSONObject result2 = reverseGeocode(lat2, lng2);
+
+ String city1 = result1.getJSONObject("ad_info").getString("city");
+ String city2 = result2.getJSONObject("ad_info").getString("city");
+
+ log.info("鍒ゆ柇鍚屽煄: ({},{}) => city={}, ({},{}) => city={}", lat1, lng1, city1, lat2, lng2, city2);
+
+ return city1 != null && city1.equals(city2);
+ }
+
+ /**
+ * 璺緞瑙勫垝锛堢粺涓�鍏ュ彛锛�
+ * 鍐呴儴鏍规嵁 mode 璋冪敤楂樺痉涓嶅悓鐨勮矾寰勮鍒掓帴鍙�
+ *
+ * @param mode 妯″紡锛歞riving(椹捐溅)銆乥icycling(楠戣)
+ * @param from 璧风偣锛屾牸寮忥細lat,lng
+ * @param to 缁堢偣锛屾牸寮忥細lat,lng
+ * @return JSONObject 鍖呭惈 distance(绫�) 鍜� duration(绉�)
+ */
+ public static JSONObject direction(String mode, String from, String to) {
+ // 楂樺痉鍧愭爣绯讳负 lng,lat
+ String[] fromArr = from.split(",");
+ String[] toArr = to.split(",");
+ String origin = fromArr[1] + "," + fromArr[0]; // lng,lat
+ String destination = toArr[1] + "," + toArr[0]; // lng,lat
+
+ try {
+ String url;
+ if ("bicycling".equals(mode)) {
+ url = BICYCLING_URL
+ + "?key=" + amapKey
+ + "&origin=" + URLEncoder.encode(origin, "UTF-8")
+ + "&destination=" + URLEncoder.encode(destination, "UTF-8");
+ } else {
+ // 榛樿椹捐溅
+ url = DRIVING_URL
+ + "?key=" + amapKey
+ + "&origin=" + URLEncoder.encode(origin, "UTF-8")
+ + "&destination=" + URLEncoder.encode(destination, "UTF-8");
+ }
+
+ log.info("楂樺痉鍦板浘璺緞瑙勫垝璇锋眰: mode={}, from={}, to={}", mode, from, to);
+
+ JSONObject json = new Http().build(url)
+ .setConnectTimeout(5000)
+ .setReadTimeout(10000)
+ .get()
+ .toJSONObject();
+
+ log.info("楂樺痉鍦板浘璺緞瑙勫垝鍝嶅簲: {}", json);
+
+ if (!"1".equals(json.getString("status"))) {
+ throw new RuntimeException("楂樺痉鍦板浘璺緞瑙勫垝澶辫触: " + json.getString("info"));
+ }
+
+ // 鎻愬彇绗竴鏉¤矾寰勭殑 distance 鍜� duration
+ JSONObject routeData;
+ if ("bicycling".equals(mode)) {
+ routeData = json.getJSONObject("data");
+ } else {
+ routeData = json.getJSONObject("route");
+ }
+
+ JSONObject path = routeData.getJSONArray("paths").getJSONObject(0);
+ long distance = path.getLongValue("distance");
+ long duration = path.getLongValue("duration");
+
+ JSONObject result = new JSONObject();
+ result.put("distance", distance);
+ result.put("duration", duration);
+ return result;
+ } catch (IOException e) {
+ log.error("楂樺痉鍦板浘璺緞瑙勫垝寮傚父", e);
+ throw new RuntimeException("楂樺痉鍦板浘璺緞瑙勫垝寮傚父", e);
+ }
+ }
+}
diff --git a/server/services/src/main/java/com/doumee/core/utils/Tencent/MapUtil.java b/server/services/src/main/java/com/doumee/core/utils/tencent/MapUtil.java
similarity index 98%
rename from server/services/src/main/java/com/doumee/core/utils/Tencent/MapUtil.java
rename to server/services/src/main/java/com/doumee/core/utils/tencent/MapUtil.java
index 9604686..db34e51 100644
--- a/server/services/src/main/java/com/doumee/core/utils/Tencent/MapUtil.java
+++ b/server/services/src/main/java/com/doumee/core/utils/tencent/MapUtil.java
@@ -1,4 +1,4 @@
-package com.doumee.core.utils.Tencent;
+package com.doumee.core.utils.tencent;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
@@ -20,7 +20,7 @@
* @create 2026/4/14 15:58
*/
@Slf4j
-@Component
+//@Component
public class MapUtil {
private static String tencentKey;
diff --git a/server/services/src/main/java/com/doumee/dao/business/NoticeMapper.java b/server/services/src/main/java/com/doumee/dao/business/NoticeMapper.java
new file mode 100644
index 0000000..36f78f4
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/dao/business/NoticeMapper.java
@@ -0,0 +1,12 @@
+package com.doumee.dao.business;
+
+import com.doumee.dao.business.model.Notice;
+import com.github.yulichang.base.MPJBaseMapper;
+
+/**
+ * 娑堟伅閫氱煡淇℃伅Mapper
+ * @author rk
+ * @date 2026/04/20
+ */
+public interface NoticeMapper extends MPJBaseMapper<Notice> {
+}
diff --git a/server/services/src/main/java/com/doumee/dao/business/model/DriverInfo.java b/server/services/src/main/java/com/doumee/dao/business/model/DriverInfo.java
index 0ccc1e6..606dd65 100644
--- a/server/services/src/main/java/com/doumee/dao/business/model/DriverInfo.java
+++ b/server/services/src/main/java/com/doumee/dao/business/model/DriverInfo.java
@@ -150,6 +150,12 @@
@ApiModelProperty(value = "瀹氫綅绾害", example = "39.915")
private Double latitude;
+ @ApiModelProperty(value = "鏀粯瀹濇彁鐜拌处鎴�")
+ private String aliAccount;
+
+ @ApiModelProperty(value = "鏀粯瀹濆疄鍚嶅鍚�")
+ private String aliName;
+
@ApiModelProperty(value = "杞﹁締鐓х墖鍒楄〃")
@TableField(exist = false)
private List<Multifile> carImgList = new ArrayList<>();
diff --git a/server/services/src/main/java/com/doumee/dao/business/model/Notice.java b/server/services/src/main/java/com/doumee/dao/business/model/Notice.java
new file mode 100644
index 0000000..3b1224f
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/dao/business/model/Notice.java
@@ -0,0 +1,68 @@
+package com.doumee.dao.business.model;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * 娑堟伅閫氱煡淇℃伅
+ * @author rk
+ * @date 2026/04/20
+ */
+@Data
+@ApiModel("娑堟伅閫氱煡淇℃伅")
+@TableName("`notice`")
+public class Notice {
+
+ @TableId(type = IdType.AUTO)
+ @ApiModelProperty(value = "涓婚敭", example = "1")
+ private Integer id;
+
+ @ApiModelProperty(value = "鍒涘缓浜虹紪鐮�", example = "1")
+ private Integer creator;
+
+ @ApiModelProperty(value = "鍒涘缓鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private Date createDate;
+
+ @ApiModelProperty(value = "鏇存柊浜虹紪鐮�", example = "1")
+ private Integer editor;
+
+ @ApiModelProperty(value = "鏇存柊鏃堕棿")
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private Date editDate;
+
+ @ApiModelProperty(value = "鏄惁鍒犻櫎 0鍚� 1鏄�", example = "0")
+ private Integer isdeleted;
+
+ @ApiModelProperty(value = "澶囨敞")
+ private String remark;
+
+ @ApiModelProperty(value = "鐢ㄦ埛绫诲瀷锛�0=浼氬憳鐢ㄦ埛锛�1=鍙告満锛�2=搴楅摵浜哄憳", example = "0")
+ private Integer userType;
+
+ @ApiModelProperty(value = "鐢ㄦ埛涓婚敭锛坢ember/driver_info/shop_info锛�", example = "1")
+ private Integer userId;
+
+ @ApiModelProperty(value = "鏍囬")
+ private String title;
+
+ @ApiModelProperty(value = "鍐呭")
+ private String content;
+
+ @ApiModelProperty(value = "瀵硅薄缂栫爜", example = "1")
+ private Integer objId;
+
+ @ApiModelProperty(value = "瀵硅薄绫诲瀷锛�0=璁㈠崟绫诲瀷锛�99=鍏朵粬绫诲瀷", example = "0")
+ private Integer objType;
+
+ @ApiModelProperty(value = "鐘舵�侊細0=鏈锛�1=宸茶", example = "0")
+ private Integer status;
+
+}
diff --git a/server/services/src/main/java/com/doumee/dao/business/model/OrdersRefund.java b/server/services/src/main/java/com/doumee/dao/business/model/OrdersRefund.java
index 9698da9..bfe5459 100644
--- a/server/services/src/main/java/com/doumee/dao/business/model/OrdersRefund.java
+++ b/server/services/src/main/java/com/doumee/dao/business/model/OrdersRefund.java
@@ -66,5 +66,8 @@
@ApiModelProperty(value = "骞冲彴鎿嶄綔浜猴紙type=1浣跨敤锛�", example = "0")
private Integer userId;
+ @ApiModelProperty(value = "閫�娆剧姸鎬侊細0=閫�娆句腑锛�1=閫�娆炬垚鍔燂紱2=閫�娆惧け璐�", example = "0")
+ private Integer status;
+
}
diff --git a/server/services/src/main/java/com/doumee/dao/business/model/ShopInfo.java b/server/services/src/main/java/com/doumee/dao/business/model/ShopInfo.java
index 7b14ba3..aa6ab19 100644
--- a/server/services/src/main/java/com/doumee/dao/business/model/ShopInfo.java
+++ b/server/services/src/main/java/com/doumee/dao/business/model/ShopInfo.java
@@ -165,6 +165,9 @@
@ApiModelProperty(value = "鏀粯瀹濇彁鐜拌处鎴�")
private String aliAccount;
+ @ApiModelProperty(value = "鏀粯瀹濆疄鍚嶅鍚�")
+ private String aliName;
+
@ApiModelProperty(value = "钀ヤ笟鏃堕棿")
private String shopHours;
diff --git a/server/services/src/main/java/com/doumee/dao/dto/AlipayTransferDTO.java b/server/services/src/main/java/com/doumee/dao/dto/AlipayTransferDTO.java
new file mode 100644
index 0000000..5559780
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/dao/dto/AlipayTransferDTO.java
@@ -0,0 +1,39 @@
+package com.doumee.dao.dto;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+
+/**
+ * 鏀粯瀹濆崟绗旇浆璐﹁姹傚弬鏁�
+ * @author rk
+ * @date 2026/04/20
+ */
+@Data
+public class AlipayTransferDTO {
+
+ /**
+ * 鍟嗘埛渚у敮涓�璁㈠崟鍙�
+ */
+ private String outBizNo;
+
+ /**
+ * 杞处閲戦锛堝厓锛�
+ */
+ private BigDecimal transAmount;
+
+ /**
+ * 鏀舵鏂规敮浠樺疂璐﹀彿
+ */
+ private String payeeAccount;
+
+ /**
+ * 鏀舵鏂瑰鍚�
+ */
+ private String payeeName;
+
+ /**
+ * 涓氬姟澶囨敞
+ */
+ private String remark;
+}
diff --git a/server/services/src/main/java/com/doumee/dao/dto/DriverPickupDTO.java b/server/services/src/main/java/com/doumee/dao/dto/DriverPickupDTO.java
new file mode 100644
index 0000000..775b3ff
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/dao/dto/DriverPickupDTO.java
@@ -0,0 +1,28 @@
+package com.doumee.dao.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import java.util.List;
+
+/**
+ * 鍙告満瀹屾垚鍙栦欢璇锋眰
+ * @author rk
+ * @date 2026/04/20
+ */
+@Data
+@ApiModel("鍙告満瀹屾垚鍙栦欢璇锋眰")
+public class DriverPickupDTO {
+
+ @NotNull(message = "璁㈠崟涓婚敭涓嶈兘涓虹┖")
+ @ApiModelProperty(value = "璁㈠崟涓婚敭", required = true, example = "1")
+ private Integer orderId;
+
+ @NotNull(message = "鍙栦欢鍥剧墖涓嶈兘涓虹┖")
+ @Size(min = 1, max = 3, message = "鍙栦欢鍥剧墖1-3寮�")
+ @ApiModelProperty(value = "鍙栦欢鍥剧墖鍒楄〃锛堟渶澶�3寮狅級", required = true)
+ private List<String> images;
+}
diff --git a/server/services/src/main/java/com/doumee/dao/dto/DriverVerifyRequest.java b/server/services/src/main/java/com/doumee/dao/dto/DriverVerifyRequest.java
index a9fdee4..e414d00 100644
--- a/server/services/src/main/java/com/doumee/dao/dto/DriverVerifyRequest.java
+++ b/server/services/src/main/java/com/doumee/dao/dto/DriverVerifyRequest.java
@@ -72,4 +72,12 @@
@ApiModelProperty(value = "鍏朵粬璧勬枡鐓х墖锛堟渶澶�3寮狅紝mutifile objType=8锛�")
private List<String> otherImgUrls;
+ @NotEmpty(message = "鏀粯瀹濇彁鐜拌处鎴蜂笉鑳戒负绌�")
+ @ApiModelProperty(value = "鏀粯瀹濇彁鐜拌处鎴�", required = true)
+ private String aliAccount;
+
+ @NotEmpty(message = "鏀粯瀹濆疄鍚嶅鍚嶄笉鑳戒负绌�")
+ @ApiModelProperty(value = "鏀粯瀹濆疄鍚嶅鍚�", required = true)
+ private String aliName;
+
}
diff --git a/server/services/src/main/java/com/doumee/dao/dto/ShopApplyDTO.java b/server/services/src/main/java/com/doumee/dao/dto/ShopApplyDTO.java
index 9dad07d..a3d8b58 100644
--- a/server/services/src/main/java/com/doumee/dao/dto/ShopApplyDTO.java
+++ b/server/services/src/main/java/com/doumee/dao/dto/ShopApplyDTO.java
@@ -107,4 +107,8 @@
@ApiModelProperty(value = "鏀粯瀹濇彁鐜拌处鎴�", required = true)
@NotBlank(message = "鏀粯瀹濇彁鐜拌处鎴蜂笉鑳戒负绌�")
private String aliAccount;
+
+ @ApiModelProperty(value = "鏀粯瀹濆疄鍚嶅鍚�", required = true)
+ @NotBlank(message = "鏀粯瀹濆疄鍚嶅鍚嶄笉鑳戒负绌�")
+ private String aliName;
}
diff --git a/server/services/src/main/java/com/doumee/dao/dto/ShopUpdateDTO.java b/server/services/src/main/java/com/doumee/dao/dto/ShopUpdateDTO.java
index f7f252d..079e950 100644
--- a/server/services/src/main/java/com/doumee/dao/dto/ShopUpdateDTO.java
+++ b/server/services/src/main/java/com/doumee/dao/dto/ShopUpdateDTO.java
@@ -110,4 +110,12 @@
@Size(max = 3, message = "绀句繚缂寸撼璇佹槑鏈�澶�3寮�")
private List<String> socialSecurityImgs;
+ @ApiModelProperty(value = "鏀粯瀹濇彁鐜拌处鎴�", required = true)
+ @NotBlank(message = "鏀粯瀹濇彁鐜拌处鎴蜂笉鑳戒负绌�")
+ private String aliAccount;
+
+ @ApiModelProperty(value = "鏀粯瀹濆疄鍚嶅鍚�", required = true)
+ @NotBlank(message = "鏀粯瀹濆疄鍚嶅鍚嶄笉鑳戒负绌�")
+ private String aliName;
+
}
diff --git a/server/services/src/main/java/com/doumee/dao/vo/PlatformAboutVO.java b/server/services/src/main/java/com/doumee/dao/vo/PlatformAboutVO.java
index a4dd10c..51bcf87 100644
--- a/server/services/src/main/java/com/doumee/dao/vo/PlatformAboutVO.java
+++ b/server/services/src/main/java/com/doumee/dao/vo/PlatformAboutVO.java
@@ -23,6 +23,6 @@
@ApiModelProperty(value = "闅愮鍗忚")
private String privacyAgreement;
- @ApiModelProperty(value = "鏈嶅姟浠嬬粛")
+ @ApiModelProperty(value = "瑙勮寖椤荤煡")
private String serverIntroduce;
}
diff --git a/server/services/src/main/java/com/doumee/dao/vo/ShopDetailVO.java b/server/services/src/main/java/com/doumee/dao/vo/ShopDetailVO.java
index c2f9d54..e9288d6 100644
--- a/server/services/src/main/java/com/doumee/dao/vo/ShopDetailVO.java
+++ b/server/services/src/main/java/com/doumee/dao/vo/ShopDetailVO.java
@@ -4,6 +4,7 @@
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
+import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@@ -96,6 +97,9 @@
@ApiModelProperty(value = "瀹℃壒鐘舵�侊細0=寰呭鎵癸紱1=瀹℃壒閫氳繃锛�2=瀹℃壒鏈�氳繃锛�3=宸叉敮浠樻娂閲�")
private Integer auditStatus;
+ @ApiModelProperty(value = "鎶奸噾閲戦")
+ private Long depositAmount;
+
@ApiModelProperty(value = "鐘舵�侊細0=鍚敤锛�1=绂佺敤")
private Integer status;
@@ -108,6 +112,11 @@
@ApiModelProperty(value = "瀹℃壒浜哄悕绉�")
private String auditName;
+ @ApiModelProperty(value = "鏀粯瀹濇彁鐜拌处鎴�")
+ private String aliAccount;
+
+ @ApiModelProperty(value = "鏀粯瀹濆疄鍚嶅鍚�")
+ private String aliName;
@ApiModelProperty(value = "OPENID")
private String openid;
diff --git a/server/services/src/main/java/com/doumee/service/business/DriverInfoService.java b/server/services/src/main/java/com/doumee/service/business/DriverInfoService.java
index 3c7f772..c274cc4 100644
--- a/server/services/src/main/java/com/doumee/service/business/DriverInfoService.java
+++ b/server/services/src/main/java/com/doumee/service/business/DriverInfoService.java
@@ -6,6 +6,7 @@
import com.doumee.dao.dto.DriverGrabOrderDTO;
import com.doumee.dao.business.model.DriverInfo;
import com.doumee.dao.dto.DriverLoginRequest;
+import com.doumee.dao.dto.DriverPickupDTO;
import com.doumee.dao.dto.DriverRegisterRequest;
import com.doumee.dao.dto.DriverVerifyRequest;
import com.doumee.dao.vo.AccountResponse;
@@ -224,4 +225,20 @@
*/
void cancelOrder(Integer driverId, Integer orderId, String reason);
+ /**
+ * 鍙告満鎶㈠崟锛岃鍗曠姸鎬佷粠宸插瘎瀛�(2)鍙樹负宸叉帴鍗�(3)
+ *
+ * @param driverId 鍙告満涓婚敭
+ * @param orderId 璁㈠崟涓婚敭
+ */
+ void grabOrder(Integer driverId, Integer orderId);
+
+ /**
+ * 鍙告満瀹屾垚鍙栦欢锛岃鍗曠姸鎬佷粠宸叉帴鍗�(3)鍙樹负娲鹃�佷腑(4)
+ *
+ * @param driverId 鍙告満涓婚敭
+ * @param dto 鍙栦欢璇锋眰鍙傛暟
+ */
+ void confirmPickup(Integer driverId, DriverPickupDTO dto);
+
}
diff --git a/server/services/src/main/java/com/doumee/service/business/NoticeService.java b/server/services/src/main/java/com/doumee/service/business/NoticeService.java
new file mode 100644
index 0000000..d89d0a8
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/service/business/NoticeService.java
@@ -0,0 +1,37 @@
+package com.doumee.service.business;
+
+import com.doumee.core.model.PageData;
+import com.doumee.core.model.PageWrap;
+import com.doumee.dao.business.model.Notice;
+
+import java.util.List;
+
+/**
+ * 娑堟伅閫氱煡淇℃伅Service瀹氫箟
+ * @author rk
+ * @date 2026/04/20
+ */
+public interface NoticeService {
+
+ Integer create(Notice notice);
+
+ void deleteById(Integer id);
+
+ void delete(Notice notice);
+
+ void deleteByIdInBatch(List<Integer> ids);
+
+ void updateById(Notice notice);
+
+ void updateByIdInBatch(List<Notice> notices);
+
+ Notice findById(Integer id);
+
+ Notice findOne(Notice notice);
+
+ List<Notice> findList(Notice notice);
+
+ PageData<Notice> findPage(PageWrap<Notice> pageWrap);
+
+ long count(Notice notice);
+}
diff --git a/server/services/src/main/java/com/doumee/service/business/OrdersService.java b/server/services/src/main/java/com/doumee/service/business/OrdersService.java
index 91ecdf9..48daf2e 100644
--- a/server/services/src/main/java/com/doumee/service/business/OrdersService.java
+++ b/server/services/src/main/java/com/doumee/service/business/OrdersService.java
@@ -327,10 +327,10 @@
/**
* 闂ㄥ簵鏀粯鎶奸噾锛堝敜璧峰井淇℃敮浠橈級
*
- * @param shopId 闂ㄥ簵涓婚敭
+ * @param memberId 鐢ㄦ埛涓婚敭
* @return 鏀粯鍝嶅簲
*/
- PayResponse payShopDeposit(Integer shopId);
+ PayResponse payShopDeposit(Integer memberId);
/**
* 闂ㄥ簵鎶奸噾鏀粯鍥炶皟澶勭悊
diff --git a/server/services/src/main/java/com/doumee/service/business/impl/DriverInfoServiceImpl.java b/server/services/src/main/java/com/doumee/service/business/impl/DriverInfoServiceImpl.java
index 8110145..920b9e6 100644
--- a/server/services/src/main/java/com/doumee/service/business/impl/DriverInfoServiceImpl.java
+++ b/server/services/src/main/java/com/doumee/service/business/impl/DriverInfoServiceImpl.java
@@ -32,19 +32,15 @@
import com.doumee.dao.business.model.Orders;
import com.doumee.dao.business.model.OrdersDetail;
import com.doumee.dao.business.model.Revenue;
+import com.doumee.dao.dto.*;
import com.doumee.dao.vo.AccountResponse;
import com.doumee.dao.vo.DriverCenterVO;
import com.doumee.dao.vo.DriverGrabOrderVO;
import com.doumee.dao.vo.DriverOrderDetailVO;
-import com.doumee.dao.dto.AuditDTO;
-import com.doumee.dao.dto.ChangeStatusDTO;
-import com.doumee.dao.dto.DriverLoginRequest;
-import com.doumee.dao.dto.DriverRegisterRequest;
-import com.doumee.dao.dto.DriverVerifyRequest;
-import com.doumee.dao.dto.DriverActiveOrderDTO;
-import com.doumee.dao.dto.DriverGrabOrderDTO;
import com.doumee.core.utils.aliyun.AliSmsService;
+import com.doumee.dao.business.model.Notice;
import com.doumee.service.business.DriverInfoService;
+import com.doumee.service.business.NoticeService;
import com.alibaba.fastjson.JSONObject;
import com.github.yulichang.wrapper.MPJLambdaWrapper;
import org.apache.commons.lang3.RandomStringUtils;
@@ -107,6 +103,43 @@
@Autowired
private OperationConfigBiz operationConfigBiz;
+
+ @Autowired
+ private NoticeService noticeService;
+
+ /**
+ * 鍙戦�佽鍗曠珯鍐呬俊閫氱煡
+ */
+ private void sendOrderNotice(Integer memberId, Constants.MemberOrderNotify notify, Integer orderId, String... params) {
+ Notice notice = new Notice();
+ notice.setUserType(0); // 0=浼氬憳
+ notice.setUserId(memberId);
+ notice.setTitle(notify.getTitle());
+ notice.setContent(notify.format(params));
+ notice.setObjId(orderId);
+ notice.setObjType(0); // 0=璁㈠崟
+ notice.setStatus(0); // 0=鏈
+ notice.setIsdeleted(Constants.ZERO);
+ notice.setCreateDate(new Date());
+ noticeService.create(notice);
+ }
+
+ /**
+ * 鍙戦�侀棬搴楃珯鍐呬俊閫氱煡
+ */
+ private void sendShopNotice(Integer shopId, Constants.ShopOrderNotify notify, Integer orderId, String... params) {
+ Notice notice = new Notice();
+ notice.setUserType(2); // 2=闂ㄥ簵
+ notice.setUserId(shopId);
+ notice.setTitle(notify.getTitle());
+ notice.setContent(notify.format(params));
+ notice.setObjId(orderId);
+ notice.setObjType(0); // 0=璁㈠崟
+ notice.setStatus(0); // 0=鏈
+ notice.setIsdeleted(Constants.ZERO);
+ notice.setCreateDate(new Date());
+ noticeService.create(notice);
+ }
@Override
public Integer create(DriverInfo driverInfo) {
@@ -462,7 +495,8 @@
.set(DriverInfo::getCardEndDate, request.getCardEndDate())
.set(DriverInfo::getIdcardImg, request.getIdcardImg())
.set(DriverInfo::getIdcardImgBack, request.getIdcardImgBack())
- .set(DriverInfo::getAuditStatus, Constants.ZERO)
+ .set(DriverInfo::getAliAccount, request.getAliAccount())
+ .set(DriverInfo::getAliName, request.getAliName())
.set(DriverInfo::getUpdateTime, now)
.set(DriverInfo::getAuditRemark, null)
.set(DriverInfo::getAuditTime, null)
@@ -1131,6 +1165,159 @@
log.setCreateTime(new Date());
log.setDeleted(Constants.ZERO);
orderLogMapper.insert(log);
+
+ // 閫氱煡浼氬憳锛氬徃鏈哄彉鏇�
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.DRIVER_CHANGED, orderId,
+ "orderNo", order.getCode());
+ }
+
+ @Override
+ @Transactional(rollbackFor = Exception.class)
+ public void grabOrder(Integer driverId, Integer orderId) {
+ // 1. 鏍¢獙鍙告満
+ DriverInfo driver = driverInfoMapper.selectById(driverId);
+ if (driver == null) {
+ throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "鍙告満淇℃伅涓嶅瓨鍦�");
+ }
+ // 2. 鏍¢獙鍙告満鎺ュ崟鐘舵��
+ if (!Constants.ONE.equals(driver.getAcceptingStatus())) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "璇峰厛寮�鍚帴鍗曠姸鎬�");
+ }
+ if (!Integer.valueOf(3).equals(driver.getAuditStatus())) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鍙告満瀹℃牳鏈�氳繃鎴栨湭缂寸撼鎶奸噾");
+ }
+ if (driver.getDriverLevel() == null) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鍙告満绛夌骇鏈缃�");
+ }
+
+ // 3. 鏍¢獙璁㈠崟
+ Orders order = ordersMapper.selectById(orderId);
+ if (order == null || Constants.ONE.equals(order.getDeleted())) {
+ throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "璁㈠崟涓嶅瓨鍦�");
+ }
+ if (!Constants.ONE.equals(order.getType())) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "浠呭紓鍦板瘎瀛樿鍗曞彲鎶㈠崟");
+ }
+ if (!Constants.TWO.equals(order.getStatus())) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "褰撳墠璁㈠崟鐘舵�佷笉鍏佽鎶㈠崟");
+ }
+
+ // 4. 鏍¢獙鍙告満绛夌骇 鈮� 璁㈠崟绛夌骇
+ if (order.getGoodLevel() != null && driver.getDriverLevel() < order.getGoodLevel()) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鍙告満绛夌骇涓嶈冻锛屾棤娉曟姠璇ヨ鍗�");
+ }
+
+ // 5. 鍘熷瓙鏇存柊锛氬甫 status=2 鏉′欢闃叉骞跺彂閲嶅鎶㈠崟
+ Date now = new Date();
+ int rows = ordersMapper.update(new UpdateWrapper<Orders>().lambda()
+ .set(Orders::getAcceptDriver, driverId)
+ .set(Orders::getAcceptTime, now)
+ .set(Orders::getAcceptType, 0) // 0=鎵嬪姩鎶㈠崟
+ .set(Orders::getStatus, Constants.OrderStatus.accepted.getStatus())
+ .set(Orders::getUpdateTime, now)
+ .eq(Orders::getId, orderId)
+ .eq(Orders::getStatus, Constants.TWO));
+ if (rows == 0) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鎶㈠崟澶辫触锛岃鍗曞凡琚姠鎴栫姸鎬佸凡鍙樻洿");
+ }
+
+ // 6. 鍐欏叆鎿嶄綔鏃ュ織
+ OrderLog log = new OrderLog();
+ log.setOrderId(orderId);
+ log.setTitle("鍙告満鎶㈠崟");
+ log.setLogInfo("鍙告満銆�" + driver.getName() + "銆戞姠鍗曟垚鍔�");
+ log.setObjType(Constants.ORDER_LOG_DRIVER_PICKUP);
+ log.setOptUserId(driver.getMemberId());
+ log.setOptUserType(Constants.ONE);
+ log.setOrderStatus(Constants.OrderStatus.accepted.getStatus());
+ log.setCreateTime(now);
+ log.setDeleted(Constants.ZERO);
+ orderLogMapper.insert(log);
+
+ // 7. 閫氱煡浼氬憳锛氬徃鏈哄凡鎶㈠崟
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.WAIT_PICKUP_GRABBED, orderId,
+ "driverName", driver.getName());
+
+ // 閫氱煡瀛樹欢闂ㄥ簵锛氳鍗曞凡鎶㈠崟寰呭彇浠�
+ if (order.getDepositShopId() != null) {
+ sendShopNotice(order.getDepositShopId(), Constants.ShopOrderNotify.WAIT_PICKUP, orderId,
+ "orderNo", order.getCode());
+ }
+ }
+
+ @Override
+ @Transactional
+ public void confirmPickup(Integer driverId, DriverPickupDTO dto) {
+ Integer orderId = dto.getOrderId();
+
+ // 1. 鏍¢獙鍙告満
+ DriverInfo driver = driverInfoMapper.selectById(driverId);
+ if (driver == null) {
+ throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "鍙告満淇℃伅涓嶅瓨鍦�");
+ }
+
+ // 2. 鏍¢獙璁㈠崟
+ Orders order = ordersMapper.selectById(orderId);
+ if (order == null || Constants.ONE.equals(order.getDeleted())) {
+ throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "璁㈠崟涓嶅瓨鍦�");
+ }
+ if (!Constants.ONE.equals(order.getType())) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "浠呭紓鍦板瘎瀛樿鍗曟敮鎸佹鎿嶄綔");
+ }
+ if (!Constants.equalsInteger(order.getStatus(), Constants.OrderStatus.accepted.getStatus())) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "褰撳墠璁㈠崟鐘舵�佷笉鍏佽鍙栦欢纭");
+ }
+ if (!driverId.equals(order.getAcceptDriver())) {
+ throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "鏃犳潈鎿嶄綔璇ヨ鍗�");
+ }
+
+ // 3. 淇濆瓨鍙栦欢鍥剧墖
+ Date now = new Date();
+ if (dto.getImages() != null && !dto.getImages().isEmpty()) {
+ int sortNum = 0;
+ for (String url : dto.getImages()) {
+ Multifile multifile = new Multifile();
+ multifile.setObjId(orderId);
+ multifile.setObjType(Constants.FileType.DRIVER_TAKE.getKey());
+ multifile.setType(Constants.ZERO);
+ multifile.setFileurl(url);
+ multifile.setIsdeleted(Constants.ZERO);
+ multifile.setCreateDate(now);
+ multifile.setSortnum(sortNum++);
+ multifileMapper.insert(multifile);
+ }
+ }
+
+ // 4. 鏇存柊璁㈠崟鐘舵�佷负娲鹃�佷腑(4)
+ ordersMapper.update(new UpdateWrapper<Orders>().lambda()
+ .set(Orders::getStatus, Constants.OrderStatus.delivering.getStatus())
+ .set(Orders::getUpdateTime, now)
+ .eq(Orders::getId, orderId));
+
+ // 5. 鍐欏叆鎿嶄綔鏃ュ織
+ OrderLog log = new OrderLog();
+ log.setOrderId(orderId);
+ log.setTitle("鍙告満瀹屾垚鍙栦欢");
+ log.setLogInfo("鍙告満銆�" + driver.getName() + "銆戝畬鎴愬彇浠讹紝寮�濮嬫淳閫�");
+ log.setObjType(Constants.ORDER_LOG_DRIVER_PICKUP);
+ log.setOptUserId(driver.getMemberId());
+ log.setOptUserType(Constants.ONE);
+ log.setOrderStatus(Constants.OrderStatus.delivering.getStatus());
+ log.setCreateTime(now);
+ log.setDeleted(Constants.ZERO);
+ orderLogMapper.insert(log);
+
+ // 閫氱煡浼氬憳锛氳鍗曢厤閫佷腑
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.DELIVERING, orderId,
+ "orderNo", order.getCode(),
+ "driverName", driver.getName());
+
+ // 閫氱煡鍙栦欢闂ㄥ簵锛氳鍗曢厤閫佷腑
+ if (order.getTakeShopId() != null) {
+ sendShopNotice(order.getTakeShopId(), Constants.ShopOrderNotify.DELIVERING, orderId,
+ "orderNo", order.getCode(),
+ "driverName", driver.getName());
+ }
}
private List<String> getFileUrls(Integer orderId, int objType, String prefix) {
diff --git a/server/services/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java b/server/services/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java
index a4554eb..b73f56c 100644
--- a/server/services/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java
+++ b/server/services/src/main/java/com/doumee/service/business/impl/MemberServiceImpl.java
@@ -350,15 +350,13 @@
* 闂ㄥ簵鐢ㄦ埛韬唤鏃讹紝濉厖闂ㄥ簵瀹℃牳鐘舵��
*/
private void fillShopInfo(UserCenterVO userCenterVO, Member member) {
- if (Constants.TWO.equals(member.getUserType())) {
- ShopInfo shopInfo = shopInfoMapper.selectOne(new QueryWrapper<ShopInfo>().lambda()
- .eq(ShopInfo::getRegionMemberId, member.getId())
- .eq(ShopInfo::getDeleted, Constants.ZERO)
- .last("limit 1"));
- if (shopInfo != null) {
- userCenterVO.setShopId(shopInfo.getId());
- userCenterVO.setShopAuditStatus(shopInfo.getAuditStatus());
- }
+ ShopInfo shopInfo = shopInfoMapper.selectOne(new QueryWrapper<ShopInfo>().lambda()
+ .eq(ShopInfo::getRegionMemberId, member.getId())
+ .eq(ShopInfo::getDeleted, Constants.ZERO)
+ .last("limit 1"));
+ if (shopInfo != null) {
+ userCenterVO.setShopId(shopInfo.getId());
+ userCenterVO.setShopAuditStatus(shopInfo.getAuditStatus());
}
// 鏍规嵁openid鏌ヨ褰撳墠缁戝畾鐨勯棬搴�
if (StringUtils.isNotBlank(member.getOpenid())) {
diff --git a/server/services/src/main/java/com/doumee/service/business/impl/NoticeServiceImpl.java b/server/services/src/main/java/com/doumee/service/business/impl/NoticeServiceImpl.java
new file mode 100644
index 0000000..b5a458a
--- /dev/null
+++ b/server/services/src/main/java/com/doumee/service/business/impl/NoticeServiceImpl.java
@@ -0,0 +1,126 @@
+package com.doumee.service.business.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.doumee.core.model.PageData;
+import com.doumee.core.model.PageWrap;
+import com.doumee.dao.business.NoticeMapper;
+import com.doumee.dao.business.model.Notice;
+import com.doumee.service.business.NoticeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * 娑堟伅閫氱煡淇℃伅Service瀹炵幇
+ * @author rk
+ * @date 2026/04/20
+ */
+@Service
+public class NoticeServiceImpl implements NoticeService {
+
+ @Autowired
+ private NoticeMapper noticeMapper;
+
+ @Override
+ public Integer create(Notice notice) {
+ noticeMapper.insert(notice);
+ return notice.getId();
+ }
+
+ @Override
+ public void deleteById(Integer id) {
+ noticeMapper.deleteById(id);
+ }
+
+ @Override
+ public void delete(Notice notice) {
+ QueryWrapper<Notice> deleteWrapper = new QueryWrapper<>(notice);
+ noticeMapper.delete(deleteWrapper);
+ }
+
+ @Override
+ public void deleteByIdInBatch(List<Integer> ids) {
+ if (ids == null || ids.isEmpty()) {
+ return;
+ }
+ noticeMapper.deleteBatchIds(ids);
+ }
+
+ @Override
+ public void updateById(Notice notice) {
+ noticeMapper.updateById(notice);
+ }
+
+ @Override
+ public void updateByIdInBatch(List<Notice> notices) {
+ if (notices == null || notices.isEmpty()) {
+ return;
+ }
+ for (Notice notice : notices) {
+ this.updateById(notice);
+ }
+ }
+
+ @Override
+ public Notice findById(Integer id) {
+ return noticeMapper.selectById(id);
+ }
+
+ @Override
+ public Notice findOne(Notice notice) {
+ QueryWrapper<Notice> wrapper = new QueryWrapper<>(notice);
+ return noticeMapper.selectOne(wrapper);
+ }
+
+ @Override
+ public List<Notice> findList(Notice notice) {
+ QueryWrapper<Notice> wrapper = new QueryWrapper<>(notice);
+ return noticeMapper.selectList(wrapper);
+ }
+
+ @Override
+ public PageData<Notice> findPage(PageWrap<Notice> pageWrap) {
+ IPage<Notice> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity());
+ QueryWrapper<Notice> queryWrapper = new QueryWrapper<>();
+ if (pageWrap.getModel() != null) {
+ if (pageWrap.getModel().getIsdeleted() != null) {
+ queryWrapper.lambda().eq(Notice::getIsdeleted, pageWrap.getModel().getIsdeleted());
+ }
+ if (pageWrap.getModel().getUserType() != null) {
+ queryWrapper.lambda().eq(Notice::getUserType, pageWrap.getModel().getUserType());
+ }
+ if (pageWrap.getModel().getUserId() != null) {
+ queryWrapper.lambda().eq(Notice::getUserId, pageWrap.getModel().getUserId());
+ }
+ if (pageWrap.getModel().getObjType() != null) {
+ queryWrapper.lambda().eq(Notice::getObjType, pageWrap.getModel().getObjType());
+ }
+ if (pageWrap.getModel().getStatus() != null) {
+ queryWrapper.lambda().eq(Notice::getStatus, pageWrap.getModel().getStatus());
+ }
+ if (pageWrap.getModel().getTitle() != null) {
+ queryWrapper.lambda().like(Notice::getTitle, pageWrap.getModel().getTitle());
+ }
+ if (pageWrap.getModel().getCreateDate() != null) {
+ queryWrapper.lambda().ge(Notice::getCreateDate, pageWrap.getModel().getCreateDate());
+ }
+ }
+ for (PageWrap.SortData sortData : pageWrap.getSorts()) {
+ if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) {
+ queryWrapper.orderByDesc(sortData.getProperty());
+ } else {
+ queryWrapper.orderByAsc(sortData.getProperty());
+ }
+ }
+ return PageData.from(noticeMapper.selectPage(page, queryWrapper));
+ }
+
+ @Override
+ public long count(Notice notice) {
+ QueryWrapper<Notice> wrapper = new QueryWrapper<>(notice);
+ return noticeMapper.selectCount(wrapper);
+ }
+}
diff --git a/server/services/src/main/java/com/doumee/service/business/impl/OrdersServiceImpl.java b/server/services/src/main/java/com/doumee/service/business/impl/OrdersServiceImpl.java
index 8fa0b27..5098a38 100644
--- a/server/services/src/main/java/com/doumee/service/business/impl/OrdersServiceImpl.java
+++ b/server/services/src/main/java/com/doumee/service/business/impl/OrdersServiceImpl.java
@@ -8,14 +8,16 @@
import com.doumee.biz.system.OperationConfigBiz;
import com.doumee.biz.system.SystemDictDataBiz;
import com.doumee.config.wx.WxMiniConfig;
-import com.doumee.config.wx.WxMiniUtilService;
+import com.doumee.config.wx.WxPayProperties;
+import com.doumee.config.wx.WxPayV3Service;
+import com.wechat.pay.java.service.refund.model.Refund;
import com.doumee.core.constants.Constants;
import com.doumee.core.constants.ResponseStatus;
import com.doumee.core.exception.BusinessException;
import com.doumee.core.model.PageData;
import com.doumee.core.model.PageWrap;
import com.doumee.core.utils.DateUtil;
-import com.doumee.core.utils.Tencent.MapUtil;
+import com.doumee.core.utils.geocode.MapUtil;
import com.doumee.core.utils.Utils;
import com.doumee.dao.business.*;
import com.doumee.dao.business.model.*;
@@ -30,11 +32,12 @@
import com.doumee.dao.dto.MyOrderDTO;
import com.doumee.dao.dto.OrderItemDTO;
import com.doumee.dao.vo.*;
+import com.doumee.service.business.NoticeService;
import com.doumee.service.business.OrderLogService;
import com.doumee.service.business.OrdersService;
+import com.doumee.dao.business.model.Notice;
import com.doumee.service.business.AreasService;
import com.doumee.service.business.PricingRuleService;
-import com.github.binarywang.wxpay.bean.request.BaseWxPayRequest;
import com.github.binarywang.wxpay.bean.request.WxPayUnifiedOrderRequest;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.xiaoymin.knife4j.core.util.CollectionUtils;
@@ -45,17 +48,11 @@
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.context.request.RequestContextHolder;
-import org.springframework.web.context.request.ServletRequestAttributes;
-import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;
import java.math.RoundingMode;
-import java.net.InetAddress;
-import java.net.UnknownHostException;
import java.util.*;
import java.util.concurrent.TimeUnit;
-import java.util.stream.Collectors;
/**
* 瀵勫瓨璁㈠崟淇℃伅Service瀹炵幇
@@ -104,8 +101,7 @@
@Autowired
private RevenueMapper revenueMapper;
- @Autowired
- private WxMiniUtilService wxMiniUtilService;
+
@Autowired
private SystemUserMapper systemUserMapper;
@@ -127,6 +123,15 @@
@Autowired
private AreasService areasService;
+
+ @Autowired
+ private NoticeService noticeService;
+
+ @Autowired
+ private WxPayV3Service wxPayV3Service;
+
+ @Autowired
+ private WxPayProperties wxPayProperties;
@Override
public Integer create(Orders orders) {
@@ -413,7 +418,7 @@
// 1. 璋冪敤鑵捐鍦板浘璺濈鐭╅樀API璁$畻椹捐溅璺濈
String from = dto.getFromLat() + "," + dto.getFromLgt();
String to = dto.getToLat() + "," + dto.getToLgt();
- JSONObject distanceResult = MapUtil.distanceSingle("driving", from, to);
+ JSONObject distanceResult = MapUtil.direction("driving", from, to);
BigDecimal distance = distanceResult.getBigDecimal("distance");
// distance 鍗曚綅涓虹背锛岃浆涓哄叕閲�
BigDecimal distanceKm = distance.divide(new BigDecimal(1000), 2, RoundingMode.HALF_UP);
@@ -518,16 +523,17 @@
// 5. 鍔犳�ヨ垂鐢細鐗╁搧浠锋牸 脳 鍔犳�ョ郴鏁�(瀛楀吀 URGENT_COEFFICIENT)
long urgentFeeFen = 0L;
- if (Boolean.TRUE.equals(dto.getUrgent())) {
- String urgentRateStr = systemDictDataBiz.queryByCode(
- Constants.OPERATION_CONFIG, Constants.OP_URGENT_COEFFICIENT).getCode();
- BigDecimal urgentRate = new BigDecimal(urgentRateStr);
- urgentFeeFen = new BigDecimal(itemPriceTotal).multiply(urgentRate)
- .setScale(0, RoundingMode.HALF_UP).longValue();
- }
+ String urgentRateStr = systemDictDataBiz.queryByCode(
+ Constants.OPERATION_CONFIG, Constants.OP_URGENT_COEFFICIENT).getCode();
+ BigDecimal urgentRate = new BigDecimal(urgentRateStr);
+ urgentFeeFen = new BigDecimal(itemPriceTotal).multiply(urgentRate)
+ .setScale(0, RoundingMode.HALF_UP).longValue();
- // 6. 鎬讳环鏍� = 鐗╁搧浠锋牸 + 淇濅环璐圭敤 + 鍔犳�ヨ垂鐢�
- long totalPrice = itemPriceTotal + insuranceFeeFen + urgentFeeFen;
+ // 6. 鎬讳环鏍� = 鐗╁搧浠锋牸 + 淇濅环璐圭敤 + 鍔犳�ヨ垂鐢紙鍔犳�ユ椂鎵嶅寘鍚姞鎬ヨ垂锛�
+ long totalPrice = itemPriceTotal + insuranceFeeFen;
+ if (Boolean.TRUE.equals(dto.getUrgent())) {
+ totalPrice += urgentFeeFen;
+ }
PriceCalculateVO result = new PriceCalculateVO();
result.setItemList(itemList);
@@ -666,9 +672,9 @@
takeLocationValue = takeShop.getAddress();
} else if (dto.getTakeLat() != null && dto.getTakeLgt() != null && StringUtils.isNotBlank(dto.getTakeLocation())) {
// 鏃犲彇浠堕棬搴楋紝鏍¢獙瀛樹欢鐐逛笌鑷�夊彇浠剁偣鏄惁鍦ㄥ悓涓�鍩庡競
- if (MapUtil.isSameCity(depositShop.getLatitude(), depositShop.getLongitude(),
+ if (!MapUtil.isSameCity(depositShop.getLatitude(), depositShop.getLongitude(),
dto.getTakeLat().doubleValue(), dto.getTakeLgt().doubleValue())) {
- throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "寮傚湴瀵勫瓨璁㈠崟瀛樺彇鐐逛笉鑳藉湪鍚屼竴鍩庡競锛屽闇�鍚屽煄瀵勫瓨璇烽�夋嫨灏辫繎闂ㄥ簵");
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "寮傚湴瀵勫瓨璁㈠崟瀛樺彇鐐逛笉鍦ㄥ悓涓�鍩庡競锛屽闇�璇烽�夋嫨鍚屽煄闂ㄥ簵");
}
takeLat = dto.getTakeLat();
takeLgt = dto.getTakeLgt();
@@ -836,7 +842,8 @@
if (member == null || StringUtils.isBlank(member.getOpenid())) {
throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鐢ㄦ埛淇℃伅寮傚父锛屾棤娉曞彂璧锋敮浠�");
}
- PayResponse payResponse = wxPay(orders, member.getOpenid(), Constants.OrdersAttach.STORAGE_ORDER);
+ PayResponse payResponse = wxPayV3(orders.getOutTradeNo(), orders.getTotalAmount(), orders.getId(),
+ member.getOpenid(), Constants.OrdersAttach.STORAGE_ORDER);
payResponse.setLockKey(lockKey);
return payResponse;
}
@@ -871,7 +878,8 @@
if (member == null || StringUtils.isBlank(member.getOpenid())) {
throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鐢ㄦ埛淇℃伅寮傚父锛屾棤娉曞彂璧锋敮浠�");
}
- return wxPay(orders, member.getOpenid(), Constants.OrdersAttach.STORAGE_ORDER);
+ return wxPayV3(orders.getOutTradeNo(), orders.getTotalAmount(), orders.getId(),
+ member.getOpenid(), Constants.OrdersAttach.STORAGE_ORDER);
}
/**
@@ -906,7 +914,32 @@
}
}
+ /**
+ * 鍞よ捣寰俊鏀粯V3
+ *
+ * @param outTradeNo 鍟嗘埛璁㈠崟鍙�
+ * @param totalCents 鏀粯閲戦锛堝垎锛�
+ * @param orderId 璁㈠崟涓婚敭
+ * @param openid 鐢ㄦ埛寰俊openid
+ * @param ordersAttach 璁㈠崟鏀粯绫诲瀷
+ * @return PayResponse 鍖呭惈寰俊璋冭捣鍙傛暟鍜岃鍗曚富閿�
+ */
+ private PayResponse wxPayV3(String outTradeNo, Long totalCents, Integer orderId,
+ String openid, Constants.OrdersAttach ordersAttach) {
+ Map<String, String> payParams = wxPayV3Service.createOrder(
+ outTradeNo,
+ ordersAttach.getName(),
+ totalCents != null ? totalCents : 0L,
+ openid,
+ wxPayProperties.getV3NotifyUrl(),
+ ordersAttach.getKey()
+ );
+ PayResponse payResponse = new PayResponse();
+ payResponse.setResponse(payParams);
+ payResponse.setOrderId(orderId);
+ return payResponse;
+ }
@@ -1240,14 +1273,17 @@
// 瀵勪欢闂ㄥ簵鍗犳瘮锛歠ieldA=0(浼佷笟瀵�)/1(涓汉瀵�)
int depositFieldA = Constants.equalsInteger(depositShop.getCompanyType(), Constants.ONE) ? Constants.ZERO : Constants.ONE;
BigDecimal depositShopRata = getRevenueShareRata(cityId, depositFieldA);
- // 鍙栦欢闂ㄥ簵鍗犳瘮锛歠ieldA=2(浼佷笟鍙�)/3(涓汉鍙�)
- int takeFieldA = Constants.equalsInteger(takeShop.getCompanyType(), Constants.ONE) ? Constants.TWO : Constants.THREE;
- BigDecimal takeShopRata = getRevenueShareRata(cityId, takeFieldA);
+ // 鍙栦欢闂ㄥ簵鍗犳瘮锛氭棤鍙栦欢闂ㄥ簵鏃舵瘮渚嬩负0
+ BigDecimal takeShopRata = BigDecimal.ZERO;
+ if (takeShop != null) {
+ int takeFieldA = Constants.equalsInteger(takeShop.getCompanyType(), Constants.ONE) ? Constants.TWO : Constants.THREE;
+ takeShopRata = getRevenueShareRata(cityId, takeFieldA);
+ }
// 璁$畻钖叕锛堝垎锛夛細totalAmount 涓哄垎锛宺ata 涓烘瘮渚嬪�硷紙濡� 0.15 琛ㄧず 15%锛�
long driverFee = new BigDecimal(totalAmount).multiply(driverRata).longValue();
long depositShopFee = new BigDecimal(totalAmount).multiply(depositShopRata).longValue();
- long takeShopFee = totalAmount - driverFee - depositShopFee;
+ long takeShopFee = new BigDecimal(totalAmount).multiply(takeShopRata).longValue();
orders.setDriverFee(driverFee);
orders.setDepositShopFee(depositShopFee);
@@ -1664,10 +1700,11 @@
refund.setCreateTime(now);
refund.setDeleted(Constants.ZERO);
- // 璋冪敤寰俊閫�娆撅紝鍏ㄩ閫�娆�
- String refundCode = wxMiniUtilService.wxRefund(order.getOutTradeNo(), order.getPayAmount(), order.getPayAmount());
- refund.setRefundCode(refundCode);
- refund.setRefundTime(new Date());
+ // 璋冪敤寰俊閫�娆綱3锛屽叏棰濋��娆�
+ Refund refundResult = wxPayV3Service.refund(order.getOutTradeNo(), order.getPayAmount(), order.getPayAmount(),
+ "璁㈠崟閫�娆�", wxPayProperties.getV3RefundNotifyUrl());
+ refund.setRefundCode(refundResult.getOutRefundNo());
+ refund.setStatus(Constants.ZERO); // 閫�娆句腑
ordersRefundMapper.insert(refund);
order.setStatus(Constants.OrderStatus.cancelled.getStatus());
@@ -1676,6 +1713,9 @@
ordersMapper.updateById(order);
saveCancelLog(order, "浼氬憳鍙栨秷璁㈠崟锛堝緟瀵勫瓨锛屽叏棰濋��娆撅級", reason, memberId);
+ // 閫氱煡浼氬憳锛氶��娆句腑
+ sendOrderNotice(memberId, Constants.MemberOrderNotify.REFUNDING, orderId,
+ "orderNo", order.getCode());
return;
}
@@ -1686,6 +1726,11 @@
order.setCancelTime(now);
ordersMapper.updateById(order);
saveCancelLog(order, "浼氬憳鐢宠鍙栨秷璁㈠崟锛堝凡瀵勫瓨/宸叉帴鍗曪級", reason, memberId);
+ // 閫氱煡瀛樹欢闂ㄥ簵锛氶��娆剧敵璇�
+ if (order.getDepositShopId() != null) {
+ sendShopNotice(order.getDepositShopId(), Constants.ShopOrderNotify.REFUNDING, orderId,
+ "orderNo", order.getCode());
+ }
return;
}
@@ -1724,6 +1769,52 @@
log.setCreateTime(new Date());
log.setDeleted(Constants.ZERO);
orderLogService.create(log);
+ }
+
+ /**
+ * 鍙戦�佽鍗曠珯鍐呬俊閫氱煡
+ */
+ private void sendOrderNotice(Integer memberId, Constants.MemberOrderNotify notify, Integer orderId, String... params) {
+ Notice notice = new Notice();
+ notice.setUserType(0); // 0=浼氬憳
+ notice.setUserId(memberId);
+ notice.setTitle(notify.getTitle());
+ notice.setContent(notify.format(params));
+ notice.setObjId(orderId);
+ notice.setObjType(0); // 0=璁㈠崟
+ notice.setStatus(0); // 0=鏈
+ notice.setIsdeleted(Constants.ZERO);
+ notice.setCreateDate(new Date());
+ noticeService.create(notice);
+ }
+
+ /**
+ * 鍙戦�侀棬搴楃珯鍐呬俊閫氱煡
+ */
+ private void sendShopNotice(Integer shopId, Constants.ShopOrderNotify notify, Integer orderId, String... params) {
+ Notice notice = new Notice();
+ notice.setUserType(2); // 2=闂ㄥ簵
+ notice.setUserId(shopId);
+ notice.setTitle(notify.getTitle());
+ notice.setContent(notify.format(params));
+ notice.setObjId(orderId);
+ notice.setObjType(0); // 0=璁㈠崟
+ notice.setStatus(0); // 0=鏈
+ notice.setIsdeleted(Constants.ZERO);
+ notice.setCreateDate(new Date());
+ noticeService.create(notice);
+ }
+
+ /**
+ * 閫氱煡瀛樹欢闂ㄥ簵鍜屽彇浠堕棬搴楋紙璁㈠崟瀹屾垚/璇勪环绛夛級
+ */
+ private void notifyBothShops(Orders order, Constants.ShopOrderNotify notify, String... params) {
+ if (order.getDepositShopId() != null) {
+ sendShopNotice(order.getDepositShopId(), notify, order.getId(), params);
+ }
+ if (order.getTakeShopId() != null) {
+ sendShopNotice(order.getTakeShopId(), notify, order.getId(), params);
+ }
}
@Override
@@ -1767,6 +1858,17 @@
}
}
ordersMapper.updateById(order);
+
+ // 閫氱煡浼氬憳锛氳鍗曞緟鏍搁獙
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.WAIT_VERIFY, order.getId(),
+ "orderNo", order.getCode(),
+ "storeCode", order.getMemberVerifyCode());
+
+ // 灏卞湴瀵勫瓨璁㈠崟锛氶�氱煡瀛樹欢闂ㄥ簵寰呮牳楠�
+ if (Constants.ZERO.equals(order.getType()) && order.getDepositShopId() != null) {
+ sendShopNotice(order.getDepositShopId(), Constants.ShopOrderNotify.WAIT_VERIFY, order.getId(),
+ "orderNo", order.getCode());
+ }
}
@Override
@@ -1810,8 +1912,9 @@
otherOrders.setCreateTime(now);
otherOrdersMapper.insert(otherOrders);
- // 5. 鍞よ捣寰俊鏀粯
- return wxPayForOtherOrder(otherOrders, member.getOpenid(), Constants.OrdersAttach.OVERDUE_FEE);
+ // 5. 鍞よ捣寰俊鏀粯V3
+ return wxPayV3(otherOrders.getOutTradeNo(), otherOrders.getPayAccount(), otherOrders.getId(),
+ member.getOpenid(), Constants.OrdersAttach.OVERDUE_FEE);
}
@Override
@@ -1878,9 +1981,10 @@
@Override
@Transactional(rollbackFor = {Exception.class, BusinessException.class})
- public PayResponse payShopDeposit(Integer shopId) {
+ public PayResponse payShopDeposit(Integer memberId) {
// 1. 鏌ヨ闂ㄥ簵淇℃伅
- ShopInfo shopInfo = shopInfoMapper.selectById(shopId);
+ ShopInfo shopInfo = shopInfoMapper.selectOne(new QueryWrapper<ShopInfo>().lambda()
+ .eq(ShopInfo::getRegionMemberId,memberId));
if (shopInfo == null) {
throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(), "闂ㄥ簵涓嶅瓨鍦�");
}
@@ -1904,14 +2008,15 @@
otherOrders.setMemberId(shopInfo.getRegionMemberId());
otherOrders.setPayAccount(shopInfo.getDepositAmount());
otherOrders.setPayStatus(Constants.ZERO);
- otherOrders.setCode("SD" + new java.text.SimpleDateFormat("yyyyMMddHHmmss").format(now) + shopId);
+ otherOrders.setCode("SD" + new java.text.SimpleDateFormat("yyyyMMddHHmmss").format(now) + shopInfo.getId());
otherOrders.setOutTradeNo(outTradeNo);
otherOrders.setDeleted(Constants.ZERO);
otherOrders.setCreateTime(now);
otherOrdersMapper.insert(otherOrders);
- // 5. 鍞よ捣寰俊鏀粯
- return wxPayForOtherOrder(otherOrders, member.getOpenid(), Constants.OrdersAttach.SHOP_DEPOSIT);
+ // 5. 鍞よ捣寰俊鏀粯V3
+ return wxPayV3(otherOrders.getOutTradeNo(), otherOrders.getPayAccount(), otherOrders.getId(),
+ member.getOpenid(), Constants.OrdersAttach.SHOP_DEPOSIT);
}
@Override
@@ -2048,6 +2153,12 @@
}
}
}
+
+ // 閫氱煡鐩稿叧闂ㄥ簵锛氳鍗曞凡缁撶畻
+ notifyBothShops(order, Constants.ShopOrderNotify.SETTLED,
+ "orderNo", order.getCode(),
+ "amount", String.valueOf(Constants.getFormatMoney(
+ order.getTotalAmount() != null ? order.getTotalAmount() : 0L)));
}
}
@@ -2144,6 +2255,14 @@
if (isRemote && order.getAcceptDriver() != null) {
updateTargetScore(Constants.THREE, order.getAcceptDriver());
}
+
+ // 閫氱煡浼氬憳锛氳鍗曞凡璇勪环
+ sendOrderNotice(memberId, Constants.MemberOrderNotify.EVALUATED, order.getId(),
+ "orderNo", order.getCode());
+
+ // 閫氱煡瀛樹欢闂ㄥ簵鍜屽彇浠堕棬搴楋細璁㈠崟宸茶瘎浠�
+ notifyBothShops(order, Constants.ShopOrderNotify.EVALUATED,
+ "orderNo", order.getCode());
}
/**
@@ -2246,6 +2365,16 @@
saveVerifyImages(order.getId(), images, Constants.FileType.ORDER_DEPOSIT.getKey(), shopId);
// 璁板綍璁㈠崟鏃ュ織
saveShopVerifyLog(order, "闂ㄥ簵纭瀵勫瓨", "闂ㄥ簵銆�" + shopName + "銆戠‘璁ゅ瘎瀛�", remark, shopId);
+ // 閫氱煡浼氬憳锛氶棬搴楁牳閿�鎴愬姛
+ if (Constants.equalsInteger(order.getType(), Constants.ONE)) {
+ // 寮傚湴瀵勫瓨 鈫� 寰呮姠鍗�
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.WAIT_GRAB, order.getId(),
+ "orderNo", order.getCode());
+ } else {
+ // 灏卞湴瀵勫瓨 鈫� 寰呭彇浠舵彁閱�
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.WAIT_PICKUP_REMIND, order.getId(),
+ "orderNo", order.getCode());
+ }
} else if (Constants.equalsInteger(status, Constants.OrderStatus.arrived.getStatus())) {
// 寮傚湴瀵勫瓨 + 鏃犲彇浠堕棬搴� 鈫� 鏃犳硶鏍搁攢锛堝鎴疯嚜鍙栵紝鏃犻棬搴楁搷浣滐級
if (Constants.equalsInteger(order.getType(), Constants.ONE) && order.getTakeShopId() == null) {
@@ -2268,6 +2397,14 @@
generateRevenueRecords(order.getId());
// 璁板綍璁㈠崟鏃ュ織
saveShopVerifyLog(order, "闂ㄥ簵纭鍙栦欢", "闂ㄥ簵銆�" + shopName + "銆戠‘璁ゅ彇浠讹紝璁㈠崟瀹屾垚", remark, shopId);
+ // 閫氱煡浼氬憳锛氳鍗曞凡瀹屾垚
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.FINISHED, order.getId(),
+ "orderNo", order.getCode());
+ // 閫氱煡瀛樹欢闂ㄥ簵鍜屽彇浠堕棬搴楋細璁㈠崟宸插畬鎴�
+ String settleDays = operationConfigBiz.getConfig().getSettlementDate();
+ notifyBothShops(order, Constants.ShopOrderNotify.FINISHED,
+ "orderNo", order.getCode(),
+ "settleDays", settleDays != null ? settleDays : "7");
} else {
throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "褰撳墠璁㈠崟鐘舵�佷笉鍏佽鏍搁攢");
}
@@ -2344,13 +2481,14 @@
refundRecord.setDeleted(Constants.ZERO);
ordersRefundMapper.insert(refundRecord);
- // 璋冪敤寰俊閫�娆撅紙鏀惧湪鏈�鍚庯紝纭繚鍓嶇疆鎿嶄綔鍏ㄩ儴鎴愬姛锛�
- String refundCode = wxMiniUtilService.wxRefund(
- order.getOutTradeNo(), order.getPayAmount(), order.getRefundAmount());
+ // 璋冪敤寰俊閫�娆綱3锛堟斁鍦ㄦ渶鍚庯紝纭繚鍓嶇疆鎿嶄綔鍏ㄩ儴鎴愬姛锛�
+ Refund refundResult = wxPayV3Service.refund(
+ order.getOutTradeNo(), order.getPayAmount(), order.getRefundAmount(),
+ "璁㈠崟閫�娆�", wxPayProperties.getV3RefundNotifyUrl());
- // 閫�娆炬垚鍔熷悗鍥炲~閫�娆惧崟鍙峰拰鏃堕棿
- refundRecord.setRefundCode(refundCode);
- refundRecord.setRefundTime(new Date());
+ // 閫�娆炬垚鍔熷悗鍥炲~閫�娆惧崟鍙凤紝鏍囪閫�娆句腑
+ refundRecord.setRefundCode(refundResult.getOutRefundNo());
+ refundRecord.setStatus(Constants.ZERO); // 閫�娆句腑
ordersRefundMapper.updateById(refundRecord);
}
@@ -2364,6 +2502,14 @@
logInfo += "锛岄��娆�" + Constants.getFormatMoney(order.getRefundAmount()) + "鍏�";
}
saveShopVerifyLog(order, "闂ㄥ簵纭鍑哄簱", logInfo, remark, shopId);
+ // 閫氱煡浼氬憳锛氳鍗曞凡瀹屾垚
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.FINISHED, order.getId(),
+ "orderNo", order.getCode());
+ // 閫氱煡瀛樹欢闂ㄥ簵鍜屽彇浠堕棬搴楋細璁㈠崟宸插畬鎴�
+ String settleDays = operationConfigBiz.getConfig().getSettlementDate();
+ notifyBothShops(order, Constants.ShopOrderNotify.FINISHED,
+ "orderNo", order.getCode(),
+ "settleDays", settleDays != null ? settleDays : "7");
}
@Override
@@ -2401,6 +2547,15 @@
// 7. 鐢熸垚鏀剁泭璁板綍
calculateAndSaveOrderFees(orderId);
generateRevenueRecords(orderId);
+
+ // 閫氱煡浼氬憳锛氳鍗曞凡瀹屾垚
+ sendOrderNotice(memberId, Constants.MemberOrderNotify.FINISHED, orderId,
+ "orderNo", order.getCode());
+ // 閫氱煡瀛樹欢闂ㄥ簵鍜屽彇浠堕棬搴楋細璁㈠崟宸插畬鎴�
+ String settleDays = operationConfigBiz.getConfig().getSettlementDate();
+ notifyBothShops(order, Constants.ShopOrderNotify.FINISHED,
+ "orderNo", order.getCode(),
+ "settleDays", settleDays != null ? settleDays : "7");
}
@Override
@@ -2552,6 +2707,26 @@
// 淇濆瓨闄勪欢锛坥bj_type=3 闂ㄥ簵鍏ュ簱鍥剧墖锛屾渶澶�3寮狅級
saveVerifyImages(order.getId(), images, Constants.FileType.ORDER_TAKE.getKey(), driverId);
+
+ // 閫氱煡浼氬憳锛氳鍗曞凡閫佽揪
+ String destination = order.getTakeShopAddress() != null ? order.getTakeShopAddress() : "";
+ if (order.getMemberVerifyCode() != null) {
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.ARRIVED_HAS_SHOP, order.getId(),
+ "orderNo", order.getCode(),
+ "destination", destination,
+ "pickupCode", order.getMemberVerifyCode());
+ } else {
+ sendOrderNotice(order.getMemberId(), Constants.MemberOrderNotify.ARRIVED_NO_SHOP, order.getId(),
+ "orderNo", order.getCode(),
+ "destination", destination);
+ }
+
+ // 閫氱煡鍙栦欢闂ㄥ簵锛氳鍗曞凡閫佽揪
+ if (order.getTakeShopId() != null) {
+ sendShopNotice(order.getTakeShopId(), Constants.ShopOrderNotify.ARRIVED, order.getId(),
+ "orderNo", order.getCode(),
+ "destination", destination);
+ }
}
/**
@@ -2953,7 +3128,7 @@
// 鑵捐鍦板浘璺濈鐭╅樀API璁$畻瀹為檯璺濈
String from = fromLat + "," + fromLng;
String to = toLat + "," + toLng;
- JSONObject distanceResult = MapUtil.distanceSingle("driving", from, to);
+ JSONObject distanceResult = MapUtil.direction("driving", from, to);
// 鑾峰彇璺濈锛堢背锛夛紝杞叕閲�
int distanceMeters = distanceResult.getIntValue("distance");
diff --git a/server/services/src/main/java/com/doumee/service/business/impl/ShopInfoServiceImpl.java b/server/services/src/main/java/com/doumee/service/business/impl/ShopInfoServiceImpl.java
index f08ea2e..cd636c8 100644
--- a/server/services/src/main/java/com/doumee/service/business/impl/ShopInfoServiceImpl.java
+++ b/server/services/src/main/java/com/doumee/service/business/impl/ShopInfoServiceImpl.java
@@ -239,8 +239,6 @@
public void applyShop(ShopApplyDTO request) {
Member member = memberMapper.selectById(request.getMemberId());
- // 1. 鏍¢獙闂ㄥ簵鎵嬫満鍙峰敮涓�鎬э紙shop_info.telephone锛�
- checkTelephoneUnique(request.getTelephone(), null);
// 2. 鏍规嵁绫诲瀷鏍¢獙闄勪欢
if (Constants.equalsInteger(request.getCompanyType(), Constants.ZERO)) {
@@ -315,14 +313,17 @@
existing.setPassword(encryptedPassword);
existing.setSalt(salt);
existing.setAliAccount(request.getAliAccount());
- existing.setAuditStatus(Constants.ZERO);
+ existing.setAliName(request.getAliName());
existing.setUpdateTime(now);
existing.setAuditRemark(null);
existing.setAuditTime(null);
existing.setAuditUserId(null);
+ existing.setAuditStatus(Constants.ZERO);
shopInfoMapper.updateById(existing);
shopId = existing.getId();
} else {
+ // 1. 鏍¢獙闂ㄥ簵鎵嬫満鍙峰敮涓�鎬э紙shop_info.telephone锛�
+ checkTelephoneUnique(request.getTelephone(), null);
// 鏂板缓
ShopInfo shopInfo = new ShopInfo();
shopInfo.setCompanyType(request.getCompanyType());
@@ -344,8 +345,7 @@
shopInfo.setPassword(encryptedPassword);
shopInfo.setSalt(salt);
shopInfo.setAliAccount(request.getAliAccount());
- shopInfo.setOpenid(member.getOpenid());
- shopInfo.setAuditStatus(Constants.ZERO);
+ shopInfo.setAliName(request.getAliName());
shopInfo.setStatus(Constants.ZERO);
shopInfo.setDeleted(Constants.ZERO);
shopInfo.setCreateTime(now);
@@ -552,6 +552,8 @@
shopInfo.setLegalPersonName(request.getLegalPersonName());
shopInfo.setLegalPersonPhone(request.getLegalPersonPhone());
shopInfo.setLegalPersonCard(request.getLegalPersonCard());
+ shopInfo.setAliAccount(request.getAliAccount());
+ shopInfo.setAliName(request.getAliName());
shopInfo.setUpdateTime(now);
shopInfoMapper.updateById(shopInfo);
@@ -655,6 +657,9 @@
vo.setPayStatus(shopInfo.getPayStatus());
vo.setScore(shopInfo.getScore());
vo.setCreateTime(shopInfo.getCreateTime());
+ vo.setAliAccount(shopInfo.getAliAccount());
+ vo.setAliName(shopInfo.getAliName());
+ vo.setDepositAmount(shopInfo.getDepositAmount());
// 鎷兼帴鍥剧墖鍓嶇紑
String imgPrefix = "";
diff --git a/server/services/src/main/java/com/doumee/service/business/impl/WithdrawalOrdersServiceImpl.java b/server/services/src/main/java/com/doumee/service/business/impl/WithdrawalOrdersServiceImpl.java
index 3484958..0d0b4c4 100644
--- a/server/services/src/main/java/com/doumee/service/business/impl/WithdrawalOrdersServiceImpl.java
+++ b/server/services/src/main/java/com/doumee/service/business/impl/WithdrawalOrdersServiceImpl.java
@@ -19,6 +19,8 @@
import com.doumee.dao.business.model.ShopInfo;
import com.doumee.dao.business.model.WithdrawalOrders;
import com.doumee.dao.dto.WithdrawalApproveDTO;
+import com.doumee.config.alipay.AlipayFundTransUniTransfer;
+import com.doumee.dao.dto.AlipayTransferDTO;
import com.doumee.dao.dto.WithdrawalDTO;
import com.doumee.dao.system.SystemUserMapper;
import com.doumee.dao.system.model.SystemUser;
@@ -27,6 +29,7 @@
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
@@ -229,6 +232,7 @@
}
@Override
+ @Transactional(rollbackFor = Exception.class)
public void approve(WithdrawalApproveDTO dto) {
if (dto == null || dto.getId() == null || dto.getStatus() == null) {
throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "瀹℃壒鍙傛暟涓嶅畬鏁�");
@@ -249,13 +253,95 @@
Integer currentUserId = getCurrentUserId();
Date now = new Date();
+ // 瀹℃壒閫氳繃鏃讹紝璋冪敤鏀粯瀹濇墦娆�
+ Integer finalStatus = dto.getStatus();
+ String doneInfo = null;
+ if (Constants.ONE.equals(dto.getStatus())) {
+ String aliAccount = order.getAliAccount();
+ String aliName = null;
+
+ // 浠庡徃鏈烘垨闂ㄥ簵鑾峰彇鏀粯瀹濊处鎴峰拰瀹炲悕濮撳悕
+ if (StringUtils.isBlank(aliAccount)) {
+ if (Constants.equalsInteger(order.getMemberType(), Constants.ONE)) {
+ DriverInfo driver = driverInfoMapper.selectOne(new QueryWrapper<DriverInfo>().lambda()
+ .eq(DriverInfo::getMemberId, order.getMemberId())
+ .eq(DriverInfo::getDeleted, Constants.ZERO)
+ .last("limit 1"));
+ if (driver != null) {
+ aliAccount = driver.getAliAccount();
+ aliName = driver.getAliName();
+ }
+ } else if (Constants.equalsInteger(order.getMemberType(), Constants.TWO)) {
+ ShopInfo shop = shopInfoMapper.selectOne(new QueryWrapper<ShopInfo>().lambda()
+ .eq(ShopInfo::getRegionMemberId, order.getMemberId())
+ .eq(ShopInfo::getDeleted, Constants.ZERO)
+ .last("limit 1"));
+ if (shop != null) {
+ aliAccount = shop.getAliAccount();
+ aliName = shop.getAliName();
+ }
+ }
+ } else {
+ // 浠� WithdrawalOrders 鐨� aliAccount 鏌ュ搴斿鍚�
+ if (Constants.equalsInteger(order.getMemberType(), Constants.ONE)) {
+ DriverInfo driver = driverInfoMapper.selectOne(new QueryWrapper<DriverInfo>().lambda()
+ .eq(DriverInfo::getMemberId, order.getMemberId())
+ .eq(DriverInfo::getDeleted, Constants.ZERO)
+ .last("limit 1"));
+ if (driver != null) {
+ aliName = driver.getAliName();
+ }
+ } else if (Constants.equalsInteger(order.getMemberType(), Constants.TWO)) {
+ ShopInfo shop = shopInfoMapper.selectOne(new QueryWrapper<ShopInfo>().lambda()
+ .eq(ShopInfo::getRegionMemberId, order.getMemberId())
+ .eq(ShopInfo::getDeleted, Constants.ZERO)
+ .last("limit 1"));
+ if (shop != null) {
+ aliName = shop.getAliName();
+ }
+ }
+ }
+
+ if (StringUtils.isBlank(aliAccount)) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鏀粯瀹濇彁鐜拌处鎴锋湭閰嶇疆锛屾棤娉曟墦娆�");
+ }
+
+ // 閲戦杞崲锛氬垎 鈫� 鍏�
+ Long amountFen = order.getAmount() != null ? order.getAmount() : 0L;
+ BigDecimal transAmount = new BigDecimal(amountFen).divide(new BigDecimal(100), 2, BigDecimal.ROUND_HALF_UP);
+
+ AlipayTransferDTO transferDTO = new AlipayTransferDTO();
+ transferDTO.setOutBizNo(order.getOutBillNo());
+ transferDTO.setTransAmount(transAmount);
+ transferDTO.setPayeeAccount(aliAccount);
+ transferDTO.setPayeeName(aliName);
+ transferDTO.setRemark("鎻愮幇鎵撴");
+
+ String alipayOrderId;
+ try {
+ alipayOrderId = AlipayFundTransUniTransfer.transfer(transferDTO);
+ } catch (BusinessException e) {
+ throw e;
+ } catch (Exception e) {
+ throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "鏀粯瀹濇墦娆惧け璐ワ細" + e.getMessage());
+ }
+ doneInfo = "鏀粯瀹濊浆璐﹀崟鍙凤細" + alipayOrderId;
+ }
+
WithdrawalOrders update = new WithdrawalOrders();
update.setId(dto.getId());
- update.setStatus(dto.getStatus());
+ update.setStatus(finalStatus);
update.setUserId(currentUserId);
update.setApproveTime(now);
update.setApproveRemark(dto.getApproveRemark());
update.setUpdateTime(now);
+ if (Constants.ONE.equals(finalStatus)) {
+ update.setDoneTime(now);
+ update.setDoneInfo(doneInfo);
+ } else if (doneInfo != null) {
+ update.setDoneTime(now);
+ update.setDoneInfo(doneInfo);
+ }
withdrawalOrdersMapper.updateById(update);
// 鏇存柊鍏宠仈鐨勬彁鐜� Revenue 璁板綍鐘舵��
@@ -267,15 +353,15 @@
.eq(Revenue::getDeleted, Constants.ZERO)
.last("limit 1"));
if (withdrawalRevenue != null) {
- Integer revenueStatus = Constants.ONE.equals(dto.getStatus()) ? Constants.ZERO : Constants.ONE; // 閫氳繃=0鎴愬姛, 椹冲洖=1澶辫触
+ Integer revenueStatus = Constants.ONE.equals(finalStatus) ? Constants.ZERO : Constants.ONE; // 閫氳繃=0鎴愬姛, 椹冲洖=1澶辫触
revenueMapper.update(new UpdateWrapper<Revenue>().lambda()
.set(Revenue::getStatus, revenueStatus)
.set(Revenue::getUpdateTime, now)
.eq(Revenue::getId, withdrawalRevenue.getId()));
}
- // 椹冲洖鏃堕��鍥炰綑棰�
- if (Constants.TWO.equals(dto.getStatus())) {
+ // 椹冲洖鎴栨墦娆惧け璐ユ椂閫�鍥炰綑棰�
+ if (Constants.TWO.equals(finalStatus)) {
Long amountFen = order.getAmount() != null ? order.getAmount() : 0L;
if (amountFen > 0 && order.getMemberId() != null) {
if (Constants.equalsInteger(order.getMemberType(), Constants.ONE)) {
diff --git a/server/services/src/main/resources/application-dev.yml b/server/services/src/main/resources/application-dev.yml
index fa3d1ce..368cafd 100644
--- a/server/services/src/main/resources/application-dev.yml
+++ b/server/services/src/main/resources/application-dev.yml
@@ -95,12 +95,15 @@
mchKey: u4TSNtv0wFP7WRfnxBgijYOtRhS9FvlM #鍟嗘埛绉橀挜
apiV3Key: 7tG4Vk9Zp2L8dXw5Jq0N3hR6yE1sF3cB #apiV3Key
serialNumer: 3FE90C2F3D40A56E1C51926F31B8A8D22426CCE0 #鍟嗘埛璇佷功搴忓垪鍙�
- notifyUrl: http://xiaopiqiu2.natapp1.cc/web/wxPayNotify
- refundNotifyUrl: http://xiaopiqiu2.natapp1.cc/web/wxRefundNotify
+ publicKeyId: PUB_KEY_ID_0112298170022025071700291836000600
+ pubKeyPath: D:\DouMee\1229817002_20220310_cert\pub_key.pem #鍟嗘埛鏀粯鍏挜
keyPath: D:\DouMee\1229817002_20220310_cert\apiclient_cert.p12
privateCertPath: D:\DouMee\1229817002_20220310_cert\apiclient_cert.pem
privateKeyPath: D:\DouMee\1229817002_20220310_cert\apiclient_key.pem
- pubKeyPath: D:\DouMee\1229817002_20220310_cert\pub_key.pem #鍟嗘埛鏀粯鍏挜
+ notifyUrl: http://xiaopiqiu2.natapp1.cc/web/wxPayNotify
+ refundNotifyUrl: http://xiaopiqiu2.natapp1.cc/web/wxRefundNotify
+ v3NotifyUrl: http://xiaopiqiu2.natapp1.cc/web/api/wxPayV3Notify
+ v3RefundNotifyUrl: http://xiaopiqiu2.natapp1.cc/web/api/wxRefundV3Notify
# appId: wx6264b4f3a697cbe8
# appSecret: 23734577e8978138c946b727f0394027
@@ -123,5 +126,9 @@
# 鑵捐鍦板浘apikey
tencent_key: WE3BZ-HN6WS-ONDOH-62QCV-MNL6F-5NFNE
+# 楂樺痉鍦板浘apikey
+geocode_map_key: 9a62636d82d6c7c2372e57d80f99287c
+
+
diff --git a/server/services/src/main/resources/application-pro.yml b/server/services/src/main/resources/application-pro.yml
index d47e4ed..ba0b29d 100644
--- a/server/services/src/main/resources/application-pro.yml
+++ b/server/services/src/main/resources/application-pro.yml
@@ -60,6 +60,8 @@
serialNumer: 3FE90C2F3D40A56E1C51926F31B8A8D22426CCE0 #鍟嗘埛璇佷功搴忓垪鍙�
notifyUrl: http://xiaopiqiu2.natapp1.cc/web/wxPayNotify
refundNotifyUrl: http://xiaopiqiu2.natapp1.cc/web/wxRefundNotify
+ v3NotifyUrl: http://xiaopiqiu2.natapp1.cc/web/api/wxPayV3Notify
+ v3RefundNotifyUrl: http://xiaopiqiu2.natapp1.cc/web/api/wxRefundV3Notify
keyPath: D:\DouMee\1229817002_20220310_cert\apiclient_cert.p12
privateCertPath: D:\DouMee\1229817002_20220310_cert\apiclient_cert.pem
privateKeyPath: D:\DouMee\1229817002_20220310_cert\apiclient_key.pem
@@ -84,4 +86,7 @@
# 鑵捐鍦板浘apikey
-tencent_key: WE3BZ-HN6WS-ONDOH-62QCV-MNL6F-5NFNE
\ No newline at end of file
+tencent_key: WE3BZ-HN6WS-ONDOH-62QCV-MNL6F-5NFNE
+
+# 楂樺痉鍦板浘apikey
+geocode_map_key:
\ No newline at end of file
diff --git a/server/services/src/main/resources/application-test.yml b/server/services/src/main/resources/application-test.yml
index 27f42d6..96c3955 100644
--- a/server/services/src/main/resources/application-test.yml
+++ b/server/services/src/main/resources/application-test.yml
@@ -83,6 +83,8 @@
#mchKey: W97N53Q71326D6JZ2E9HY5M4VT4BAC8S
notifyUrl: https://test.doumee.cn/jinkuai_admin/web/wxPayNotify
refundNotifyUrl: https://test.doumee.cn/jinkuai_admin/web/wxRefundNotify
+ v3NotifyUrl: https://test.doumee.cn/jinkuai_admin/web/api/wxPayV3Notify
+ v3RefundNotifyUrl: https://test.doumee.cn/jinkuai_admin/web/api/wxRefundV3Notify
keyPath: /usr/local/jars/payFile/apiclient_cert.p12
privateCertPath: /usr/local/jars/payFile/apiclient_cert.pem
privateKeyPath: /usr/local/jars/payFile/apiclient_key.pem
@@ -117,4 +119,7 @@
# 鑵捐鍦板浘apikey
-tencent_key: WE3BZ-HN6WS-ONDOH-62QCV-MNL6F-5NFNE
\ No newline at end of file
+tencent_key: WE3BZ-HN6WS-ONDOH-62QCV-MNL6F-5NFNE
+
+# 楂樺痉鍦板浘apikey
+geocode_map_key:
\ No newline at end of file
diff --git a/server/web/src/main/java/com/doumee/api/web/ConfigApi.java b/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
index bc17bac..deb2560 100644
--- a/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
+++ b/server/web/src/main/java/com/doumee/api/web/ConfigApi.java
@@ -3,7 +3,7 @@
import com.doumee.core.annotation.LoginRequired;
import com.doumee.core.annotation.trace.Trace;
import com.doumee.core.model.ApiResponse;
-import com.doumee.core.utils.Tencent.MapUtil;
+import com.doumee.core.utils.geocode.MapUtil;
import com.doumee.dao.business.model.Areas;
import com.doumee.dao.business.model.Banner;
import com.doumee.dao.business.model.Category;
diff --git a/server/web/src/main/java/com/doumee/api/web/DriverInfoApi.java b/server/web/src/main/java/com/doumee/api/web/DriverInfoApi.java
index 2dc0bc4..45b6b08 100644
--- a/server/web/src/main/java/com/doumee/api/web/DriverInfoApi.java
+++ b/server/web/src/main/java/com/doumee/api/web/DriverInfoApi.java
@@ -10,6 +10,7 @@
import com.doumee.dao.dto.DriverActiveOrderDTO;
import com.doumee.dao.dto.DriverGrabOrderDTO;
import com.doumee.dao.dto.DriverLoginRequest;
+import com.doumee.dao.dto.DriverPickupDTO;
import com.doumee.dao.dto.DriverRegisterRequest;
import com.doumee.dao.dto.DriverVerifyRequest;
import com.doumee.dao.vo.AccountResponse;
@@ -142,6 +143,19 @@
@LoginDriverRequired
@Trace
+ @ApiOperation(value = "鍙告満鎶㈠崟", notes = "瀵瑰凡瀵勫瓨(status=2)鐨勫紓鍦板瘎瀛樿鍗曞彂璧锋姠鍗�")
+ @PostMapping("/grabOrder")
+ @ApiImplicitParams({
+ @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true),
+ @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "orderId", value = "璁㈠崟涓婚敭", required = true)
+ })
+ public ApiResponse grabOrder(@RequestParam Integer orderId) {
+ driverInfoService.grabOrder(this.getDriverId(), orderId);
+ return ApiResponse.success("鎶㈠崟鎴愬姛");
+ }
+
+ @LoginDriverRequired
+ @Trace
@ApiOperation(value = "鍙告満杩涜涓鍗�", notes = "鏌ヨ宸叉姠鍗�(status=3)鎴栨淳閫佷腑(status=4)鐨勮鍗曞垪琛�")
@PostMapping("/activeOrders")
@ApiImplicitParams({
@@ -176,4 +190,16 @@
return ApiResponse.success("鍙栨秷鎴愬姛");
}
+ @LoginDriverRequired
+ @Trace
+ @ApiOperation(value = "鍙告満瀹屾垚鍙栦欢", notes = "宸叉帴鍗�(status=3)鏃剁‘璁ゅ彇浠讹紝璁㈠崟杩涘叆娲鹃�佷腑(status=4)")
+ @PostMapping("/confirmPickup")
+ @ApiImplicitParams({
+ @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "鐢ㄦ埛token鍊�", required = true)
+ })
+ public ApiResponse confirmPickup(@RequestBody @Valid DriverPickupDTO dto) {
+ driverInfoService.confirmPickup(this.getDriverId(), dto);
+ return ApiResponse.success("鎿嶄綔鎴愬姛");
+ }
+
}
diff --git a/server/web/src/main/java/com/doumee/api/web/PaymentCallback.java b/server/web/src/main/java/com/doumee/api/web/PaymentCallback.java
index 328d3fa..40e530d 100644
--- a/server/web/src/main/java/com/doumee/api/web/PaymentCallback.java
+++ b/server/web/src/main/java/com/doumee/api/web/PaymentCallback.java
@@ -1,21 +1,28 @@
package com.doumee.api.web;
import com.doumee.config.wx.WxMiniConfig;
+import com.doumee.config.wx.WxPayV3Service;
import com.doumee.core.constants.Constants;
import com.doumee.core.utils.ID;
+import com.doumee.dao.business.OrdersRefundMapper;
+import com.doumee.dao.business.OrdersMapper;
+import com.doumee.dao.business.model.Notice;
+import com.doumee.dao.business.model.Orders;
+import com.doumee.dao.business.model.OrdersRefund;
+import com.doumee.service.business.NoticeService;
import com.doumee.service.business.OrdersService;
import com.github.binarywang.wxpay.bean.notify.WxPayNotifyResponse;
import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
+import com.wechat.pay.java.service.payments.model.Transaction;
+import com.wechat.pay.java.service.refund.model.RefundNotification;
+import com.wechat.pay.java.service.refund.model.Status;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.CrossOrigin;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
-import java.util.Date;
-import java.util.Objects;
+import java.util.HashMap;
+import java.util.Map;
/**
* 鏀粯鍥炶皟
@@ -31,37 +38,43 @@
@Autowired
private OrdersService ordersService;
+ @Autowired
+ private WxPayV3Service wxPayV3Service;
+
+ @Autowired
+ private OrdersRefundMapper ordersRefundMapper;
+
+ @Autowired
+ private OrdersMapper ordersMapper;
+
+ @Autowired
+ private NoticeService noticeService;
+
+
+ // ==================== V2 鍥炶皟 ====================
@PostMapping("/web/api/wxPayNotify")
public String wxPay_notify(@RequestBody String xmlResult) {
String wxId = ID.nextGUID();
- log.info("鏀粯鍥炶皟淇℃伅("+wxId+") = > " + xmlResult);
- if (StringUtils.isEmpty(xmlResult)){
+ log.info("V2鏀粯鍥炶皟淇℃伅(" + wxId + ") => " + xmlResult);
+ if (StringUtils.isEmpty(xmlResult)) {
return null;
}
try {
WxPayOrderNotifyResult result = WxMiniConfig.wxPayService.parseOrderNotifyResult(xmlResult);
- //鑷畾涔夎鍗曞彿
String outTradeNo = result.getOutTradeNo();
- //寰俊璁㈠崟鍙�
String paymentNo = result.getTransactionId();
-
-
if (Constants.SUCCESS.equals(result.getReturnCode())) {
- // 鏀粯鎴愬姛
switch (result.getAttach()) {
- //瀵勫瓨璁㈠崟
case "storageOrder": {
ordersService.handleStorageOrderPayNotify(outTradeNo, paymentNo);
break;
}
- //搴楅摵鎶奸噾璁㈠崟
case "shopDeposit": {
ordersService.handleShopDepositPayNotify(outTradeNo, paymentNo);
break;
}
- //閫炬湡璐圭敤璁㈠崟
case "overdueFee": {
ordersService.handleOverdueFeePayNotify(outTradeNo, paymentNo);
break;
@@ -72,11 +85,133 @@
return WxPayNotifyResponse.fail(result.getReturnMsg());
} catch (Exception e) {
e.printStackTrace();
- log.error("寰俊鍥炶皟缁撴灉寮傚父,寮傚父鍘熷洜{}", e.getLocalizedMessage());
+ log.error("V2寰俊鍥炶皟缁撴灉寮傚父,寮傚父鍘熷洜{}", e.getLocalizedMessage());
return WxPayNotifyResponse.fail(e.getMessage());
}
}
+ // ==================== V3 鍥炶皟 ====================
+ /**
+ * V3鏀粯鍥炶皟
+ */
+ @PostMapping("/web/api/wxPayV3Notify")
+ public Map<String, String> wxPayV3Notify(
+ @RequestHeader("Wechatpay-Serial") String serialNumber,
+ @RequestHeader("Wechatpay-Timestamp") String timestamp,
+ @RequestHeader("Wechatpay-Nonce") String nonce,
+ @RequestHeader("Wechatpay-Signature") String signature,
+ @RequestBody String body) {
+ String wxId = ID.nextGUID();
+ log.info("V3鏀粯鍥炶皟淇℃伅({}) => {}", wxId, body);
+ try {
+ Transaction transaction = wxPayV3Service.parsePayNotify(
+ serialNumber, timestamp, nonce, signature, body);
+
+ String outTradeNo = transaction.getOutTradeNo();
+ String paymentNo = transaction.getTransactionId();
+
+ if (Transaction.TradeStateEnum.SUCCESS.equals(transaction.getTradeState())) {
+ String attach = transaction.getAttach();
+ if (StringUtils.isNotBlank(attach)) {
+ switch (attach) {
+ case "storageOrder":
+ ordersService.handleStorageOrderPayNotify(outTradeNo, paymentNo);
+ break;
+ case "shopDeposit":
+ ordersService.handleShopDepositPayNotify(outTradeNo, paymentNo);
+ break;
+ case "overdueFee":
+ ordersService.handleOverdueFeePayNotify(outTradeNo, paymentNo);
+ break;
+ }
+ }
+ }
+
+ Map<String, String> response = new HashMap<>();
+ response.put("code", "SUCCESS");
+ response.put("message", "澶勭悊鎴愬姛");
+ return response;
+ } catch (Exception e) {
+ log.error("V3鏀粯鍥炶皟寮傚父,寮傚父鍘熷洜{}", e.getLocalizedMessage());
+ Map<String, String> response = new HashMap<>();
+ response.put("code", "FAIL");
+ response.put("message", e.getMessage());
+ return response;
+ }
+ }
+
+ /**
+ * V3閫�娆惧洖璋�
+ */
+ @PostMapping("/web/api/wxRefundV3Notify")
+ public Map<String, String> wxRefundV3Notify(
+ @RequestHeader("Wechatpay-Serial") String serialNumber,
+ @RequestHeader("Wechatpay-Timestamp") String timestamp,
+ @RequestHeader("Wechatpay-Nonce") String nonce,
+ @RequestHeader("Wechatpay-Signature") String signature,
+ @RequestBody String body) {
+ String wxId = ID.nextGUID();
+ log.info("V3閫�娆惧洖璋冧俊鎭�({}) => {}", wxId, body);
+ try {
+ RefundNotification refundNotification = wxPayV3Service.parseRefundNotify(
+ serialNumber, timestamp, nonce, signature, body);
+
+ log.info("V3閫�娆惧洖璋冪粨鏋�, outTradeNo={}, outRefundNo={}, refundStatus={}",
+ refundNotification.getOutTradeNo(),
+ refundNotification.getOutRefundNo(),
+ refundNotification.getRefundStatus());
+
+ // 鏍规嵁閫�娆惧崟鍙锋洿鏂伴��娆捐褰曠姸鎬�
+ String outRefundNo = refundNotification.getOutRefundNo();
+ OrdersRefund refundRecord = ordersRefundMapper.selectOne(
+ new com.baomidou.mybatisplus.core.conditions.query.QueryWrapper<OrdersRefund>().lambda()
+ .eq(OrdersRefund::getRefundCode, outRefundNo)
+ .eq(OrdersRefund::getDeleted, Constants.ZERO)
+ .last("limit 1"));
+ if (refundRecord != null) {
+ Status refundStatus = refundNotification.getRefundStatus();
+ if (Status.SUCCESS.equals(refundStatus)) {
+ refundRecord.setStatus(Constants.ONE); // 閫�娆炬垚鍔�
+ refundRecord.setRefundTime(new java.util.Date());
+ } else if (Status.CLOSED.equals(refundStatus) || Status.ABNORMAL.equals(refundStatus)) {
+ refundRecord.setStatus(Constants.TWO); // 閫�娆惧け璐�
+ }
+ ordersRefundMapper.updateById(refundRecord);
+ log.info("閫�娆捐褰曠姸鎬佸凡鏇存柊, refundRecordId={}, status={}", refundRecord.getId(), refundRecord.getStatus());
+
+ // 閫�娆炬垚鍔� 鈫� 閫氱煡浼氬憳
+ if (Status.SUCCESS.equals(refundStatus) && refundRecord.getOrderId() != null) {
+ Orders refundOrder = ordersMapper.selectById(refundRecord.getOrderId());
+ if (refundOrder != null) {
+ Notice notice = new Notice();
+ notice.setUserType(0);
+ notice.setUserId(refundOrder.getMemberId());
+ notice.setTitle(Constants.MemberOrderNotify.REFUNDED.getTitle());
+ notice.setContent(Constants.MemberOrderNotify.REFUNDED.format(
+ "orderNo", refundOrder.getCode(),
+ "amount", String.valueOf(Constants.getFormatMoney(refundOrder.getRefundAmount() != null ? refundOrder.getRefundAmount() : 0L))));
+ notice.setObjId(refundOrder.getId());
+ notice.setObjType(0);
+ notice.setStatus(0);
+ notice.setIsdeleted(Constants.ZERO);
+ notice.setCreateDate(new java.util.Date());
+ noticeService.create(notice);
+ }
+ }
+ }
+
+ Map<String, String> response = new HashMap<>();
+ response.put("code", "SUCCESS");
+ response.put("message", "澶勭悊鎴愬姛");
+ return response;
+ } catch (Exception e) {
+ log.error("V3閫�娆惧洖璋冨紓甯�,寮傚父鍘熷洜{}", e.getLocalizedMessage());
+ Map<String, String> response = new HashMap<>();
+ response.put("code", "FAIL");
+ response.put("message", e.getMessage());
+ return response;
+ }
+ }
}
diff --git a/server/web/src/main/java/com/doumee/api/web/ShopInfoApi.java b/server/web/src/main/java/com/doumee/api/web/ShopInfoApi.java
index d16ee9f..6595950 100644
--- a/server/web/src/main/java/com/doumee/api/web/ShopInfoApi.java
+++ b/server/web/src/main/java/com/doumee/api/web/ShopInfoApi.java
@@ -94,14 +94,14 @@
return ApiResponse.success(shopInfoService.getShopMaintainInfo(this.getMemberId()));
}
- @LoginShopRequired
+ @LoginRequired
@ApiOperation("闂ㄥ簵鏀粯鎶奸噾")
@PostMapping("/payDeposit")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "闂ㄥ簵token鍊�", required = true)
})
public ApiResponse<PayResponse> payDeposit() {
- return ApiResponse.success("鎿嶄綔鎴愬姛", ordersService.payShopDeposit(getShopId()));
+ return ApiResponse.success("鎿嶄綔鎴愬姛", ordersService.payShopDeposit(getMemberId()));
}
}
diff --git a/small-program/pages/address/address.vue b/small-program/pages/address/address.vue
index e4ebea7..a14412d 100644
--- a/small-program/pages/address/address.vue
+++ b/small-program/pages/address/address.vue
@@ -79,7 +79,7 @@
display: flex;
align-items: center;
justify-content: center;
- background: #004096;
+ background: linear-gradient( 270deg, #66F8E4 0%, #15B9F7 100%), #10B2FA;
border-radius: 44rpx;
position: fixed;
left: 30rpx;
diff --git a/small-program/pages/details-entry/details-entry.vue b/small-program/pages/details-entry/details-entry.vue
index 73b7ceb..b8fe52a 100644
--- a/small-program/pages/details-entry/details-entry.vue
+++ b/small-program/pages/details-entry/details-entry.vue
@@ -1,13 +1,147 @@
<template>
<view class="container">
- <view class="head">
+ <view class="head" :class="'head-' + shopAuditStatus">
<view class="head-top">
- <image src="/static/images/ic_renzhengzhong@2x.png" mode="widthFix"></image>
- <text>骞冲彴瀹℃牳涓�</text>
+ <image :src="statusIcon" mode="widthFix"></image>
+ <text>{{ statusText }}</text>
</view>
<view class="head-bottom">
- 瀹℃牳缁撴灉灏嗛�氳繃鐭俊/璁㈤槄娑堟伅閫氱煡鎮�
+ {{ statusBottomText }}
</view>
+ </view>
+ <view class="list">
+ <view class="list-item">
+ <view class="list-item-label">娉ㄥ唽鎵嬫満鍙�</view>
+ <view class="list-item-value">{{ form.telephone }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">闂ㄥ簵鍚嶇О</view>
+ <view class="list-item-value">{{ form.name }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">闂ㄥ簵绫诲瀷</view>
+ <view class="list-item-value">{{ form.companyType === 0 ? '涓汉' : '浼佷笟' }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">鎵�鍦ㄥ煄甯�</view>
+ <view class="list-item-value">{{ fullAreaName }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">闂ㄥ簵鍦板潃</view>
+ <view class="list-item-value">{{ form.address }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">鑱旂郴浜�</view>
+ <view class="list-item-value">{{ form.linkName }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">鑱旂郴浜虹數璇�</view>
+ <view class="list-item-value">{{ form.linkPhone }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">鑱旂郴浜鸿韩浠借瘉</view>
+ <view class="list-item-value">{{ form.idcard }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">鏀粯瀹濊处鍙�</view>
+ <view class="list-item-value">{{ form.aliAccount }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">鏀粯瀹濆鍚�</view>
+ <view class="list-item-value">{{ form.aliName }}</view>
+ </view>
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">韬唤璇佹鍙嶉潰</view>
+ <view class="idcard">
+ <view class="idcard-image" v-if="form.idcardImg" @click="previewImage(form.idcardImg)">
+ <image :src="getFullPath(form.idcardImg)" mode="aspectFill"></image>
+ </view>
+ <view class="idcard-image" v-if="form.idcardImgBack" @click="previewImage(form.idcardImgBack)">
+ <image :src="getFullPath(form.idcardImgBack)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">闂ㄥ簵闂ㄥご鐓х墖</view>
+ <view class="imgList">
+ <view class="imgItem" v-for="(img, index) in form.storeFrontImgs" :key="index" @click="previewImage(img)">
+ <image :src="getFullPath(img)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">闂ㄥ簵鍐呴儴鐓х墖</view>
+ <view class="imgList">
+ <view class="imgItem" v-for="(img, index) in form.storeInteriorImgs" :key="index" @click="previewImage(img)">
+ <image :src="getFullPath(img)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">鍏朵粬鏉愭枡</view>
+ <view class="imgList">
+ <view class="imgItem" v-for="(img, index) in form.otherMaterialImgs" :key="index" @click="previewImage(img)">
+ <image :src="getFullPath(img)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ <template v-if="form.companyType === 0">
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">鏈夋晥鍔冲伐鍚堝悓</view>
+ <view class="imgList">
+ <view class="imgItem" v-for="(img, index) in form.laborContractImgs" :key="index" @click="previewImage(img)">
+ <image :src="getFullPath(img)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">鏈夋晥绀句繚缂寸撼璇佹槑</view>
+ <view class="imgList">
+ <view class="imgItem" v-for="(img, index) in form.socialSecurityImgs" :key="index" @click="previewImage(img)">
+ <image :src="getFullPath(img)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ </template>
+ <template v-else>
+ <view class="list-item">
+ <view class="list-item-label">娉曚汉濮撳悕</view>
+ <view class="list-item-value">{{ form.legalPersonName }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">浼佷笟鏀粯瀹濊处鍙�</view>
+ <view class="list-item-value">{{ form.aliAccount }}</view>
+ </view>
+ <view class="list-item">
+ <view class="list-item-label">娉曚汉韬唤璇佸彿</view>
+ <view class="list-item-value">{{ form.legalPersonCardNo }}</view>
+ </view>
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">娉曚汉韬唤璇佹鍙嶉潰</view>
+ <view class="idcard">
+ <view class="idcard-image" v-if="form.legalPersonCard" @click="previewImage(form.legalPersonCard)">
+ <image :src="getFullPath(form.legalPersonCard)" mode="aspectFill"></image>
+ </view>
+ <view class="idcard-image" v-if="form.legalPersonCardBack" @click="previewImage(form.legalPersonCardBack)">
+ <image :src="getFullPath(form.legalPersonCardBack)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ <view class="list-item" style="flex-direction: column; align-items: flex-start;">
+ <view class="list-item-label" style="margin-bottom: 30rpx;">钀ヤ笟鎵х収</view>
+ <view class="imgList">
+ <view class="imgItem" v-if="form.businessImg" @click="previewImage(form.businessImg)">
+ <image :src="getFullPath(form.businessImg)" mode="aspectFill"></image>
+ </view>
+ </view>
+ </view>
+ </template>
+ </view>
+ <view class="footer-btn" v-if="shopAuditStatus === 1">
+ <view class="pay-btn" @click="goToPay">鏀粯鎶奸噾 锟{ form.depositAmount }}</view>
+ </view>
+ <view class="footer-btn" v-if="shopAuditStatus === 2">
+ <view class="reapply-btn" @click="goToReapply">閲嶆柊璁よ瘉</view>
</view>
</view>
</template>
@@ -16,8 +150,171 @@
export default {
data() {
return {
-
+ form: {
+ telephone: '',
+ name: '',
+ companyType: 0,
+ provinceName: '',
+ cityName: '',
+ areaName: '',
+ address: '',
+ linkName: '',
+ linkPhone: '',
+ idcard: '',
+ aliAccount: '',
+ storeFrontImgs: [],
+ storeInteriorImgs: [],
+ otherMaterialImgs: [],
+ idcardImg: '',
+ idcardImgBack: '',
+ laborContractImgs: [],
+ socialSecurityImgs: [],
+ legalPersonName: '',
+ legalPersonCard: '',
+ legalPersonCardBack: '',
+ legalPersonCardNo: '',
+ businessImg: '',
+ depositAmount: '',
+ aliName: ''
+ },
+ imgPrefix: '',
+ statusText: '骞冲彴瀹℃牳涓�',
+ shopAuditStatus: 0,
+ statusBottomText: ''
};
+ },
+ computed: {
+ statusIcon() {
+ const iconMap = {
+ 0: '/static/icon/ic_renzhengzhong@2x.png',
+ 1: '/static/icon/ic_pass@2x.png',
+ 2: '/static/icon/ic_fail@2x.png',
+ 3: '/static/icon/ic_pass@2x.png'
+ }
+ return iconMap[this.shopAuditStatus] || iconMap[0]
+ },
+ fullAreaName() {
+ const arr = [this.form.provinceName, this.form.cityName, this.form.areaName].filter(Boolean)
+ return arr.join('/')
+ }
+ },
+ onLoad() {
+ this.getMyShopData()
+ },
+ methods: {
+ getFullPath(url) {
+ if (!url) return ''
+ if (url.startsWith('http')) {
+ return url
+ }
+ return this.imgPrefix + url
+ },
+ previewImage(url) {
+ uni.previewImage({
+ urls: [this.getFullPath(url)],
+ current: 0
+ })
+ },
+ goToPay() {
+ uni.showLoading({ title: '鍙戣捣鏀粯涓�...', mask: true })
+ this.$u.api.payDeposit({}).then(res => {
+ uni.hideLoading()
+ if (res.code === 200 && res.data) {
+ let paymentData = res.data.response
+ uni.requestPayment({
+ provider: 'wxpay',
+ timeStamp: paymentData.timeStamp || '',
+ nonceStr: paymentData.nonceStr || '',
+ package: paymentData.package || '',
+ signType: paymentData.signType || 'MD5',
+ paySign: paymentData.paySign || '',
+ success: (res) => {
+ this.getMyShopData()
+ },
+ fail: (err) => {
+ if (err.errMsg.includes('cancel')) {
+ uni.showToast({ title: '宸插彇娑堟敮浠�', icon: 'none' })
+ } else {
+ uni.showToast({ title: '鏀粯澶辫触', icon: 'none' })
+ }
+ }
+ })
+ } else {
+ uni.showToast({ title: res.msg || '鏀粯澶辫触', icon: 'none' })
+ }
+ }).catch(err => {
+ uni.hideLoading()
+ uni.showToast({ title: '鏀粯澶辫触', icon: 'none' })
+ })
+ },
+ goToReapply() {
+ uni.navigateTo({
+ url: '/pages/store-apply/store-apply'
+ })
+ },
+ async getMyShopData() {
+ try {
+ const res = await this.$u.api.getMyShop()
+ if (res.code === 200 && res.data) {
+ const data = res.data
+ this.imgPrefix = data.imgPrefix || ''
+ this.form.telephone = data.telephone || ''
+ this.form.name = data.name || ''
+ this.form.companyType = data.companyType || 0
+ this.form.provinceName = data.provinceName || ''
+ this.form.cityName = data.cityName || ''
+ this.form.areaName = data.areaName || ''
+ this.form.address = data.address || ''
+ this.form.linkName = data.linkName || ''
+ this.form.linkPhone = data.linkPhone || ''
+ this.form.idcard = data.idcard || ''
+ this.form.aliAccount = data.aliAccount || ''
+ this.form.legalPersonName = data.legalPersonName || ''
+ this.form.legalPersonCardNo = data.legalPersonCard || ''
+ this.form.aliName = data.aliName || ''
+ if (data.storeFrontImgs) {
+ this.form.storeFrontImgs = typeof data.storeFrontImgs === 'string' ? data.storeFrontImgs.split(',') : data.storeFrontImgs
+ }
+ if (data.storeInteriorImgs) {
+ this.form.storeInteriorImgs = typeof data.storeInteriorImgs === 'string' ? data.storeInteriorImgs.split(',') : data.storeInteriorImgs
+ }
+ if (data.otherMaterialImgs) {
+ this.form.otherMaterialImgs = typeof data.otherMaterialImgs === 'string' ? data.otherMaterialImgs.split(',') : data.otherMaterialImgs
+ }
+ this.form.idcardImg = data.idcardImg || ''
+ this.form.idcardImgBack = data.idcardImgBack || ''
+ if (data.laborContractImgs) {
+ this.form.laborContractImgs = typeof data.laborContractImgs === 'string' ? data.laborContractImgs.split(',') : data.laborContractImgs
+ }
+ if (data.socialSecurityImgs) {
+ this.form.socialSecurityImgs = typeof data.socialSecurityImgs === 'string' ? data.socialSecurityImgs.split(',') : data.socialSecurityImgs
+ }
+ this.form.legalPersonCard = data.legalPersonCard || ''
+ this.form.legalPersonCardBack = data.legalPersonCardBack || ''
+ if (data.auditStatus === 1) {
+ this.form.depositAmount = data.depositAmount / 100 || ''
+ }
+ this.form.businessImg = data.businessImg || ''
+ const statusMap = {
+ 0: '骞冲彴瀹℃牳涓�',
+ 1: '闂ㄥ簵鍏ラ┗宸查�氳繃',
+ 2: '闂ㄥ簵鍏ラ┗宸叉嫆缁�',
+ 3: '闂ㄥ簵宸插叆椹�'
+ }
+ this.shopAuditStatus = data.auditStatus || 0
+ this.statusText = statusMap[this.shopAuditStatus] || '骞冲彴瀹℃牳涓�'
+ const bottomTextMap = {
+ 0: '瀹℃牳缁撴灉灏嗛�氳繃鐭俊/璁㈤槄娑堟伅閫氱煡鎮�',
+ 1: '璇锋敮浠橀棬搴楀叆椹绘娂閲�',
+ 2: '钀ヤ笟鎵х収杩囨湡锛岃閲嶆柊鎻愪氦瀹℃牳',
+ 3: ' '
+ }
+ this.statusBottomText = bottomTextMap[this.shopAuditStatus] || bottomTextMap[0]
+ }
+ } catch (error) {
+ console.log('鑾峰彇搴楅摵淇℃伅澶辫触', error)
+ }
+ }
}
}
</script>
@@ -25,6 +322,70 @@
<style lang="scss" scoped>
.container {
width: 100%;
+ padding-bottom: 140rpx;
+ .list {
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+ .list-item {
+ width: 100%;
+ padding: 30rpx 0;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-bottom: 1rpx solid #E5E5E5;
+ .list-item-label {
+ width: 245rpx;
+ flex-shrink: 0;
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #777777;
+ }
+ .imgList {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+ .imgItem {
+ width: 144rpx;
+ height: 144rpx;
+ border-radius: 8rpx;
+ gap: 20rpx;
+ overflow: hidden;
+ image {
+ width: 100%;
+ }
+ }
+ }
+ .idcard {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ .idcard-image {
+ flex: 1;
+ height: 216rpx;
+ overflow: hidden;
+ border-radius: 8rpx;
+ border: 1rpx solid #E5E5E5;
+ &:first-child {
+ margin-right: 22rpx;
+ }
+ image {
+ width: 100%;
+ height: 100%;
+ }
+ }
+ }
+ .list-item-value {
+ flex: 1;
+ text-align: right;
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #222222;
+ }
+ }
+ }
.head {
width: 100%;
height: 248rpx;
@@ -32,7 +393,6 @@
flex-direction: column;
align-items: center;
justify-content: center;
- background: rgba(255,114,0,0.08);
.head-top {
display: flex;
align-items: center;
@@ -45,7 +405,6 @@
text {
font-weight: 600;
font-size: 40rpx;
- color: #FA8010;
}
}
.head-bottom {
@@ -54,6 +413,51 @@
color: #333333;
margin-top: 34rpx;
}
+ &.head-0 {
+ background: rgba(255,114,0,0.08);
+ .head-top text {
+ color: #FA8010;
+ }
+ }
+ &.head-1 {
+ background: rgba(0,211,113,0.1);
+ .head-top text {
+ color: #00D371;
+ }
+ }
+ &.head-3 {
+ background: rgba(0,211,113,0.1);
+ .head-top text {
+ color: #00D371;
+ }
+ }
+ &.head-2 {
+ background: rgba(255,0,0,0.08);
+ .head-top text {
+ color: #FF0000;
+ }
+ }
+ }
+ .footer-btn {
+ width: 100%;
+ padding: 20rpx 30rpx;
+ box-sizing: border-box;
+ background: #fff;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ .pay-btn, .reapply-btn {
+ width: 100%;
+ height: 88rpx;
+ background: #10B2FA;
+ border-radius: 44rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-weight: 500;
+ font-size: 32rpx;
+ color: #fff;
+ }
}
}
</style>
\ No newline at end of file
diff --git a/small-program/pages/mine/mine.vue b/small-program/pages/mine/mine.vue
index 61e3d55..9a29717 100644
--- a/small-program/pages/mine/mine.vue
+++ b/small-program/pages/mine/mine.vue
@@ -49,8 +49,8 @@
<view v-for="item in menuList" :key="item.label" class="menu-row" @click="handleMenuClick(item)">
<text class="menu-label">{{ item.label }}</text>
<view class="right-icon">
- <text v-if="item.label === '闂ㄥ簵鍏ラ┗'" :class="{ 'status-red': userInfo.shopAuditStatus === 1 || userInfo.shopAuditStatus === 2 }">
- {{ userInfo.shopAuditStatus === 0 ? '瀹℃牳涓�' : userInfo.shopAuditStatus === 1 ? '瀹℃牳閫氳繃锛岃鏀粯鎶奸噾' : userInfo.shopAuditStatus === 2 ? '瀹℃牳鏈�氳繃' : '鐢宠鍏ラ┗' }}
+ <text v-if="['闂ㄥ簵鍏ラ┗','闂ㄥ簵淇℃伅'].includes(item.label)" :class="{ 'status-red': userInfo.shopAuditStatus === 1 || userInfo.shopAuditStatus === 2 }">
+ {{ userInfo.shopAuditStatus === 0 ? '瀹℃牳涓�' : userInfo.shopAuditStatus === 1 ? '瀹℃牳閫氳繃锛岃鏀粯鎶奸噾' : userInfo.shopAuditStatus === 2 ? '瀹℃牳鏈�氳繃' : userInfo.shopAuditStatus === 3 ? '闂ㄥ簵宸插叆椹�' : '' }}
</text>
<u-icon name="arrow-right" size="18" color="#B5BBC5"></u-icon>
</view>
@@ -88,6 +88,9 @@
async onShow() {
await this.$onLaunched
if (this.userInfo) {
+ if (this.userInfo.shopAuditStatus === 3) {
+ this.menuList[0].label = '闂ㄥ簵淇℃伅'
+ }
this.getOrderNum()
}
},
@@ -104,7 +107,7 @@
'瑙勮寖椤荤煡': '/pages/rich-text/rich-text?type=serverIntroduce',
'鍏充簬鎴戜滑': '/pages/rich-text/rich-text?type=about'
}
- if (item.label === '闂ㄥ簵鍏ラ┗' && [0,1,2].includes(this.userInfo.shopAuditStatus)) {
+ if (['闂ㄥ簵鍏ラ┗','闂ㄥ簵淇℃伅'].includes(item.label) && [0,1,2,3].includes(this.userInfo.shopAuditStatus)) {
uni.navigateTo({
url: '/pages/details-entry/details-entry'
})
diff --git a/small-program/pages/store-apply/store-apply.vue b/small-program/pages/store-apply/store-apply.vue
index 698109b..6e22773 100644
--- a/small-program/pages/store-apply/store-apply.vue
+++ b/small-program/pages/store-apply/store-apply.vue
@@ -27,7 +27,7 @@
<view class="form-group select-group">
<view class="label-row"><text class="label">鎵�鍦ㄥ煄甯�</text><text class="required">*</text></view>
<view class="select-row" @click="showAreaPicker = true">
- <text class="select-text" :class="{ placeholder: !form.areaName }">{{ form.areaName || '璇烽�夋嫨鐪佸競鍖�' }}</text>
+ <text class="select-text" :class="{ placeholder: !fullAreaName }">{{ fullAreaName || '璇烽�夋嫨鐪佸競鍖�' }}</text>
<u-icon name="arrow-right" size="18" color="#9FA6B2"></u-icon>
</view>
</view>
@@ -140,6 +140,12 @@
</view>
<view class="divider"></view>
+ <view class="form-group compact-group">
+ <view class="label-row"><text class="label">鏀粯瀹濆鍚�</text><text class="required">*</text></view>
+ <input class="text-input" v-model="form.aliName" placeholder="璇疯緭鍏ユ敮浠樺疂濮撳悕" placeholder-class="placeholder" />
+ </view>
+ <view class="divider"></view>
+
<view class="upload-section subject-upload-section">
<view class="upload-title-row">
<view class="label-row"><text class="label">韬唤璇佹鍙嶉潰</text><text class="required">*</text></view>
@@ -205,6 +211,12 @@
<view class="divider"></view>
<view class="form-group compact-group">
+ <view class="label-row"><text class="label">鏀粯瀹濆鍚�</text><text class="required">*</text></view>
+ <input class="text-input" v-model="form.aliName" placeholder="璇疯緭鍏ユ敮浠樺疂濮撳悕" placeholder-style="color: #c1c7d0;" />
+ </view>
+ <view class="divider"></view>
+
+ <view class="form-group compact-group">
<view class="label-row"><text class="label">娉曚汉韬唤璇佸彿</text><text class="required">*</text></view>
<input class="text-input" v-model="form.legalPersonCard" placeholder="璇疯緭鍏ユ硶浜鸿韩浠借瘉鍙风爜" placeholder-style="color: #c1c7d0;" />
</view>
@@ -259,7 +271,11 @@
import { mapState } from 'vuex'
export default {
computed: {
- ...mapState(['userInfo'])
+ ...mapState(['userInfo']),
+ fullAreaName() {
+ const arr = [this.form.provinceName, this.form.cityName, this.form.areaName].filter(Boolean)
+ return arr.join('/')
+ }
},
data() {
return {
@@ -267,6 +283,9 @@
telephone: '',
companyType: 0,
name: '',
+ provinceName: '',
+ cityName: '',
+ areaName: '',
areaId: '',
longitude: '',
latitude: '',
@@ -286,10 +305,12 @@
legalPersonName: '',
legalPersonPhone: '',
aliAccount: '',
+ aliName: '',
businessImg: ''
},
previewMode: 'filled',
+ imgPrefix: '',
currentStep: 1,
qualificationType: 'company',
showAreaPicker: false,
@@ -364,6 +385,14 @@
uni.showToast({ title: '璇蜂笂浼犺韩浠借瘉鍥藉窘闈�', icon: 'none' })
return
}
+ if (!this.form.aliAccount) {
+ uni.showToast({ title: '璇疯緭鍏ヤ釜浜烘敮浠樺疂璐﹀彿', icon: 'none' })
+ return
+ }
+ if (!this.form.aliName) {
+ uni.showToast({ title: '璇疯緭鍏ユ敮浠樺疂濮撳悕', icon: 'none' })
+ return
+ }
if (!this.form.laborContractImgs || this.form.laborContractImgs.length === 0) {
uni.showToast({ title: '璇蜂笂浼犲姵鍔ㄥ悎鍚�', icon: 'none' })
return
@@ -379,6 +408,10 @@
}
if (!this.form.aliAccount) {
uni.showToast({ title: '璇疯緭鍏ヤ紒涓氭敮浠樺疂璐﹀彿', icon: 'none' })
+ return
+ }
+ if (!this.form.aliName) {
+ uni.showToast({ title: '璇疯緭鍏ユ敮浠樺疂濮撳悕', icon: 'none' })
return
}
if (!this.form.legalPersonCard) {
@@ -417,9 +450,12 @@
if (res.code === 200 && res.data) {
const data = res.data
const imgPrefix = data.imgPrefix || ''
+ this.imgPrefix = data.imgPrefix || ''
this.form.name = data.name || ''
- this.form.areaId = data.areaId || ''
+ this.form.provinceName = data.provinceName || ''
+ this.form.cityName = data.cityName || ''
this.form.areaName = data.areaName || ''
+ this.form.areaId = data.areaId || ''
this.form.address = data.address || ''
this.form.longitude = data.longitude || ''
this.form.latitude = data.latitude || ''
@@ -427,63 +463,44 @@
this.form.linkPhone = data.linkPhone || ''
this.form.idcard = data.idcard || ''
this.form.aliAccount = data.aliAccount || ''
+ this.form.aliName = data.aliName || ''
this.form.companyType = data.companyType || 0
this.form.telephone = data.telephone || this.userInfo.telephone || ''
this.form.legalPersonName = data.legalPersonName || ''
this.form.legalPersonPhone = data.legalPersonPhone || ''
this.qualificationType = data.companyType === 0 ? 'personal' : 'company'
if (data.storeFrontImgs) {
- let storeFrontImgs = data.storeFrontImgs
- if (typeof storeFrontImgs === 'string') {
- storeFrontImgs = storeFrontImgs.split(',')
- }
- this.storeFrontImages = storeFrontImgs
- this.uploadedImagesStoreFront = storeFrontImgs.map(url => ({ url: imgPrefix + url }))
- this.form.storeFrontImgs = storeFrontImgs
+ this.storeFrontImages = data.storeFrontImgUrls
+ this.uploadedImagesStoreFront = data.storeFrontImgUrls.map(url => ({ url }))
+ this.form.storeFrontImgs = data.storeFrontImgs
}
if (data.storeInteriorImgs) {
- let storeInteriorImgs = data.storeInteriorImgs
- if (typeof storeInteriorImgs === 'string') {
- storeInteriorImgs = storeInteriorImgs.split(',')
- }
- this.idCardImages = storeInteriorImgs
- this.uploadedImagesIdCard = storeInteriorImgs.map(url => ({ url: imgPrefix + url }))
- this.form.storeInteriorImgs = storeInteriorImgs
+ this.idCardImages = data.storeInteriorImgUrls
+ this.uploadedImagesIdCard = data.storeInteriorImgUrls.map(url => ({ url }))
+ this.form.storeInteriorImgs = data.storeInteriorImgs
}
if (data.otherMaterialImgs) {
- let otherMaterialImgs = data.otherMaterialImgs
- if (typeof otherMaterialImgs === 'string') {
- otherMaterialImgs = otherMaterialImgs.split(',')
- }
- this.permitImages = otherMaterialImgs
- this.uploadedImagesPermit = otherMaterialImgs.map(url => ({ url: imgPrefix + url }))
- this.form.otherMaterialImgs = otherMaterialImgs
+ this.permitImages = data.otherMaterialImgUrls
+ this.uploadedImagesPermit = data.otherMaterialImgUrls.map(url => ({ url }))
+ this.form.otherMaterialImgs = data.otherMaterialImgs
}
- this.form.idcardImg = data.idcardImg ? imgPrefix + data.idcardImg : ''
- this.form.idcardImgBack = data.idcardImgBack ? imgPrefix + data.idcardImgBack : ''
+ this.form.idcardImg = data.idcardImg || ''
+ this.form.idcardImgBack = data.idcardImgBack || ''
if (data.laborContractImgs) {
- let laborContractImgs = data.laborContractImgs
- if (typeof laborContractImgs === 'string') {
- laborContractImgs = laborContractImgs.split(',')
- }
- this.laborContractImages = laborContractImgs
- this.uploadedLaborContractImages = laborContractImgs.map(url => ({ url: imgPrefix + url }))
- this.form.laborContractImgs = laborContractImgs
+ this.laborContractImages = data.laborContractImgUrls
+ this.uploadedLaborContractImages = data.laborContractImgUrls.map(url => ({ url }))
+ this.form.laborContractImgs = data.laborContractImgs
}
if (data.socialSecurityImgs) {
- let socialSecurityImgs = data.socialSecurityImgs
- if (typeof socialSecurityImgs === 'string') {
- socialSecurityImgs = socialSecurityImgs.split(',')
- }
- this.socialSecurityImages = socialSecurityImgs
- this.uploadedSocialSecurityImages = socialSecurityImgs.map(url => ({ url: imgPrefix + url }))
- this.form.socialSecurityImgs = socialSecurityImgs
+ this.socialSecurityImages = data.socialSecurityImgUrls
+ this.uploadedSocialSecurityImages = data.socialSecurityImgUrls.map(url => ({ url }))
+ this.form.socialSecurityImgs = data.socialSecurityImgs
}
- this.form.legalPersonCard = data.legalPersonCard ? imgPrefix + data.legalPersonCard : ''
- this.form.legalPersonCardBack = data.legalPersonCardBack ? imgPrefix + data.legalPersonCardBack : ''
- this.form.businessImg = data.businessImg ? imgPrefix + data.businessImg : ''
+ this.form.legalPersonCard = data.legalPersonCard || ''
+ this.form.legalPersonCardBack = data.legalPersonCardBack || ''
+ this.form.businessImg = data.businessImg || ''
if (data.businessImg) {
- this.businessImages = [data.businessImg]
+ this.businessImages = [data.businessImgUrl]
}
}
} catch (error) {
@@ -891,11 +908,10 @@
},
getShortPath(url) {
if (!url) return ''
- const baseUrl = this.$baseUrl || ''
if (url.startsWith('http')) {
- return url
+ return url.replace(this.imgPrefix, '')
}
- return url.replace(baseUrl, '')
+ return url
},
getFullPath(url) {
if (!url) return ''
diff --git a/small-program/static/icon/address_ic_edit@2x.png b/small-program/static/icon/address_ic_edit@2x.png
new file mode 100644
index 0000000..2d09fa2
--- /dev/null
+++ b/small-program/static/icon/address_ic_edit@2x.png
Binary files differ
diff --git a/small-program/static/icon/ic_fail@2x.png b/small-program/static/icon/ic_fail@2x.png
new file mode 100644
index 0000000..29b6f6d
--- /dev/null
+++ b/small-program/static/icon/ic_fail@2x.png
Binary files differ
diff --git a/small-program/static/icon/ic_pass@2x.png b/small-program/static/icon/ic_pass@2x.png
new file mode 100644
index 0000000..2615b40
--- /dev/null
+++ b/small-program/static/icon/ic_pass@2x.png
Binary files differ
diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/address/address.wxss b/small-program/unpackage/dist/dev/mp-weixin/pages/address/address.wxss
index 98eb8a5..ac39185 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/address/address.wxss
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/address/address.wxss
@@ -41,7 +41,7 @@
display: flex;
align-items: center;
justify-content: center;
- background: #004096;
+ background: linear-gradient(270deg, #66F8E4 0%, #15B9F7 100%), #10B2FA;
border-radius: 44rpx;
position: fixed;
left: 30rpx;
diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxml b/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxml
index 42e616d..9a20e36 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxml
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxml
@@ -1 +1 @@
-<view class="container data-v-1ce3ee54"><view class="head data-v-1ce3ee54"><view class="head-top data-v-1ce3ee54"><image src="/static/images/ic_renzhengzhong@2x.png" mode="widthFix" class="data-v-1ce3ee54"></image><text class="data-v-1ce3ee54">骞冲彴瀹℃牳涓�</text></view><view class="head-bottom data-v-1ce3ee54"> 瀹℃牳缁撴灉灏嗛�氳繃鐭俊/璁㈤槄娑堟伅閫氱煡鎮� </view></view></view>
\ No newline at end of file
+<view class="container data-v-1ce3ee54"><view class="{{['head','data-v-1ce3ee54','head-'+shopAuditStatus]}}"><view class="head-top data-v-1ce3ee54"><image src="{{statusIcon}}" mode="widthFix" class="data-v-1ce3ee54"></image><text class="data-v-1ce3ee54">{{statusText}}</text></view><view class="head-bottom data-v-1ce3ee54">{{''+statusBottomText+''}}</view></view><view class="list data-v-1ce3ee54"><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">娉ㄥ唽鎵嬫満鍙�</view><view class="list-item-value data-v-1ce3ee54">{{form.telephone}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">闂ㄥ簵鍚嶇О</view><view class="list-item-value data-v-1ce3ee54">{{form.name}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">闂ㄥ簵绫诲瀷</view><view class="list-item-value data-v-1ce3ee54">{{form.companyType===0?'涓汉':'浼佷笟'}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">鎵�鍦ㄥ煄甯�</view><view class="list-item-value data-v-1ce3ee54">{{fullAreaName}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">闂ㄥ簵鍦板潃</view><view class="list-item-value data-v-1ce3ee54">{{form.address}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">鑱旂郴浜�</view><view class="list-item-value data-v-1ce3ee54">{{form.linkName}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">鑱旂郴浜虹數璇�</view><view class="list-item-value data-v-1ce3ee54">{{form.linkPhone}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">鑱旂郴浜鸿韩浠借瘉</view><view class="list-item-value data-v-1ce3ee54">{{form.idcard}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">鏀粯瀹濊处鍙�</view><view class="list-item-value data-v-1ce3ee54">{{form.aliAccount}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">鏀粯瀹濆鍚�</view><view class="list-item-value data-v-1ce3ee54">{{form.aliName}}</view></view><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">韬唤璇佹鍙嶉潰</view><view class="idcard data-v-1ce3ee54"><block wx:if="{{form.idcardImg}}"><view data-event-opts="{{[['tap',[['previewImage',['$0'],['form.idcardImg']]]]]}}" class="idcard-image data-v-1ce3ee54" bindtap="__e"><image src="{{$root.m0}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block><block wx:if="{{form.idcardImgBack}}"><view data-event-opts="{{[['tap',[['previewImage',['$0'],['form.idcardImgBack']]]]]}}" class="idcard-image data-v-1ce3ee54" bindtap="__e"><image src="{{$root.m1}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">闂ㄥ簵闂ㄥご鐓х墖</view><view class="imgList data-v-1ce3ee54"><block wx:for="{{$root.l0}}" wx:for-item="img" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['previewImage',['$0'],[[['form.storeFrontImgs','',index]]]]]]]}}" class="imgItem data-v-1ce3ee54" bindtap="__e"><image src="{{img.m2}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">闂ㄥ簵鍐呴儴鐓х墖</view><view class="imgList data-v-1ce3ee54"><block wx:for="{{$root.l1}}" wx:for-item="img" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['previewImage',['$0'],[[['form.storeInteriorImgs','',index]]]]]]]}}" class="imgItem data-v-1ce3ee54" bindtap="__e"><image src="{{img.m3}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">鍏朵粬鏉愭枡</view><view class="imgList data-v-1ce3ee54"><block wx:for="{{$root.l2}}" wx:for-item="img" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['previewImage',['$0'],[[['form.otherMaterialImgs','',index]]]]]]]}}" class="imgItem data-v-1ce3ee54" bindtap="__e"><image src="{{img.m4}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view><block wx:if="{{form.companyType===0}}"><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">鏈夋晥鍔冲伐鍚堝悓</view><view class="imgList data-v-1ce3ee54"><block wx:for="{{$root.l3}}" wx:for-item="img" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['previewImage',['$0'],[[['form.laborContractImgs','',index]]]]]]]}}" class="imgItem data-v-1ce3ee54" bindtap="__e"><image src="{{img.m5}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">鏈夋晥绀句繚缂寸撼璇佹槑</view><view class="imgList data-v-1ce3ee54"><block wx:for="{{$root.l4}}" wx:for-item="img" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['previewImage',['$0'],[[['form.socialSecurityImgs','',index]]]]]]]}}" class="imgItem data-v-1ce3ee54" bindtap="__e"><image src="{{img.m6}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view></block><block wx:else><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">娉曚汉濮撳悕</view><view class="list-item-value data-v-1ce3ee54">{{form.legalPersonName}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">浼佷笟鏀粯瀹濊处鍙�</view><view class="list-item-value data-v-1ce3ee54">{{form.aliAccount}}</view></view><view class="list-item data-v-1ce3ee54"><view class="list-item-label data-v-1ce3ee54">娉曚汉韬唤璇佸彿</view><view class="list-item-value data-v-1ce3ee54">{{form.legalPersonCardNo}}</view></view><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">娉曚汉韬唤璇佹鍙嶉潰</view><view class="idcard data-v-1ce3ee54"><block wx:if="{{form.legalPersonCard}}"><view data-event-opts="{{[['tap',[['previewImage',['$0'],['form.legalPersonCard']]]]]}}" class="idcard-image data-v-1ce3ee54" bindtap="__e"><image src="{{$root.m7}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block><block wx:if="{{form.legalPersonCardBack}}"><view data-event-opts="{{[['tap',[['previewImage',['$0'],['form.legalPersonCardBack']]]]]}}" class="idcard-image data-v-1ce3ee54" bindtap="__e"><image src="{{$root.m8}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view><view class="list-item data-v-1ce3ee54" style="flex-direction:column;align-items:flex-start;"><view class="list-item-label data-v-1ce3ee54" style="margin-bottom:30rpx;">钀ヤ笟鎵х収</view><view class="imgList data-v-1ce3ee54"><block wx:if="{{form.businessImg}}"><view data-event-opts="{{[['tap',[['previewImage',['$0'],['form.businessImg']]]]]}}" class="imgItem data-v-1ce3ee54" bindtap="__e"><image src="{{$root.m9}}" mode="aspectFill" class="data-v-1ce3ee54"></image></view></block></view></view></block></view><block wx:if="{{shopAuditStatus===1}}"><view class="footer-btn data-v-1ce3ee54"><view data-event-opts="{{[['tap',[['goToPay',['$event']]]]]}}" class="pay-btn data-v-1ce3ee54" bindtap="__e">{{"鏀粯鎶奸噾 锟�"+form.depositAmount}}</view></view></block><block wx:if="{{shopAuditStatus===2}}"><view class="footer-btn data-v-1ce3ee54"><view data-event-opts="{{[['tap',[['goToReapply',['$event']]]]]}}" class="reapply-btn data-v-1ce3ee54" bindtap="__e">閲嶆柊璁よ瘉</view></view></block></view>
\ No newline at end of file
diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxss b/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxss
index 848f5ec..b44a6a6 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxss
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/details-entry/details-entry.wxss
@@ -27,6 +27,70 @@
/* 鏂囩珷鍦烘櫙鐩稿叧 */
.container.data-v-1ce3ee54 {
width: 100%;
+ padding-bottom: 140rpx;
+}
+.container .list.data-v-1ce3ee54 {
+ width: 100%;
+ padding: 0 30rpx;
+ box-sizing: border-box;
+}
+.container .list .list-item.data-v-1ce3ee54 {
+ width: 100%;
+ padding: 30rpx 0;
+ box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ border-bottom: 1rpx solid #E5E5E5;
+}
+.container .list .list-item .list-item-label.data-v-1ce3ee54 {
+ width: 245rpx;
+ flex-shrink: 0;
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #777777;
+}
+.container .list .list-item .imgList.data-v-1ce3ee54 {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ flex-wrap: wrap;
+}
+.container .list .list-item .imgList .imgItem.data-v-1ce3ee54 {
+ width: 144rpx;
+ height: 144rpx;
+ border-radius: 8rpx;
+ gap: 20rpx;
+ overflow: hidden;
+}
+.container .list .list-item .imgList .imgItem image.data-v-1ce3ee54 {
+ width: 100%;
+}
+.container .list .list-item .idcard.data-v-1ce3ee54 {
+ width: 100%;
+ display: flex;
+ align-items: center;
+}
+.container .list .list-item .idcard .idcard-image.data-v-1ce3ee54 {
+ flex: 1;
+ height: 216rpx;
+ overflow: hidden;
+ border-radius: 8rpx;
+ border: 1rpx solid #E5E5E5;
+}
+.container .list .list-item .idcard .idcard-image.data-v-1ce3ee54:first-child {
+ margin-right: 22rpx;
+}
+.container .list .list-item .idcard .idcard-image image.data-v-1ce3ee54 {
+ width: 100%;
+ height: 100%;
+}
+.container .list .list-item .list-item-value.data-v-1ce3ee54 {
+ flex: 1;
+ text-align: right;
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #222222;
}
.container .head.data-v-1ce3ee54 {
width: 100%;
@@ -35,7 +99,6 @@
flex-direction: column;
align-items: center;
justify-content: center;
- background: rgba(255, 114, 0, 0.08);
}
.container .head .head-top.data-v-1ce3ee54 {
display: flex;
@@ -50,7 +113,6 @@
.container .head .head-top text.data-v-1ce3ee54 {
font-weight: 600;
font-size: 40rpx;
- color: #FA8010;
}
.container .head .head-bottom.data-v-1ce3ee54 {
font-weight: 400;
@@ -58,4 +120,49 @@
color: #333333;
margin-top: 34rpx;
}
+.container .head.head-0.data-v-1ce3ee54 {
+ background: rgba(255, 114, 0, 0.08);
+}
+.container .head.head-0 .head-top text.data-v-1ce3ee54 {
+ color: #FA8010;
+}
+.container .head.head-1.data-v-1ce3ee54 {
+ background: rgba(0, 211, 113, 0.1);
+}
+.container .head.head-1 .head-top text.data-v-1ce3ee54 {
+ color: #00D371;
+}
+.container .head.head-3.data-v-1ce3ee54 {
+ background: rgba(0, 211, 113, 0.1);
+}
+.container .head.head-3 .head-top text.data-v-1ce3ee54 {
+ color: #00D371;
+}
+.container .head.head-2.data-v-1ce3ee54 {
+ background: rgba(255, 0, 0, 0.08);
+}
+.container .head.head-2 .head-top text.data-v-1ce3ee54 {
+ color: #FF0000;
+}
+.container .footer-btn.data-v-1ce3ee54 {
+ width: 100%;
+ padding: 20rpx 30rpx;
+ box-sizing: border-box;
+ background: #fff;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+}
+.container .footer-btn .pay-btn.data-v-1ce3ee54, .container .footer-btn .reapply-btn.data-v-1ce3ee54 {
+ width: 100%;
+ height: 88rpx;
+ background: #10B2FA;
+ border-radius: 44rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-weight: 500;
+ font-size: 32rpx;
+ color: #fff;
+}
diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.js b/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.js
index 8f2131f..32b3219 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.js
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.js
@@ -125,6 +125,22 @@
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
+ var l0 = _vm.__map(_vm.menuList, function (item, __i0__) {
+ var $orig = _vm.__get_orig(item)
+ var g0 = ["闂ㄥ簵鍏ラ┗", "闂ㄥ簵淇℃伅"].includes(item.label)
+ return {
+ $orig: $orig,
+ g0: g0,
+ }
+ })
+ _vm.$mp.data = Object.assign(
+ {},
+ {
+ $root: {
+ l0: l0,
+ },
+ }
+ )
}
var recyclableRender = false
var staticRenderFns = []
@@ -213,6 +229,9 @@
return _this.$onLaunched;
case 2:
if (_this.userInfo) {
+ if (_this.userInfo.shopAuditStatus === 3) {
+ _this.menuList[0].label = '闂ㄥ簵淇℃伅';
+ }
_this.getOrderNum();
}
case 3:
@@ -236,7 +255,7 @@
'瑙勮寖椤荤煡': '/pages/rich-text/rich-text?type=serverIntroduce',
'鍏充簬鎴戜滑': '/pages/rich-text/rich-text?type=about'
};
- if (item.label === '闂ㄥ簵鍏ラ┗' && [0, 1, 2].includes(this.userInfo.shopAuditStatus)) {
+ if (['闂ㄥ簵鍏ラ┗', '闂ㄥ簵淇℃伅'].includes(item.label) && [0, 1, 2, 3].includes(this.userInfo.shopAuditStatus)) {
uni.navigateTo({
url: '/pages/details-entry/details-entry'
});
diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.wxml b/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.wxml
index bc0eb8e..66b00c3 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.wxml
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/mine/mine.wxml
@@ -1 +1 @@
-<view class="mine-page data-v-dcbcfe34"><view class="top-bg data-v-dcbcfe34"></view><view class="nav-wrap data-v-dcbcfe34"><view style="{{'width:'+('100%')+';'+('height:'+(statusbarHeight+'px')+';')}}" class="data-v-dcbcfe34"></view><view style="{{'width:'+('100%')+';'+('height:'+(navHeight+'px')+';')}}" class="data-v-dcbcfe34"></view></view><view class="page-scroll data-v-dcbcfe34"><view class="page-content data-v-dcbcfe34"><view class="profile-card data-v-dcbcfe34"><button open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getphonenumber',['$event']]]]]}}" bindgetphonenumber="__e" class="data-v-dcbcfe34">鎺堟潈鎵嬫満鍙�</button><image class="avatar data-v-dcbcfe34" src="{{userInfo.fullCoverImage?userInfo.fullCoverImage:'/static/image/tx@2x.png'}}" mode="widthFix"></image><view class="profile-copy data-v-dcbcfe34"><text class="login-text data-v-dcbcfe34">{{userInfo.nickName||'鐐瑰嚮鐧诲綍'}}</text></view><block wx:if="{{userInfo}}"><view class="profile-tools data-v-dcbcfe34"><view data-event-opts="{{[['tap',[['toSetting',['$event']]]]]}}" class="tool-item data-v-dcbcfe34" bindtap="__e"><image class="tool-icon data-v-dcbcfe34" src="/static/icon/ic_option@2x.png" mode="aspectFit"></image></view><view class="tool-item has-badge data-v-dcbcfe34"><image class="tool-icon data-v-dcbcfe34" src="/static/icon/ic_notice@2x.png" mode="aspectFit"></image><block wx:if="{{userInfo.hasMessage}}"><view class="tool-badge data-v-dcbcfe34"></view></block></view></view></block></view><view class="order-card section-card data-v-dcbcfe34"><view class="section-head data-v-dcbcfe34"><text class="section-title data-v-dcbcfe34">鎴戠殑璁㈠崟</text><view data-event-opts="{{[['tap',[['toAllOrders',['$event']]]]]}}" class="more-wrap data-v-dcbcfe34" bindtap="__e"><text class="more-text data-v-dcbcfe34">鍏ㄩ儴璁㈠崟</text><u-icon vue-id="bae1c640-1" name="arrow-right" size="13" color="#999999" class="data-v-dcbcfe34" bind:__l="__l"></u-icon></view></view><view class="order-grid data-v-dcbcfe34"><block wx:for="{{orderMenus}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toOrderDetail',['$0'],[[['orderMenus','',index,'label']]]]]]]}}" class="order-item data-v-dcbcfe34" bindtap="__e"><image class="order-icon data-v-dcbcfe34" src="{{item.url}}" mode="widthFix"></image><block wx:if="{{item.badge}}"><view class="order-badge data-v-dcbcfe34">{{item.badge}}</view></block><text class="order-label data-v-dcbcfe34">{{item.label}}</text></view></block></view></view><view class="banner-card data-v-dcbcfe34"><image class="banner-image data-v-dcbcfe34" src="/static/image/share@2x.png" mode="widthFix"></image></view><view class="menu-card section-card data-v-dcbcfe34"><block wx:for="{{menuList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="label"><view data-event-opts="{{[['tap',[['handleMenuClick',['$0'],[[['menuList','label',item.label]]]]]]]}}" class="menu-row data-v-dcbcfe34" bindtap="__e"><text class="menu-label data-v-dcbcfe34">{{item.label}}</text><view class="right-icon data-v-dcbcfe34"><block wx:if="{{item.label==='闂ㄥ簵鍏ラ┗'}}"><text class="{{['data-v-dcbcfe34',(userInfo.shopAuditStatus===1||userInfo.shopAuditStatus===2)?'status-red':'']}}">{{''+(userInfo.shopAuditStatus===0?'瀹℃牳涓�':userInfo.shopAuditStatus===1?'瀹℃牳閫氳繃锛岃鏀粯鎶奸噾':userInfo.shopAuditStatus===2?'瀹℃牳鏈�氳繃':'鐢宠鍏ラ┗')+''}}</text></block><u-icon vue-id="{{'bae1c640-2-'+__i0__}}" name="arrow-right" size="18" color="#B5BBC5" class="data-v-dcbcfe34" bind:__l="__l"></u-icon></view></view></block></view></view></view></view>
\ No newline at end of file
+<view class="mine-page data-v-dcbcfe34"><view class="top-bg data-v-dcbcfe34"></view><view class="nav-wrap data-v-dcbcfe34"><view style="{{'width:'+('100%')+';'+('height:'+(statusbarHeight+'px')+';')}}" class="data-v-dcbcfe34"></view><view style="{{'width:'+('100%')+';'+('height:'+(navHeight+'px')+';')}}" class="data-v-dcbcfe34"></view></view><view class="page-scroll data-v-dcbcfe34"><view class="page-content data-v-dcbcfe34"><view class="profile-card data-v-dcbcfe34"><button open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getphonenumber',['$event']]]]]}}" bindgetphonenumber="__e" class="data-v-dcbcfe34">鎺堟潈鎵嬫満鍙�</button><image class="avatar data-v-dcbcfe34" src="{{userInfo.fullCoverImage?userInfo.fullCoverImage:'/static/image/tx@2x.png'}}" mode="widthFix"></image><view class="profile-copy data-v-dcbcfe34"><text class="login-text data-v-dcbcfe34">{{userInfo.nickName||'鐐瑰嚮鐧诲綍'}}</text></view><block wx:if="{{userInfo}}"><view class="profile-tools data-v-dcbcfe34"><view data-event-opts="{{[['tap',[['toSetting',['$event']]]]]}}" class="tool-item data-v-dcbcfe34" bindtap="__e"><image class="tool-icon data-v-dcbcfe34" src="/static/icon/ic_option@2x.png" mode="aspectFit"></image></view><view class="tool-item has-badge data-v-dcbcfe34"><image class="tool-icon data-v-dcbcfe34" src="/static/icon/ic_notice@2x.png" mode="aspectFit"></image><block wx:if="{{userInfo.hasMessage}}"><view class="tool-badge data-v-dcbcfe34"></view></block></view></view></block></view><view class="order-card section-card data-v-dcbcfe34"><view class="section-head data-v-dcbcfe34"><text class="section-title data-v-dcbcfe34">鎴戠殑璁㈠崟</text><view data-event-opts="{{[['tap',[['toAllOrders',['$event']]]]]}}" class="more-wrap data-v-dcbcfe34" bindtap="__e"><text class="more-text data-v-dcbcfe34">鍏ㄩ儴璁㈠崟</text><u-icon vue-id="bae1c640-1" name="arrow-right" size="13" color="#999999" class="data-v-dcbcfe34" bind:__l="__l"></u-icon></view></view><view class="order-grid data-v-dcbcfe34"><block wx:for="{{orderMenus}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toOrderDetail',['$0'],[[['orderMenus','',index,'label']]]]]]]}}" class="order-item data-v-dcbcfe34" bindtap="__e"><image class="order-icon data-v-dcbcfe34" src="{{item.url}}" mode="widthFix"></image><block wx:if="{{item.badge}}"><view class="order-badge data-v-dcbcfe34">{{item.badge}}</view></block><text class="order-label data-v-dcbcfe34">{{item.label}}</text></view></block></view></view><view class="banner-card data-v-dcbcfe34"><image class="banner-image data-v-dcbcfe34" src="/static/image/share@2x.png" mode="widthFix"></image></view><view class="menu-card section-card data-v-dcbcfe34"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="__i0__" wx:key="label"><view data-event-opts="{{[['tap',[['handleMenuClick',['$0'],[[['menuList','label',item.$orig.label]]]]]]]}}" class="menu-row data-v-dcbcfe34" bindtap="__e"><text class="menu-label data-v-dcbcfe34">{{item.$orig.label}}</text><view class="right-icon data-v-dcbcfe34"><block wx:if="{{item.g0}}"><text class="{{['data-v-dcbcfe34',(userInfo.shopAuditStatus===1||userInfo.shopAuditStatus===2)?'status-red':'']}}">{{''+(userInfo.shopAuditStatus===0?'瀹℃牳涓�':userInfo.shopAuditStatus===1?'瀹℃牳閫氳繃锛岃鏀粯鎶奸噾':userInfo.shopAuditStatus===2?'瀹℃牳鏈�氳繃':userInfo.shopAuditStatus===3?'闂ㄥ簵宸插叆椹�':'')+''}}</text></block><u-icon vue-id="{{'bae1c640-2-'+__i0__}}" name="arrow-right" size="18" color="#B5BBC5" class="data-v-dcbcfe34" bind:__l="__l"></u-icon></view></view></block></view></view></view></view>
\ No newline at end of file
diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js b/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js
index 3ef2d47..4c26b89 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.js
@@ -238,13 +238,21 @@
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var _default = {
- computed: _objectSpread({}, (0, _vuex.mapState)(['userInfo'])),
+ computed: _objectSpread(_objectSpread({}, (0, _vuex.mapState)(['userInfo'])), {}, {
+ fullAreaName: function fullAreaName() {
+ var arr = [this.form.provinceName, this.form.cityName, this.form.areaName].filter(Boolean);
+ return arr.join('/');
+ }
+ }),
data: function data() {
return {
form: {
telephone: '',
companyType: 0,
name: '',
+ provinceName: '',
+ cityName: '',
+ areaName: '',
areaId: '',
longitude: '',
latitude: '',
@@ -264,9 +272,11 @@
legalPersonName: '',
legalPersonPhone: '',
aliAccount: '',
+ aliName: '',
businessImg: ''
},
previewMode: 'filled',
+ imgPrefix: '',
currentStep: 1,
qualificationType: 'company',
showAreaPicker: false,
@@ -364,7 +374,7 @@
switch (_context.prev = _context.next) {
case 0:
if (!(_this.form.companyType === 0)) {
- _context.next = 15;
+ _context.next = 21;
break;
}
if (_this.form.idcardImg) {
@@ -387,8 +397,28 @@
});
return _context.abrupt("return");
case 7:
- if (!(!_this.form.laborContractImgs || _this.form.laborContractImgs.length === 0)) {
+ if (_this.form.aliAccount) {
_context.next = 10;
+ break;
+ }
+ uni.showToast({
+ title: '璇疯緭鍏ヤ釜浜烘敮浠樺疂璐﹀彿',
+ icon: 'none'
+ });
+ return _context.abrupt("return");
+ case 10:
+ if (_this.form.aliName) {
+ _context.next = 13;
+ break;
+ }
+ uni.showToast({
+ title: '璇疯緭鍏ユ敮浠樺疂濮撳悕',
+ icon: 'none'
+ });
+ return _context.abrupt("return");
+ case 13:
+ if (!(!_this.form.laborContractImgs || _this.form.laborContractImgs.length === 0)) {
+ _context.next = 16;
break;
}
uni.showToast({
@@ -396,9 +426,9 @@
icon: 'none'
});
return _context.abrupt("return");
- case 10:
+ case 16:
if (!(!_this.form.socialSecurityImgs || _this.form.socialSecurityImgs.length === 0)) {
- _context.next = 13;
+ _context.next = 19;
break;
}
uni.showToast({
@@ -406,12 +436,12 @@
icon: 'none'
});
return _context.abrupt("return");
- case 13:
- _context.next = 30;
+ case 19:
+ _context.next = 39;
break;
- case 15:
+ case 21:
if (_this.form.legalPersonName) {
- _context.next = 18;
+ _context.next = 24;
break;
}
uni.showToast({
@@ -419,9 +449,9 @@
icon: 'none'
});
return _context.abrupt("return");
- case 18:
+ case 24:
if (_this.form.aliAccount) {
- _context.next = 21;
+ _context.next = 27;
break;
}
uni.showToast({
@@ -429,9 +459,19 @@
icon: 'none'
});
return _context.abrupt("return");
- case 21:
+ case 27:
+ if (_this.form.aliName) {
+ _context.next = 30;
+ break;
+ }
+ uni.showToast({
+ title: '璇疯緭鍏ユ敮浠樺疂濮撳悕',
+ icon: 'none'
+ });
+ return _context.abrupt("return");
+ case 30:
if (_this.form.legalPersonCard) {
- _context.next = 24;
+ _context.next = 33;
break;
}
uni.showToast({
@@ -439,9 +479,9 @@
icon: 'none'
});
return _context.abrupt("return");
- case 24:
+ case 33:
if (_this.form.legalPersonCardBack) {
- _context.next = 27;
+ _context.next = 36;
break;
}
uni.showToast({
@@ -449,9 +489,9 @@
icon: 'none'
});
return _context.abrupt("return");
- case 27:
+ case 36:
if (_this.form.businessImg) {
- _context.next = 30;
+ _context.next = 39;
break;
}
uni.showToast({
@@ -459,15 +499,15 @@
icon: 'none'
});
return _context.abrupt("return");
- case 30:
+ case 39:
uni.showLoading({
title: '鎻愪氦涓�...',
mask: true
});
- _context.prev = 31;
- _context.next = 34;
+ _context.prev = 40;
+ _context.next = 43;
return _this.$u.api.applyShop(_this.form);
- case 34:
+ case 43:
res = _context.sent;
uni.hideLoading();
if (res.code === 200) {
@@ -484,28 +524,28 @@
icon: 'none'
});
}
- _context.next = 43;
+ _context.next = 52;
break;
- case 39:
- _context.prev = 39;
- _context.t0 = _context["catch"](31);
+ case 48:
+ _context.prev = 48;
+ _context.t0 = _context["catch"](40);
uni.hideLoading();
uni.showToast({
title: '鎻愪氦澶辫触',
icon: 'none'
});
- case 43:
+ case 52:
case "end":
return _context.stop();
}
}
- }, _callee, null, [[31, 39]]);
+ }, _callee, null, [[40, 48]]);
}))();
},
getMyShopData: function getMyShopData() {
var _this2 = this;
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
- var res, data, imgPrefix, storeFrontImgs, storeInteriorImgs, otherMaterialImgs, laborContractImgs, socialSecurityImgs;
+ var res, data, imgPrefix;
return _regenerator.default.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
@@ -518,9 +558,12 @@
if (res.code === 200 && res.data) {
data = res.data;
imgPrefix = data.imgPrefix || '';
+ _this2.imgPrefix = data.imgPrefix || '';
_this2.form.name = data.name || '';
- _this2.form.areaId = data.areaId || '';
+ _this2.form.provinceName = data.provinceName || '';
+ _this2.form.cityName = data.cityName || '';
_this2.form.areaName = data.areaName || '';
+ _this2.form.areaId = data.areaId || '';
_this2.form.address = data.address || '';
_this2.form.longitude = data.longitude || '';
_this2.form.latitude = data.latitude || '';
@@ -528,83 +571,64 @@
_this2.form.linkPhone = data.linkPhone || '';
_this2.form.idcard = data.idcard || '';
_this2.form.aliAccount = data.aliAccount || '';
+ _this2.form.aliName = data.aliName || '';
_this2.form.companyType = data.companyType || 0;
_this2.form.telephone = data.telephone || _this2.userInfo.telephone || '';
_this2.form.legalPersonName = data.legalPersonName || '';
_this2.form.legalPersonPhone = data.legalPersonPhone || '';
_this2.qualificationType = data.companyType === 0 ? 'personal' : 'company';
if (data.storeFrontImgs) {
- storeFrontImgs = data.storeFrontImgs;
- if (typeof storeFrontImgs === 'string') {
- storeFrontImgs = storeFrontImgs.split(',');
- }
- _this2.storeFrontImages = storeFrontImgs;
- _this2.uploadedImagesStoreFront = storeFrontImgs.map(function (url) {
+ _this2.storeFrontImages = data.storeFrontImgUrls;
+ _this2.uploadedImagesStoreFront = data.storeFrontImgUrls.map(function (url) {
return {
- url: imgPrefix + url
+ url: url
};
});
- _this2.form.storeFrontImgs = storeFrontImgs;
+ _this2.form.storeFrontImgs = data.storeFrontImgs;
}
if (data.storeInteriorImgs) {
- storeInteriorImgs = data.storeInteriorImgs;
- if (typeof storeInteriorImgs === 'string') {
- storeInteriorImgs = storeInteriorImgs.split(',');
- }
- _this2.idCardImages = storeInteriorImgs;
- _this2.uploadedImagesIdCard = storeInteriorImgs.map(function (url) {
+ _this2.idCardImages = data.storeInteriorImgUrls;
+ _this2.uploadedImagesIdCard = data.storeInteriorImgUrls.map(function (url) {
return {
- url: imgPrefix + url
+ url: url
};
});
- _this2.form.storeInteriorImgs = storeInteriorImgs;
+ _this2.form.storeInteriorImgs = data.storeInteriorImgs;
}
if (data.otherMaterialImgs) {
- otherMaterialImgs = data.otherMaterialImgs;
- if (typeof otherMaterialImgs === 'string') {
- otherMaterialImgs = otherMaterialImgs.split(',');
- }
- _this2.permitImages = otherMaterialImgs;
- _this2.uploadedImagesPermit = otherMaterialImgs.map(function (url) {
+ _this2.permitImages = data.otherMaterialImgUrls;
+ _this2.uploadedImagesPermit = data.otherMaterialImgUrls.map(function (url) {
return {
- url: imgPrefix + url
+ url: url
};
});
- _this2.form.otherMaterialImgs = otherMaterialImgs;
+ _this2.form.otherMaterialImgs = data.otherMaterialImgs;
}
- _this2.form.idcardImg = data.idcardImg ? imgPrefix + data.idcardImg : '';
- _this2.form.idcardImgBack = data.idcardImgBack ? imgPrefix + data.idcardImgBack : '';
+ _this2.form.idcardImg = data.idcardImg || '';
+ _this2.form.idcardImgBack = data.idcardImgBack || '';
if (data.laborContractImgs) {
- laborContractImgs = data.laborContractImgs;
- if (typeof laborContractImgs === 'string') {
- laborContractImgs = laborContractImgs.split(',');
- }
- _this2.laborContractImages = laborContractImgs;
- _this2.uploadedLaborContractImages = laborContractImgs.map(function (url) {
+ _this2.laborContractImages = data.laborContractImgUrls;
+ _this2.uploadedLaborContractImages = data.laborContractImgUrls.map(function (url) {
return {
- url: imgPrefix + url
+ url: url
};
});
- _this2.form.laborContractImgs = laborContractImgs;
+ _this2.form.laborContractImgs = data.laborContractImgs;
}
if (data.socialSecurityImgs) {
- socialSecurityImgs = data.socialSecurityImgs;
- if (typeof socialSecurityImgs === 'string') {
- socialSecurityImgs = socialSecurityImgs.split(',');
- }
- _this2.socialSecurityImages = socialSecurityImgs;
- _this2.uploadedSocialSecurityImages = socialSecurityImgs.map(function (url) {
+ _this2.socialSecurityImages = data.socialSecurityImgUrls;
+ _this2.uploadedSocialSecurityImages = data.socialSecurityImgUrls.map(function (url) {
return {
- url: imgPrefix + url
+ url: url
};
});
- _this2.form.socialSecurityImgs = socialSecurityImgs;
+ _this2.form.socialSecurityImgs = data.socialSecurityImgs;
}
- _this2.form.legalPersonCard = data.legalPersonCard ? imgPrefix + data.legalPersonCard : '';
- _this2.form.legalPersonCardBack = data.legalPersonCardBack ? imgPrefix + data.legalPersonCardBack : '';
- _this2.form.businessImg = data.businessImg ? imgPrefix + data.businessImg : '';
+ _this2.form.legalPersonCard = data.legalPersonCard || '';
+ _this2.form.legalPersonCardBack = data.legalPersonCardBack || '';
+ _this2.form.businessImg = data.businessImg || '';
if (data.businessImg) {
- _this2.businessImages = [data.businessImg];
+ _this2.businessImages = [data.businessImgUrl];
}
}
_context2.next = 10;
@@ -1437,11 +1461,10 @@
},
getShortPath: function getShortPath(url) {
if (!url) return '';
- var baseUrl = this.$baseUrl || '';
if (url.startsWith('http')) {
- return url;
+ return url.replace(this.imgPrefix, '');
}
- return url.replace(baseUrl, '');
+ return url;
},
getFullPath: function getFullPath(url) {
if (!url) return '';
diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.wxml b/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.wxml
index 72b2161..d82f99b 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.wxml
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/store-apply/store-apply.wxml
@@ -1 +1 @@
-<view class="store-apply-page data-v-43aee78c"><view class="top-gradient data-v-43aee78c"></view><view class="process-wrap data-v-43aee78c"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{['process-step','data-v-43aee78c',(currentStep===1)?'active':'']}}" bindtap="__e"><view class="step-dot data-v-43aee78c"></view><text class="data-v-43aee78c">闂ㄥ簵淇℃伅</text></view><view class="process-line data-v-43aee78c"></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="{{['process-step','data-v-43aee78c',(currentStep===2)?'active':'']}}" bindtap="__e"><view class="step-dot step-index data-v-43aee78c">2</view><text class="data-v-43aee78c">涓讳綋璧勮川</text></view></view><block wx:if="{{currentStep===1}}"><view class="form-card data-v-43aee78c"><text class="card-title data-v-43aee78c">闂ㄥ簵淇℃伅</text><text class="register-no data-v-43aee78c">{{"娉ㄥ唽鎵嬫満鍙凤細"+(userInfo.telephone||'')}}</text><view class="form-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵鍚嶇О</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ラ棬搴楀悕绉�" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['form']]]]]}}" value="{{form.name}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group select-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鎵�鍦ㄥ煄甯�</text><text class="required data-v-43aee78c">*</text></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="select-row data-v-43aee78c" bindtap="__e"><text class="{{['select-text','data-v-43aee78c',(!form.areaName)?'placeholder':'']}}">{{form.areaName||'璇烽�夋嫨鐪佸競鍖�'}}</text><u-icon vue-id="322e8afa-1" name="arrow-right" size="18" color="#9FA6B2" class="data-v-43aee78c" bind:__l="__l"></u-icon></view></view><block wx:if="{{$root.g0}}"><u-picker vue-id="322e8afa-2" show="{{showAreaPicker}}" confirmColor="#10B2FA" keyName="text" columns="{{areaColumns}}" data-ref="uPicker" data-event-opts="{{[['^confirm',[['confirmArea']]],['^change',[['changeAreaHandler']]],['^cancel',[['e3']]]]}}" bind:confirm="__e" bind:change="__e" bind:cancel="__e" class="data-v-43aee78c vue-ref" bind:__l="__l"></u-picker></block><view class="divider data-v-43aee78c"></view><view class="form-group select-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵鍦板潃</text><text class="required data-v-43aee78c">*</text></view><view data-event-opts="{{[['tap',[['chooseAddress',['$event']]]]]}}" class="select-row data-v-43aee78c" bindtap="__e"><text class="{{['select-text','data-v-43aee78c',(!form.address)?'placeholder':'']}}">{{form.address||'璇烽�夋嫨鍦板潃'}}</text><u-icon vue-id="322e8afa-3" name="arrow-right" size="18" color="#9FA6B2" class="data-v-43aee78c" bind:__l="__l"></u-icon></view></view><view class="divider data-v-43aee78c"></view><view class="form-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鑱旂郴浜�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ヨ仈绯讳汉濮撳悕" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','linkName','$event',[]],['form']]]]]}}" value="{{form.linkName}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group phone-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鑱旂郴浜虹數璇�</text><text class="required data-v-43aee78c">*</text></view><view class="input-with-icon data-v-43aee78c"><input class="text-input data-v-43aee78c" type="number" maxlength="11" placeholder="璇疯緭鍏ヨ仈绯讳汉鐢佃瘽" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','linkPhone','$event',[]],['form']]]]]}}" value="{{form.linkPhone}}" bindinput="__e"/><view class="clear-icon data-v-43aee78c"></view></view></view><view class="divider data-v-43aee78c"></view><view class="form-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鑱旂郴浜鸿韩浠借瘉鍙�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" type="idcard" maxlength="18" placeholder="璇疯緭鍏ヨ仈绯讳汉韬唤璇佸彿" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','idcard','$event',[]],['form']]]]]}}" value="{{form.idcard}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="upload-section data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵闂ㄥご鐓х墖</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseStoreFrontImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedImagesStoreFront}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteStoreFrontImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view><view class="upload-section data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵鍐呴儴鎷涚墝</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseIdCardImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedImagesIdCard}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteIdCardImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view><view class="upload-section last-upload data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><text class="label data-v-43aee78c">鍏朵粬鏉愭枡</text><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['choosePermitImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedImagesPermit}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deletePermitImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view></view></block><block wx:else><view class="form-card data-v-43aee78c"><text class="card-title data-v-43aee78c">涓讳綋璧勮川</text><view class="form-group subject-first-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵绫诲瀷</text><text class="required data-v-43aee78c">*</text></view><view class="switch-row type-switch-row data-v-43aee78c"><view data-event-opts="{{[['tap',[['switchQualification',['personal']]]]]}}" class="{{['switch-pill','data-v-43aee78c',(qualificationType==='personal')?'active':'']}}" bindtap="__e">涓汉</view><view data-event-opts="{{[['tap',[['switchQualification',['company']]]]]}}" class="{{['switch-pill','data-v-43aee78c',(qualificationType==='company')?'active':'']}}" bindtap="__e">浼佷笟</view></view></view><block wx:if="{{qualificationType==='personal'}}"><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鏀粯瀹濊处鍙�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ヤ釜浜烘敮浠樺疂璐﹀彿" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','aliAccount','$event',[]],['form']]]]]}}" value="{{form.aliAccount}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="upload-section subject-upload-section data-v-43aee78c"><view class="upload-title-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">韬唤璇佹鍙嶉潰</text><text class="required data-v-43aee78c">*</text></view></view><view class="upload-grid double-upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseIdCardFront',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.idcardImg}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m0}}" mode="aspectFill"></image></block><block wx:if="{{!form.idcardImg}}"><text class="upload-text data-v-43aee78c">涓婁紶浜哄儚闈�</text></block></view><view data-event-opts="{{[['tap',[['chooseIdCardBack',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.idcardImgBack}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m1}}" mode="aspectFill"></image></block><block wx:if="{{!form.idcardImgBack}}"><text class="upload-text data-v-43aee78c">涓婁紶鍥藉窘闈�</text></block></view></view></view><view class="upload-section subject-upload-section data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鏈夋晥鍔冲姩鍚堝悓</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseLaborContractImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedLaborContractImages}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteLaborContractImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view><view class="upload-section last-upload data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">绀句繚缂寸撼璇佹槑</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseSocialSecurityImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedSocialSecurityImages}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteSocialSecurityImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view></block><block wx:else><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">娉曚汉濮撳悕</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ユ硶浜哄鍚�" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','legalPersonName','$event',[]],['form']]]]]}}" value="{{form.legalPersonName}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">浼佷笟鏀粯瀹濊处鍙�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ヤ紒涓氭敮浠樺疂璐﹀彿" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','aliAccount','$event',[]],['form']]]]]}}" value="{{form.aliAccount}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">娉曚汉韬唤璇佸彿</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ユ硶浜鸿韩浠借瘉鍙风爜" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','legalPersonCard','$event',[]],['form']]]]]}}" value="{{form.legalPersonCard}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="upload-section subject-upload-section data-v-43aee78c"><view class="upload-title-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">娉曚汉韬唤璇佹鍙嶉潰</text><text class="required data-v-43aee78c">*</text></view></view><view class="upload-grid double-upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseLegalPersonCardFront',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.legalPersonCard}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m2}}" mode="aspectFill"></image></block><block wx:if="{{!form.legalPersonCard}}"><text class="upload-text data-v-43aee78c">涓婁紶浜哄儚闈�</text></block></view><view data-event-opts="{{[['tap',[['chooseLegalPersonCardBack',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.legalPersonCardBack}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m3}}" mode="aspectFill"></image></block><block wx:if="{{!form.legalPersonCardBack}}"><text class="upload-text data-v-43aee78c">涓婁紶鍥藉窘闈�</text></block></view></view></view><view class="upload-section last-upload data-v-43aee78c"><view class="upload-title-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">钀ヤ笟鎵х収</text><text class="required data-v-43aee78c">*</text></view></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseBusinessImage',['$event']]]]]}}" class="upload-box license-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.businessImg}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m4}}" mode="aspectFill"></image></block><block wx:if="{{!form.businessImg}}"><text class="upload-text data-v-43aee78c">鐐瑰嚮涓婁紶</text></block></view></view></view></block></view></block><view class="bottom-btn-wrap data-v-43aee78c"><block wx:if="{{currentStep===1}}"><view data-event-opts="{{[['tap',[['goToStep2',['$event']]]]]}}" class="next-btn data-v-43aee78c" bindtap="__e">涓嬩竴姝�</view></block><block wx:else><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="footer-btn footer-plain-btn data-v-43aee78c" bindtap="__e">涓婁竴姝�</view><view data-event-opts="{{[['tap',[['submitApply',['$event']]]]]}}" class="footer-btn footer-primary-btn data-v-43aee78c" bindtap="__e">鎻愪氦鍏ラ┗鐢宠</view></block></view></view>
\ No newline at end of file
+<view class="store-apply-page data-v-43aee78c"><view class="top-gradient data-v-43aee78c"></view><view class="process-wrap data-v-43aee78c"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="{{['process-step','data-v-43aee78c',(currentStep===1)?'active':'']}}" bindtap="__e"><view class="step-dot data-v-43aee78c"></view><text class="data-v-43aee78c">闂ㄥ簵淇℃伅</text></view><view class="process-line data-v-43aee78c"></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="{{['process-step','data-v-43aee78c',(currentStep===2)?'active':'']}}" bindtap="__e"><view class="step-dot step-index data-v-43aee78c">2</view><text class="data-v-43aee78c">涓讳綋璧勮川</text></view></view><block wx:if="{{currentStep===1}}"><view class="form-card data-v-43aee78c"><text class="card-title data-v-43aee78c">闂ㄥ簵淇℃伅</text><text class="register-no data-v-43aee78c">{{"娉ㄥ唽鎵嬫満鍙凤細"+(userInfo.telephone||'')}}</text><view class="form-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵鍚嶇О</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ラ棬搴楀悕绉�" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],['form']]]]]}}" value="{{form.name}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group select-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鎵�鍦ㄥ煄甯�</text><text class="required data-v-43aee78c">*</text></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="select-row data-v-43aee78c" bindtap="__e"><text class="{{['select-text','data-v-43aee78c',(!fullAreaName)?'placeholder':'']}}">{{fullAreaName||'璇烽�夋嫨鐪佸競鍖�'}}</text><u-icon vue-id="322e8afa-1" name="arrow-right" size="18" color="#9FA6B2" class="data-v-43aee78c" bind:__l="__l"></u-icon></view></view><block wx:if="{{$root.g0}}"><u-picker vue-id="322e8afa-2" show="{{showAreaPicker}}" confirmColor="#10B2FA" keyName="text" columns="{{areaColumns}}" data-ref="uPicker" data-event-opts="{{[['^confirm',[['confirmArea']]],['^change',[['changeAreaHandler']]],['^cancel',[['e3']]]]}}" bind:confirm="__e" bind:change="__e" bind:cancel="__e" class="data-v-43aee78c vue-ref" bind:__l="__l"></u-picker></block><view class="divider data-v-43aee78c"></view><view class="form-group select-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵鍦板潃</text><text class="required data-v-43aee78c">*</text></view><view data-event-opts="{{[['tap',[['chooseAddress',['$event']]]]]}}" class="select-row data-v-43aee78c" bindtap="__e"><text class="{{['select-text','data-v-43aee78c',(!form.address)?'placeholder':'']}}">{{form.address||'璇烽�夋嫨鍦板潃'}}</text><u-icon vue-id="322e8afa-3" name="arrow-right" size="18" color="#9FA6B2" class="data-v-43aee78c" bind:__l="__l"></u-icon></view></view><view class="divider data-v-43aee78c"></view><view class="form-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鑱旂郴浜�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ヨ仈绯讳汉濮撳悕" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','linkName','$event',[]],['form']]]]]}}" value="{{form.linkName}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group phone-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鑱旂郴浜虹數璇�</text><text class="required data-v-43aee78c">*</text></view><view class="input-with-icon data-v-43aee78c"><input class="text-input data-v-43aee78c" type="number" maxlength="11" placeholder="璇疯緭鍏ヨ仈绯讳汉鐢佃瘽" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','linkPhone','$event',[]],['form']]]]]}}" value="{{form.linkPhone}}" bindinput="__e"/><view class="clear-icon data-v-43aee78c"></view></view></view><view class="divider data-v-43aee78c"></view><view class="form-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鑱旂郴浜鸿韩浠借瘉鍙�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" type="idcard" maxlength="18" placeholder="璇疯緭鍏ヨ仈绯讳汉韬唤璇佸彿" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','idcard','$event',[]],['form']]]]]}}" value="{{form.idcard}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="upload-section data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵闂ㄥご鐓х墖</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseStoreFrontImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedImagesStoreFront}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteStoreFrontImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view><view class="upload-section data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵鍐呴儴鎷涚墝</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseIdCardImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedImagesIdCard}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteIdCardImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view><view class="upload-section last-upload data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><text class="label data-v-43aee78c">鍏朵粬鏉愭枡</text><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['choosePermitImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedImagesPermit}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deletePermitImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view></view></block><block wx:else><view class="form-card data-v-43aee78c"><text class="card-title data-v-43aee78c">涓讳綋璧勮川</text><view class="form-group subject-first-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">闂ㄥ簵绫诲瀷</text><text class="required data-v-43aee78c">*</text></view><view class="switch-row type-switch-row data-v-43aee78c"><view data-event-opts="{{[['tap',[['switchQualification',['personal']]]]]}}" class="{{['switch-pill','data-v-43aee78c',(qualificationType==='personal')?'active':'']}}" bindtap="__e">涓汉</view><view data-event-opts="{{[['tap',[['switchQualification',['company']]]]]}}" class="{{['switch-pill','data-v-43aee78c',(qualificationType==='company')?'active':'']}}" bindtap="__e">浼佷笟</view></view></view><block wx:if="{{qualificationType==='personal'}}"><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鏀粯瀹濊处鍙�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ヤ釜浜烘敮浠樺疂璐﹀彿" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','aliAccount','$event',[]],['form']]]]]}}" value="{{form.aliAccount}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鏀粯瀹濆鍚�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ユ敮浠樺疂濮撳悕" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','aliName','$event',[]],['form']]]]]}}" value="{{form.aliName}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="upload-section subject-upload-section data-v-43aee78c"><view class="upload-title-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">韬唤璇佹鍙嶉潰</text><text class="required data-v-43aee78c">*</text></view></view><view class="upload-grid double-upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseIdCardFront',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.idcardImg}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m0}}" mode="aspectFill"></image></block><block wx:if="{{!form.idcardImg}}"><text class="upload-text data-v-43aee78c">涓婁紶浜哄儚闈�</text></block></view><view data-event-opts="{{[['tap',[['chooseIdCardBack',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.idcardImgBack}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m1}}" mode="aspectFill"></image></block><block wx:if="{{!form.idcardImgBack}}"><text class="upload-text data-v-43aee78c">涓婁紶鍥藉窘闈�</text></block></view></view></view><view class="upload-section subject-upload-section data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鏈夋晥鍔冲姩鍚堝悓</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseLaborContractImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedLaborContractImages}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteLaborContractImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view><view class="upload-section last-upload data-v-43aee78c"><view class="upload-title-row between-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">绀句繚缂寸撼璇佹槑</text><text class="required data-v-43aee78c">*</text></view><text class="upload-tip data-v-43aee78c">鏈�澶氫笂浼�3寮犵収鐗�</text></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseSocialSecurityImage',['$event']]]]]}}" class="upload-box data-v-43aee78c" bindtap="__e"><image class="upload-icon data-v-43aee78c" src="/static/image/btn_upload@2x.png" mode="widthFix"></image></view><block wx:for="{{uploadedSocialSecurityImages}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['deleteSocialSecurityImage',[index]]]]]}}" class="image-box data-v-43aee78c" bindtap="__e"><image class="preview-image data-v-43aee78c" src="{{item.url}}" mode="aspectFill"></image><text class="image-mark data-v-43aee78c">鍒犳帀</text></view></block></view></view></block><block wx:else><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">娉曚汉濮撳悕</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ユ硶浜哄鍚�" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','legalPersonName','$event',[]],['form']]]]]}}" value="{{form.legalPersonName}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">浼佷笟鏀粯瀹濊处鍙�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ヤ紒涓氭敮浠樺疂璐﹀彿" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','aliAccount','$event',[]],['form']]]]]}}" value="{{form.aliAccount}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">鏀粯瀹濆鍚�</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ユ敮浠樺疂濮撳悕" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','aliName','$event',[]],['form']]]]]}}" value="{{form.aliName}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="form-group compact-group data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">娉曚汉韬唤璇佸彿</text><text class="required data-v-43aee78c">*</text></view><input class="text-input data-v-43aee78c" placeholder="璇疯緭鍏ユ硶浜鸿韩浠借瘉鍙风爜" placeholder-style="color: #c1c7d0;" data-event-opts="{{[['input',[['__set_model',['$0','legalPersonCard','$event',[]],['form']]]]]}}" value="{{form.legalPersonCard}}" bindinput="__e"/></view><view class="divider data-v-43aee78c"></view><view class="upload-section subject-upload-section data-v-43aee78c"><view class="upload-title-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">娉曚汉韬唤璇佹鍙嶉潰</text><text class="required data-v-43aee78c">*</text></view></view><view class="upload-grid double-upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseLegalPersonCardFront',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.legalPersonCard}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m2}}" mode="aspectFill"></image></block><block wx:if="{{!form.legalPersonCard}}"><text class="upload-text data-v-43aee78c">涓婁紶浜哄儚闈�</text></block></view><view data-event-opts="{{[['tap',[['chooseLegalPersonCardBack',['$event']]]]]}}" class="upload-box id-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.legalPersonCardBack}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m3}}" mode="aspectFill"></image></block><block wx:if="{{!form.legalPersonCardBack}}"><text class="upload-text data-v-43aee78c">涓婁紶鍥藉窘闈�</text></block></view></view></view><view class="upload-section last-upload data-v-43aee78c"><view class="upload-title-row data-v-43aee78c"><view class="label-row data-v-43aee78c"><text class="label data-v-43aee78c">钀ヤ笟鎵х収</text><text class="required data-v-43aee78c">*</text></view></view><view class="upload-grid data-v-43aee78c"><view data-event-opts="{{[['tap',[['chooseBusinessImage',['$event']]]]]}}" class="upload-box license-upload-box data-v-43aee78c" bindtap="__e"><block wx:if="{{!form.businessImg}}"><image class="camera-icon data-v-43aee78c" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image></block><block wx:else><image class="preview-image data-v-43aee78c" src="{{$root.m4}}" mode="aspectFill"></image></block><block wx:if="{{!form.businessImg}}"><text class="upload-text data-v-43aee78c">鐐瑰嚮涓婁紶</text></block></view></view></view></block></view></block><view class="bottom-btn-wrap data-v-43aee78c"><block wx:if="{{currentStep===1}}"><view data-event-opts="{{[['tap',[['goToStep2',['$event']]]]]}}" class="next-btn data-v-43aee78c" bindtap="__e">涓嬩竴姝�</view></block><block wx:else><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="footer-btn footer-plain-btn data-v-43aee78c" bindtap="__e">涓婁竴姝�</view><view data-event-opts="{{[['tap',[['submitApply',['$event']]]]]}}" class="footer-btn footer-primary-btn data-v-43aee78c" bindtap="__e">鎻愪氦鍏ラ┗鐢宠</view></block></view></view>
\ No newline at end of file
diff --git a/small-program/unpackage/dist/dev/mp-weixin/project.private.config.json b/small-program/unpackage/dist/dev/mp-weixin/project.private.config.json
index 396d052..8571593 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/project.private.config.json
+++ b/small-program/unpackage/dist/dev/mp-weixin/project.private.config.json
@@ -3,13 +3,27 @@
"miniprogram": {
"list": [
{
- "name": "闂ㄥ簵鍏ラ┗-瀹℃牳璇︽儏",
- "pathName": "pages/details-entry/details-entry",
+ "name": "涓汉淇℃伅",
+ "pathName": "pages/settings/settings",
"query": "",
"scene": null,
"launchMode": "default"
},
{
+ "name": "鍦板潃鍒楄〃",
+ "pathName": "pages/address/address",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "闂ㄥ簵鍏ラ┗-瀹℃牳璇︽儏",
+ "pathName": "pages/details-entry/details-entry",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
"name": "鏀粯鎴愬姛",
"pathName": "pages/payment-success/payment-success",
"query": "orderId=15",
diff --git a/small-program/unpackage/dist/dev/mp-weixin/static/icon/address_ic_edit@2x.png b/small-program/unpackage/dist/dev/mp-weixin/static/icon/address_ic_edit@2x.png
new file mode 100644
index 0000000..2d09fa2
--- /dev/null
+++ b/small-program/unpackage/dist/dev/mp-weixin/static/icon/address_ic_edit@2x.png
Binary files differ
diff --git a/small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_fail@2x.png b/small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_fail@2x.png
new file mode 100644
index 0000000..29b6f6d
--- /dev/null
+++ b/small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_fail@2x.png
Binary files differ
diff --git a/small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_pass@2x.png b/small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_pass@2x.png
new file mode 100644
index 0000000..2615b40
--- /dev/null
+++ b/small-program/unpackage/dist/dev/mp-weixin/static/icon/ic_pass@2x.png
Binary files differ
diff --git a/small-program/utils/http.api.js b/small-program/utils/http.api.js
index 06f77b4..90b4c01 100644
--- a/small-program/utils/http.api.js
+++ b/small-program/utils/http.api.js
@@ -28,6 +28,7 @@
let getOrderDetail = (orderId) => vm.$u.http.get(`web/order/detail/${orderId}`); // 鑾峰彇璁㈠崟璇︽儏
let applyShop = (data = {}) => vm.$u.http.post('web/shopInfo/apply', data); // 闂ㄥ簵鍏ラ┗鐢宠
let getMyShop = (params = {}) => vm.$u.http.get('web/shopInfo/myShop',{ params }); // 鑾峰彇鎴戠殑搴楅摵淇℃伅
+ let payDeposit = (data = {}) => vm.$u.http.post('web/shopInfo/payDeposit', data); // 闂ㄥ簵鍏ラ┗鏀粯
vm.$u.api = {
wxLogin,
@@ -52,7 +53,8 @@
treeList,
getOrderDetail,
applyShop,
- getMyShop
+ getMyShop,
+ payDeposit
};
}
--
Gitblit v1.9.3