| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- import { mockIp, mockReqId } from '../../utils/mock';
- const orderResps = [
- {
- data: {
- saasId: '88888888',
- uid: '88888888205468',
- storeId: '1000',
- skuId: '135691625',
- numOfSku: 1,
- numOfSkuAvailable: 1,
- refundableAmount: '26900',
- refundableDiscountAmount: '0',
- shippingFeeIncluded: '0',
- paidAmountEach: '26900',
- boughtQuantity: 1,
- orderNo: '132222623132329291',
- goodsInfo: {
- goodsName: '迷你便携高颜值蓝牙无线耳机立体声只能触控式操作简约立体声耳机',
- skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2a.png',
- specInfo: [
- {
- specId: '50456',
- specTitle: '颜色',
- specValue: '黑色',
- },
- {
- specId: '50459',
- specTitle: '尺码',
- specValue: '简约款',
- },
- ],
- },
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 36,
- success: true,
- },
- {
- data: {
- saasId: '88888888',
- uid: '88888888205468',
- storeId: '1000',
- skuId: '135676631',
- numOfSku: 1,
- numOfSkuAvailable: 1,
- refundableAmount: '26900',
- refundableDiscountAmount: '0',
- shippingFeeIncluded: '0',
- paidAmountEach: '26900',
- boughtQuantity: 1,
- orderNo: '132222623132329291',
- goodsInfo: {
- goodsName: '白色短袖连衣裙荷叶边裙摆宽松韩版休闲纯白清爽优雅连衣裙',
- skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
- specInfo: [
- {
- specId: '50456',
- specTitle: '颜色',
- specValue: '米色荷叶边',
- },
- {
- specId: '50459',
- specTitle: '尺码',
- specValue: 'S',
- },
- ],
- },
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 36,
- success: true,
- },
- {
- data: {
- saasId: '88888888',
- uid: '88888888205468',
- storeId: '1000',
- skuId: '135691622',
- numOfSku: 1,
- numOfSkuAvailable: 1,
- refundableAmount: '26900',
- refundableDiscountAmount: '0',
- shippingFeeIncluded: '0',
- paidAmountEach: '26900',
- boughtQuantity: 1,
- orderNo: '132222623132329291',
- goodsInfo: {
- goodsName: '腾讯极光盒子4智能网络电视机顶盒6K千兆网络机顶盒4K高分辨率',
- skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3a.png',
- specInfo: [
- {
- specId: '50456',
- specTitle: '颜色',
- specValue: '经典白',
- },
- {
- specId: '50459',
- specTitle: '类型',
- specValue: '经典套装',
- },
- ],
- },
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 36,
- success: true,
- },
- {
- data: {
- saasId: '88888888',
- uid: '88888888205468',
- storeId: '1000',
- skuId: '135676629',
- numOfSku: 1,
- numOfSkuAvailable: 1,
- refundableAmount: '26900',
- refundableDiscountAmount: '0',
- shippingFeeIncluded: '0',
- paidAmountEach: '26900',
- boughtQuantity: 1,
- orderNo: '132222623132329291',
- goodsInfo: {
- goodsName: '带帽午休毯虎年款多功能加厚加大加绒简约多功能午休毯连帽披肩',
- skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
- specInfo: [
- {
- specId: '50456',
- specTitle: '颜色',
- specValue: '浅灰色',
- },
- {
- specId: '50459',
- specTitle: '尺码',
- specValue: 'S',
- },
- ],
- },
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 36,
- success: true,
- },
- {
- data: {
- saasId: '88888888',
- uid: '88888888205468',
- storeId: '1000',
- skuId: '135686631',
- numOfSku: 1,
- numOfSkuAvailable: 1,
- refundableAmount: '26900',
- refundableDiscountAmount: '0',
- shippingFeeIncluded: '0',
- paidAmountEach: '26900',
- boughtQuantity: 1,
- orderNo: '132222623132329291',
- goodsInfo: {
- goodsName: '运动连帽拉链卫衣休闲开衫长袖多色运动细绒面料运动上衣',
- skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17a.png',
- specInfo: [
- {
- specId: '50456',
- specTitle: '颜色',
- specValue: '军绿色',
- },
- {
- specId: '50459',
- specTitle: '尺码',
- specValue: 'XS',
- },
- ],
- },
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 36,
- success: true,
- },
- {
- data: {
- saasId: '88888888',
- uid: '88888888205468',
- storeId: '1000',
- skuId: '19384938948343',
- numOfSku: 1,
- numOfSkuAvailable: 1,
- refundableAmount: '26900',
- refundableDiscountAmount: '0',
- shippingFeeIncluded: '0',
- paidAmountEach: '26900',
- boughtQuantity: 1,
- orderNo: '130169571554503755',
- goodsInfo: {
- goodsName: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤',
- skuImage: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
- specInfo: [
- {
- specId: '50456',
- specTitle: '颜色',
- specValue: '军绿色',
- },
- {
- specId: '50459',
- specTitle: '尺码',
- specValue: 'XS',
- },
- ],
- },
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 36,
- success: true,
- },
- {
- data: {
- saasId: '88888888',
- uid: '88888888205468',
- storeId: '1000',
- skuId: '19384938948343',
- numOfSku: 1,
- numOfSkuAvailable: 1,
- refundableAmount: '26900',
- refundableDiscountAmount: '0',
- shippingFeeIncluded: '0',
- paidAmountEach: '26900',
- boughtQuantity: 1,
- orderNo: '130169571554503755',
- goodsInfo: {
- goodsName: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤',
- skuImage: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
- specInfo: [
- {
- specId: '50456',
- specTitle: '颜色',
- specValue: '军绿色',
- },
- {
- specId: '50459',
- specTitle: '尺码',
- specValue: 'XS',
- },
- ],
- },
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 36,
- success: true,
- },
- ];
- export function genRightsPreview(params) {
- const { orderNo, skuId } = params;
- const resp = orderResps.find((r) => r.data.orderNo === orderNo && r.data.skuId === skuId);
- return resp;
- }
- export function genApplyReasonList(params) {
- const resp = {
- data: {
- saasId: '70000001',
- rightsReasonList: [
- { id: '1', desc: '实际商品与描述不符' },
- { id: '2', desc: '质量问题' },
- { id: '3', desc: '少件/漏发' },
- { id: '4', desc: '包装/商品/污迹/裂痕/变形' },
- { id: '5', desc: '发货太慢' },
- { id: '6', desc: '物流配送太慢' },
- { id: '7', desc: '商家发错货' },
- { id: '8', desc: '不喜欢' },
- ],
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 6,
- success: true,
- };
- // 未收货对应的原因列表
- if (params.rightsReasonType === 'REFUND_MONEY') {
- resp.data.rightsReasonList = [
- { id: '9', desc: '空包裹' },
- { id: '10', desc: '快递/物流一直未送到' },
- { id: '11', desc: '货物破损已拒签' },
- { id: '12', desc: '不喜欢' },
- ];
- }
- return resp;
- }
- export function applyService() {
- const resp = {
- data: {
- rightsNo: '123123423',
- saasId: '70000001',
- uid: '700000011070005',
- storeId: '542',
- result: null,
- },
- code: 'Success',
- msg: null,
- requestId: mockReqId(),
- clientIp: mockIp(),
- rt: 269,
- success: true,
- };
- return resp;
- }
|