批发商城

pifa
LGX 6 months ago
parent b2aa04eea8
commit 8258b1c1e3
  1. BIN
      .DS_Store
  2. 2
      .gitignore
  3. 28
      .hbuilderx/launch.json
  4. 6
      .idea/misc.xml
  5. 8
      .idea/modules.xml
  6. 6
      .idea/vcs.xml
  7. 64
      .idea/workspace.xml
  8. 9
      .idea/yanzong_qianduan.iml
  9. 13
      .vite/deps/_metadata.json
  10. 1
      .vite/deps/package.json
  11. 766
      .vite/deps/weixin-js-sdk.js
  12. 7
      .vite/deps/weixin-js-sdk.js.map
  13. 93
      App.vue
  14. 21
      LICENSE
  15. 0
      README.md
  16. 14
      androidPrivacy.json
  17. 16
      api/StoreManagerCenter.js
  18. 77
      api/activity.js
  19. 57
      api/address.js
  20. 11
      api/article/category.js
  21. 47
      api/article/index.js
  22. 11
      api/balance.js
  23. 11
      api/balance/log.js
  24. 23
      api/bargain/active.js
  25. 17
      api/bargain/checkout.js
  26. 35
      api/bargain/task.js
  27. 22
      api/captcha.js
  28. 35
      api/cart.js
  29. 35
      api/cashier/index.js
  30. 31
      api/category/index.js
  31. 19
      api/checkout.js
  32. 23
      api/comment.js
  33. 31
      api/coupon.js
  34. 17
      api/dealer/apply.js
  35. 17
      api/dealer/capital.js
  36. 17
      api/dealer/index.js
  37. 11
      api/dealer/order.js
  38. 11
      api/dealer/poster.js
  39. 11
      api/dealer/setting.js
  40. 11
      api/dealer/team.js
  41. 17
      api/dealer/withdraw.js
  42. 11
      api/express.js
  43. 35
      api/feedback/index.js
  44. 106
      api/goods/index.js
  45. 11
      api/goods/service.js
  46. 17
      api/groupon/checkout.js
  47. 23
      api/groupon/goods.js
  48. 11
      api/groupon/setting.js
  49. 23
      api/groupon/task.js
  50. 45
      api/help.js
  51. 62
      api/home/index.js
  52. 42
      api/invoice.js
  53. 11
      api/live/room.js
  54. 47
      api/login/index.js
  55. 34
      api/member/index.js
  56. 22
      api/myCoupon.js
  57. 312
      api/newFun.js
  58. 61
      api/order.js
  59. 17
      api/order/comment.js
  60. 13
      api/page.js
  61. 11
      api/points/log.js
  62. 20
      api/preList/index.js
  63. 27
      api/recharge.js
  64. 11
      api/recharge/order.js
  65. 35
      api/refund.js
  66. 17
      api/region.js
  67. 11
      api/setting.js
  68. 17
      api/sharp/checkout.js
  69. 23
      api/sharp/goods.js
  70. 11
      api/sharp/home.js
  71. 17
      api/shop.js
  72. 17
      api/shop/index.js
  73. 17
      api/shop/order.js
  74. 30
      api/squareDynamic/index.js
  75. 13
      api/store.js
  76. 16
      api/tutorial.js
  77. 18
      api/upload.js
  78. 68
      api/user.js
  79. 11
      api/user/coupon.js
  80. 32
      api/user/vip.js
  81. 31
      api/wallet.js
  82. 25
      api/wxofficial.js
  83. 43
      app.scss
  84. 7
      common/constant/index.js
  85. 1
      common/data/region.js
  86. 13
      common/enum/Client.js
  87. 10
      common/enum/coupon/ApplyRange.js
  88. 10
      common/enum/coupon/CouponType.js
  89. 10
      common/enum/coupon/ExpireType.js
  90. 5
      common/enum/coupon/index.js
  91. 11
      common/enum/dealer/apply/ApplyStatus.js
  92. 10
      common/enum/dealer/apply/ApplyType.js
  93. 4
      common/enum/dealer/apply/index.js
  94. 12
      common/enum/dealer/withdraw/ApplyStatus.js
  95. 11
      common/enum/dealer/withdraw/PayType.js
  96. 4
      common/enum/dealer/withdraw/index.js
  97. 85
      common/enum/enum.js
  98. 10
      common/enum/goods/GoodsType.js
  99. 10
      common/enum/goods/SpecType.js
  100. 4
      common/enum/goods/index.js
  101. Some files were not shown because too many files have changed in this diff Show More

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored

@ -0,0 +1,2 @@
/unpackage
/utils/request-1.js

@ -0,0 +1,28 @@
{ // launch.json configurations app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtypelocalremote, localremote
"version": "0.0",
"configurations": [{
"app-plus" :
{
"launchtype" : "remote"
},
"default" :
{
"launchtype" : "remote"
},
"h5" :
{
"launchtype" : "remote"
},
"mp-alipay" :
{
"launchtype" : "remote"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/yanzong_qianduan.iml" filepath="$PROJECT_DIR$/.idea/yanzong_qianduan.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="9bef4bf5-aade-4c02-9012-bbc8fec848f0" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/components/goods-sku-popup/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/components/goods-sku-popup/index.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/cart/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/cart/index.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/goods/components/SkuPopup.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/goods/components/SkuPopup.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/goods/detail.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/goods/detail.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/invoice/indexset.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/invoice/indexset.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/news/park/browsingHistory.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/news/park/browsingHistory.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/news/recycling/confirm1.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/news/recycling/confirm1.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/news/recycling/order.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/news/recycling/order.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/news/recycling/orderList.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/news/recycling/orderList.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/news/user/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/news/user/index.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/news3/ManualEntry.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/news3/ManualEntry.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/news3/seasoningCondimentsRecord.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/news3/seasoningCondimentsRecord.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/order/detail.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/order/detail.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/order/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/order/index.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/order/refund/refund.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/order/refund/refund.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/sureOrder/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/sureOrder/index.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pages/user/index.vue" beforeDir="false" afterPath="$PROJECT_DIR$/pages/user/index.vue" afterDir="false" />
<change beforePath="$PROJECT_DIR$/static/detail/buy.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/static/detail/priceback.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/static/detail/pro.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/static/weixiu.png" beforeDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectId" id="2csvnkKiehY0MbsRW3bGP7kwr64" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"WebServerToolWindowFactoryState": "false",
"last_opened_file_path": "/Users/zhangtianning/work/job_liu/goodCity/yanzong_qianduan",
"vue.rearranger.settings.migration": "true"
}
}]]></component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="9bef4bf5-aade-4c02-9012-bbc8fec848f0" name="Changes" comment="" />
<created>1708913269339</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1708913269339</updated>
<workItem from="1708913291435" duration="655000" />
</task>
<servers />
</component>
</project>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,13 @@
{
"hash": "4ae7f80a",
"browserHash": "741dc287",
"optimized": {
"weixin-js-sdk": {
"src": "../../node_modules/weixin-js-sdk/index.js",
"file": "weixin-js-sdk.js",
"fileHash": "8d88497e",
"needsInterop": true
}
},
"chunks": {}
}

@ -0,0 +1 @@
{"type":"module"}

@ -0,0 +1,766 @@
var __getOwnPropNames = Object.getOwnPropertyNames;
var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
};
// ../../../../www/@hbuilder/yoshop2-pro/node_modules/weixin-js-sdk/index.js
var require_weixin_js_sdk = __commonJS({
"../../../../www/@hbuilder/yoshop2-pro/node_modules/weixin-js-sdk/index.js"(exports, module) {
!function(e, n) {
module.exports = n(e);
}(window, function(o, e) {
if (!o.jWeixin) {
var n, c = {
config: "preVerifyJSAPI",
onMenuShareTimeline: "menu:share:timeline",
onMenuShareAppMessage: "menu:share:appmessage",
onMenuShareQQ: "menu:share:qq",
onMenuShareWeibo: "menu:share:weiboApp",
onMenuShareQZone: "menu:share:QZone",
previewImage: "imagePreview",
getLocation: "geoLocation",
openProductSpecificView: "openProductViewWithPid",
addCard: "batchAddCard",
openCard: "batchViewCard",
chooseWXPay: "getBrandWCPayRequest",
openEnterpriseRedPacket: "getRecevieBizHongBaoRequest",
startSearchBeacons: "startMonitoringBeacons",
stopSearchBeacons: "stopMonitoringBeacons",
onSearchBeacons: "onBeaconsInRange",
consumeAndShareCard: "consumedShareCard",
openAddress: "editAddress"
}, a = function() {
var e2 = {};
for (var n2 in c)
e2[c[n2]] = n2;
return e2;
}(), i = o.document, t = i.title, r = navigator.userAgent.toLowerCase(), s = navigator.platform.toLowerCase(), d = !(!s.match("mac") && !s.match("win")), u = -1 != r.indexOf("wxdebugger"), l = -1 != r.indexOf("micromessenger"), p = -1 != r.indexOf("android"), f = -1 != r.indexOf("iphone") || -1 != r.indexOf("ipad"), m = (n = r.match(/micromessenger\/(\d+\.\d+\.\d+)/) || r.match(/micromessenger\/(\d+\.\d+)/)) ? n[1] : "", g = {
initStartTime: L(),
initEndTime: 0,
preVerifyStartTime: 0,
preVerifyEndTime: 0
}, h = {
version: 1,
appId: "",
initTime: 0,
preVerifyTime: 0,
networkType: "",
isPreVerifyOk: 1,
systemType: f ? 1 : p ? 2 : -1,
clientVersion: m,
url: encodeURIComponent(location.href)
}, v = {}, S = { _completes: [] }, y = { state: 0, data: {} };
O(function() {
g.initEndTime = L();
});
var I = false, _ = [], w = {
config: function(e2) {
B("config", v = e2);
var t2 = false !== v.check;
O(function() {
if (t2)
M(
c.config,
{
verifyJsApiList: C(v.jsApiList),
verifyOpenTagList: C(v.openTagList)
},
function() {
S._complete = function(e4) {
g.preVerifyEndTime = L(), y.state = 1, y.data = e4;
}, S.success = function(e4) {
h.isPreVerifyOk = 0;
}, S.fail = function(e4) {
S._fail ? S._fail(e4) : y.state = -1;
};
var t3 = S._completes;
return t3.push(function() {
!function() {
if (!(d || u || v.debug || m < "6.0.2" || h.systemType < 0)) {
var i3 = new Image();
h.appId = v.appId, h.initTime = g.initEndTime - g.initStartTime, h.preVerifyTime = g.preVerifyEndTime - g.preVerifyStartTime, w.getNetworkType({
isInnerInvoke: true,
success: function(e4) {
h.networkType = e4.networkType;
var n3 = "https://open.weixin.qq.com/sdk/report?v=" + h.version + "&o=" + h.isPreVerifyOk + "&s=" + h.systemType + "&c=" + h.clientVersion + "&a=" + h.appId + "&n=" + h.networkType + "&i=" + h.initTime + "&p=" + h.preVerifyTime + "&u=" + h.url;
i3.src = n3;
}
});
}
}();
}), S.complete = function(e4) {
for (var n3 = 0, i3 = t3.length; n3 < i3; ++n3)
t3[n3]();
S._completes = [];
}, S;
}()
), g.preVerifyStartTime = L();
else {
y.state = 1;
for (var e3 = S._completes, n2 = 0, i2 = e3.length; n2 < i2; ++n2)
e3[n2]();
S._completes = [];
}
}), w.invoke || (w.invoke = function(e3, n2, i2) {
o.WeixinJSBridge && WeixinJSBridge.invoke(e3, x(n2), i2);
}, w.on = function(e3, n2) {
o.WeixinJSBridge && WeixinJSBridge.on(e3, n2);
});
},
ready: function(e2) {
0 != y.state ? e2() : (S._completes.push(e2), !l && v.debug && e2());
},
error: function(e2) {
m < "6.0.2" || (-1 == y.state ? e2(y.data) : S._fail = e2);
},
checkJsApi: function(e2) {
M(
"checkJsApi",
{ jsApiList: C(e2.jsApiList) },
(e2._complete = function(e3) {
if (p) {
var n2 = e3.checkResult;
n2 && (e3.checkResult = JSON.parse(n2));
}
e3 = function(e4) {
var n3 = e4.checkResult;
for (var i2 in n3) {
var t2 = a[i2];
t2 && (n3[t2] = n3[i2], delete n3[i2]);
}
return e4;
}(e3);
}, e2)
);
},
onMenuShareTimeline: function(e2) {
P(
c.onMenuShareTimeline,
{
complete: function() {
M(
"shareTimeline",
{
title: e2.title || t,
desc: e2.title || t,
img_url: e2.imgUrl || "",
link: e2.link || location.href,
type: e2.type || "link",
data_url: e2.dataUrl || ""
},
e2
);
}
},
e2
);
},
onMenuShareAppMessage: function(n2) {
P(
c.onMenuShareAppMessage,
{
complete: function(e2) {
"favorite" === e2.scene ? M("sendAppMessage", {
title: n2.title || t,
desc: n2.desc || "",
link: n2.link || location.href,
img_url: n2.imgUrl || "",
type: n2.type || "link",
data_url: n2.dataUrl || ""
}) : M(
"sendAppMessage",
{
title: n2.title || t,
desc: n2.desc || "",
link: n2.link || location.href,
img_url: n2.imgUrl || "",
type: n2.type || "link",
data_url: n2.dataUrl || ""
},
n2
);
}
},
n2
);
},
onMenuShareQQ: function(e2) {
P(
c.onMenuShareQQ,
{
complete: function() {
M(
"shareQQ",
{
title: e2.title || t,
desc: e2.desc || "",
img_url: e2.imgUrl || "",
link: e2.link || location.href
},
e2
);
}
},
e2
);
},
onMenuShareWeibo: function(e2) {
P(
c.onMenuShareWeibo,
{
complete: function() {
M(
"shareWeiboApp",
{
title: e2.title || t,
desc: e2.desc || "",
img_url: e2.imgUrl || "",
link: e2.link || location.href
},
e2
);
}
},
e2
);
},
onMenuShareQZone: function(e2) {
P(
c.onMenuShareQZone,
{
complete: function() {
M(
"shareQZone",
{
title: e2.title || t,
desc: e2.desc || "",
img_url: e2.imgUrl || "",
link: e2.link || location.href
},
e2
);
}
},
e2
);
},
updateTimelineShareData: function(e2) {
M(
"updateTimelineShareData",
{ title: e2.title, link: e2.link, imgUrl: e2.imgUrl },
e2
);
},
updateAppMessageShareData: function(e2) {
M(
"updateAppMessageShareData",
{ title: e2.title, desc: e2.desc, link: e2.link, imgUrl: e2.imgUrl },
e2
);
},
startRecord: function(e2) {
M("startRecord", {}, e2);
},
stopRecord: function(e2) {
M("stopRecord", {}, e2);
},
onVoiceRecordEnd: function(e2) {
P("onVoiceRecordEnd", e2);
},
playVoice: function(e2) {
M("playVoice", { localId: e2.localId }, e2);
},
pauseVoice: function(e2) {
M("pauseVoice", { localId: e2.localId }, e2);
},
stopVoice: function(e2) {
M("stopVoice", { localId: e2.localId }, e2);
},
onVoicePlayEnd: function(e2) {
P("onVoicePlayEnd", e2);
},
uploadVoice: function(e2) {
M(
"uploadVoice",
{
localId: e2.localId,
isShowProgressTips: 0 == e2.isShowProgressTips ? 0 : 1
},
e2
);
},
downloadVoice: function(e2) {
M(
"downloadVoice",
{
serverId: e2.serverId,
isShowProgressTips: 0 == e2.isShowProgressTips ? 0 : 1
},
e2
);
},
translateVoice: function(e2) {
M(
"translateVoice",
{
localId: e2.localId,
isShowProgressTips: 0 == e2.isShowProgressTips ? 0 : 1
},
e2
);
},
chooseImage: function(e2) {
M(
"chooseImage",
{
scene: "1|2",
count: e2.count || 9,
sizeType: e2.sizeType || ["original", "compressed"],
sourceType: e2.sourceType || ["album", "camera"]
},
(e2._complete = function(e3) {
if (p) {
var n2 = e3.localIds;
try {
n2 && (e3.localIds = JSON.parse(n2));
} catch (e4) {
}
}
}, e2)
);
},
getLocation: function(e2) {
},
previewImage: function(e2) {
M(c.previewImage, { current: e2.current, urls: e2.urls }, e2);
},
uploadImage: function(e2) {
M(
"uploadImage",
{
localId: e2.localId,
isShowProgressTips: 0 == e2.isShowProgressTips ? 0 : 1
},
e2
);
},
downloadImage: function(e2) {
M(
"downloadImage",
{
serverId: e2.serverId,
isShowProgressTips: 0 == e2.isShowProgressTips ? 0 : 1
},
e2
);
},
getLocalImgData: function(e2) {
false === I ? (I = true, M(
"getLocalImgData",
{ localId: e2.localId },
(e2._complete = function(e3) {
if (I = false, 0 < _.length) {
var n2 = _.shift();
wx.getLocalImgData(n2);
}
}, e2)
)) : _.push(e2);
},
getNetworkType: function(e2) {
M(
"getNetworkType",
{},
(e2._complete = function(e3) {
e3 = function(e4) {
var n2 = e4.errMsg;
e4.errMsg = "getNetworkType:ok";
var i2 = e4.subtype;
if (delete e4.subtype, i2)
e4.networkType = i2;
else {
var t2 = n2.indexOf(":"), o2 = n2.substring(t2 + 1);
switch (o2) {
case "wifi":
case "edge":
case "wwan":
e4.networkType = o2;
break;
default:
e4.errMsg = "getNetworkType:fail";
}
}
return e4;
}(e3);
}, e2)
);
},
openLocation: function(e2) {
M(
"openLocation",
{
latitude: e2.latitude,
longitude: e2.longitude,
name: e2.name || "",
address: e2.address || "",
scale: e2.scale || 28,
infoUrl: e2.infoUrl || ""
},
e2
);
},
getLocation: function(e2) {
M(
c.getLocation,
{ type: (e2 = e2 || {}).type || "wgs84" },
(e2._complete = function(e3) {
delete e3.type;
}, e2)
);
},
hideOptionMenu: function(e2) {
M("hideOptionMenu", {}, e2);
},
showOptionMenu: function(e2) {
M("showOptionMenu", {}, e2);
},
closeWindow: function(e2) {
M("closeWindow", {}, e2 = e2 || {});
},
hideMenuItems: function(e2) {
M("hideMenuItems", { menuList: e2.menuList }, e2);
},
showMenuItems: function(e2) {
M("showMenuItems", { menuList: e2.menuList }, e2);
},
hideAllNonBaseMenuItem: function(e2) {
M("hideAllNonBaseMenuItem", {}, e2);
},
showAllNonBaseMenuItem: function(e2) {
M("showAllNonBaseMenuItem", {}, e2);
},
scanQRCode: function(e2) {
M(
"scanQRCode",
{
needResult: (e2 = e2 || {}).needResult || 0,
scanType: e2.scanType || ["qrCode", "barCode"]
},
(e2._complete = function(e3) {
if (f) {
var n2 = e3.resultStr;
if (n2) {
var i2 = JSON.parse(n2);
e3.resultStr = i2 && i2.scan_code && i2.scan_code.scan_result;
}
}
}, e2)
);
},
openAddress: function(e2) {
M(
c.openAddress,
{},
(e2._complete = function(e3) {
e3 = function(e4) {
return e4.postalCode = e4.addressPostalCode, delete e4.addressPostalCode, e4.provinceName = e4.proviceFirstStageName, delete e4.proviceFirstStageName, e4.cityName = e4.addressCitySecondStageName, delete e4.addressCitySecondStageName, e4.countryName = e4.addressCountiesThirdStageName, delete e4.addressCountiesThirdStageName, e4.detailInfo = e4.addressDetailInfo, delete e4.addressDetailInfo, e4;
}(e3);
}, e2)
);
},
openProductSpecificView: function(e2) {
M(
c.openProductSpecificView,
{
pid: e2.productId,
view_type: e2.viewType || 0,
ext_info: e2.extInfo
},
e2
);
},
addCard: function(e2) {
for (var n2 = e2.cardList, i2 = [], t2 = 0, o2 = n2.length; t2 < o2; ++t2) {
var r2 = n2[t2], a2 = { card_id: r2.cardId, card_ext: r2.cardExt };
i2.push(a2);
}
M(
c.addCard,
{ card_list: i2 },
(e2._complete = function(e3) {
var n3 = e3.card_list;
if (n3) {
for (var i3 = 0, t3 = (n3 = JSON.parse(n3)).length; i3 < t3; ++i3) {
var o3 = n3[i3];
o3.cardId = o3.card_id, o3.cardExt = o3.card_ext, o3.isSuccess = !!o3.is_succ, delete o3.card_id, delete o3.card_ext, delete o3.is_succ;
}
e3.cardList = n3, delete e3.card_list;
}
}, e2)
);
},
chooseCard: function(e2) {
M(
"chooseCard",
{
app_id: v.appId,
location_id: e2.shopId || "",
sign_type: e2.signType || "SHA1",
card_id: e2.cardId || "",
card_type: e2.cardType || "",
card_sign: e2.cardSign,
time_stamp: e2.timestamp + "",
nonce_str: e2.nonceStr
},
(e2._complete = function(e3) {
e3.cardList = e3.choose_card_info, delete e3.choose_card_info;
}, e2)
);
},
openCard: function(e2) {
for (var n2 = e2.cardList, i2 = [], t2 = 0, o2 = n2.length; t2 < o2; ++t2) {
var r2 = n2[t2], a2 = { card_id: r2.cardId, code: r2.code };
i2.push(a2);
}
M(c.openCard, { card_list: i2 }, e2);
},
consumeAndShareCard: function(e2) {
M(
c.consumeAndShareCard,
{ consumedCardId: e2.cardId, consumedCode: e2.code },
e2
);
},
chooseWXPay: function(e2) {
M(c.chooseWXPay, V(e2), e2);
},
openEnterpriseRedPacket: function(e2) {
M(c.openEnterpriseRedPacket, V(e2), e2);
},
startSearchBeacons: function(e2) {
M(c.startSearchBeacons, { ticket: e2.ticket }, e2);
},
stopSearchBeacons: function(e2) {
M(c.stopSearchBeacons, {}, e2);
},
onSearchBeacons: function(e2) {
P(c.onSearchBeacons, e2);
},
openEnterpriseChat: function(e2) {
M(
"openEnterpriseChat",
{ useridlist: e2.userIds, chatname: e2.groupName },
e2
);
},
launchMiniProgram: function(e2) {
M(
"launchMiniProgram",
{
targetAppId: e2.targetAppId,
path: function(e3) {
if ("string" == typeof e3 && 0 < e3.length) {
var n2 = e3.split("?")[0], i2 = e3.split("?")[1];
return n2 += ".html", void 0 !== i2 ? n2 + "?" + i2 : n2;
}
}(e2.path),
envVersion: e2.envVersion
},
e2
);
},
openBusinessView: function(e2) {
M(
"openBusinessView",
{
businessType: e2.businessType,
queryString: e2.queryString || "",
envVersion: e2.envVersion
},
(e2._complete = function(n2) {
if (p) {
var e3 = n2.extraData;
if (e3)
try {
n2.extraData = JSON.parse(e3);
} catch (e4) {
n2.extraData = {};
}
}
}, e2)
);
},
miniProgram: {
navigateBack: function(e2) {
e2 = e2 || {}, O(function() {
M(
"invokeMiniProgramAPI",
{ name: "navigateBack", arg: { delta: e2.delta || 1 } },
e2
);
});
},
navigateTo: function(e2) {
O(function() {
M(
"invokeMiniProgramAPI",
{ name: "navigateTo", arg: { url: e2.url } },
e2
);
});
},
redirectTo: function(e2) {
O(function() {
M(
"invokeMiniProgramAPI",
{ name: "redirectTo", arg: { url: e2.url } },
e2
);
});
},
switchTab: function(e2) {
O(function() {
M(
"invokeMiniProgramAPI",
{ name: "switchTab", arg: { url: e2.url } },
e2
);
});
},
reLaunch: function(e2) {
O(function() {
M(
"invokeMiniProgramAPI",
{ name: "reLaunch", arg: { url: e2.url } },
e2
);
});
},
postMessage: function(e2) {
O(function() {
M(
"invokeMiniProgramAPI",
{ name: "postMessage", arg: e2.data || {} },
e2
);
});
},
getEnv: function(e2) {
O(function() {
e2({ miniprogram: "miniprogram" === o.__wxjs_environment });
});
}
}
}, T = 1, k = {};
return i.addEventListener(
"error",
function(e2) {
if (!p) {
var n2 = e2.target, i2 = n2.tagName, t2 = n2.src;
if ("IMG" == i2 || "VIDEO" == i2 || "AUDIO" == i2 || "SOURCE" == i2) {
if (-1 != t2.indexOf("wxlocalresource://")) {
e2.preventDefault(), e2.stopPropagation();
var o2 = n2["wx-id"];
if (o2 || (o2 = T++, n2["wx-id"] = o2), k[o2])
return;
k[o2] = true, wx.ready(function() {
wx.getLocalImgData({
localId: t2,
success: function(e3) {
n2.src = e3.localData;
}
});
});
}
}
}
},
true
), i.addEventListener(
"load",
function(e2) {
if (!p) {
var n2 = e2.target, i2 = n2.tagName;
n2.src;
if ("IMG" == i2 || "VIDEO" == i2 || "AUDIO" == i2 || "SOURCE" == i2) {
var t2 = n2["wx-id"];
t2 && (k[t2] = false);
}
}
},
true
), e && (o.wx = o.jWeixin = w), w;
}
function M(n2, e2, i2) {
o.WeixinJSBridge ? WeixinJSBridge.invoke(n2, x(e2), function(e3) {
A(n2, e3, i2);
}) : B(n2, i2);
}
function P(n2, i2, t2) {
o.WeixinJSBridge ? WeixinJSBridge.on(n2, function(e2) {
t2 && t2.trigger && t2.trigger(e2), A(n2, e2, i2);
}) : B(n2, t2 || i2);
}
function x(e2) {
return (e2 = e2 || {}).appId = v.appId, e2.verifyAppId = v.appId, e2.verifySignType = "sha1", e2.verifyTimestamp = v.timestamp + "", e2.verifyNonceStr = v.nonceStr, e2.verifySignature = v.signature, e2;
}
function V(e2) {
return {
timeStamp: e2.timestamp + "",
nonceStr: e2.nonceStr,
package: e2.package,
paySign: e2.paySign,
signType: e2.signType || "SHA1"
};
}
function A(e2, n2, i2) {
"openEnterpriseChat" != e2 && "openBusinessView" !== e2 || (n2.errCode = n2.err_code), delete n2.err_code, delete n2.err_desc, delete n2.err_detail;
var t2 = n2.errMsg;
t2 || (t2 = n2.err_msg, delete n2.err_msg, t2 = function(e3, n3) {
var i3 = e3, t3 = a[i3];
t3 && (i3 = t3);
var o3 = "ok";
if (n3) {
var r2 = n3.indexOf(":");
"confirm" == (o3 = n3.substring(r2 + 1)) && (o3 = "ok"), "failed" == o3 && (o3 = "fail"), -1 != o3.indexOf("failed_") && (o3 = o3.substring(7)), -1 != o3.indexOf("fail_") && (o3 = o3.substring(5)), "access denied" != (o3 = (o3 = o3.replace(/_/g, " ")).toLowerCase()) && "no permission to execute" != o3 || (o3 = "permission denied"), "config" == i3 && "function not exist" == o3 && (o3 = "ok"), "" == o3 && (o3 = "fail");
}
return n3 = i3 + ":" + o3;
}(e2, t2), n2.errMsg = t2), (i2 = i2 || {})._complete && (i2._complete(n2), delete i2._complete), t2 = n2.errMsg || "", v.debug && !i2.isInnerInvoke && alert(JSON.stringify(n2));
var o2 = t2.indexOf(":");
switch (t2.substring(o2 + 1)) {
case "ok":
i2.success && i2.success(n2);
break;
case "cancel":
i2.cancel && i2.cancel(n2);
break;
default:
i2.fail && i2.fail(n2);
}
i2.complete && i2.complete(n2);
}
function C(e2) {
if (e2) {
for (var n2 = 0, i2 = e2.length; n2 < i2; ++n2) {
var t2 = e2[n2], o2 = c[t2];
o2 && (e2[n2] = o2);
}
return e2;
}
}
function B(e2, n2) {
if (!(!v.debug || n2 && n2.isInnerInvoke)) {
var i2 = a[e2];
i2 && (e2 = i2), n2 && n2._complete && delete n2._complete, console.log('"' + e2 + '",', n2 || "");
}
}
function L() {
return new Date().getTime();
}
function O(e2) {
l && (o.WeixinJSBridge ? e2() : i.addEventListener && i.addEventListener("WeixinJSBridgeReady", e2, false));
}
});
}
});
export default require_weixin_js_sdk();
//# sourceMappingURL=weixin-js-sdk.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,93 @@
<script>
import store from '@/store'
import StoreModel from '@/common/model/Store'
import { getSceneData } from './core/app'
import { isObject } from './utils/util'
export default {
/**
* 全局变量
*/
globalData: {},
/**
* 初始化完成时触发
*/
onLaunch({ path, query, scene }) {
// #ifdef MP
//
this.updateManager()
// #endif
// app
this.onStartupQuery(isObject(query) ? query : {})
//
this.getStoreInfo()
},
methods: {
// app
onStartupQuery(query) {
//
const scene = getSceneData(query)
// ID
const refereeId = query.refereeId ? query.refereeId : scene.uid
refereeId > 0 && (this.setRefereeId(refereeId))
},
// ID
setRefereeId(refereeId) {
store.dispatch('setRefereeId', refereeId)
},
//
getStoreInfo() {
StoreModel.data(false)
},
//
updateManager() {
const updateManager = uni.getUpdateManager()
updateManager.onCheckForUpdate(res => {
//
// console.log(res.hasUpdate)
})
updateManager.onUpdateReady(() => {
uni.showModal({
title: '更新提示',
content: '新版本已经准备好,即将重启应用',
showCancel: false,
success(res) {
if (res.confirm) {
// applyUpdate
updateManager.applyUpdate()
}
}
})
})
updateManager.onUpdateFailed(() => {
//
uni.showModal({
title: '更新提示',
content: '新版本下载失败',
showCancel: false
})
})
}
}
}
</script>
<style lang="scss">
/* uView库样式 */
@import "./uni_modules/vk-uview-ui/index.scss";
/* uni-icons样式*/
@import "./uni_modules/uni-icons/components/uni-icons/uniicons.css";
/* 项目基础样式 */
@import "./app.scss";
/* iconfont图标库 */
@import "./utils/iconfont.scss";
</style>

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 www.uviewui.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

@ -0,0 +1,14 @@
{
"version" : "1",
"prompt" : "template",
"title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"static/protocol.html\">《服务协议》</a>和<a href=\"static/privacy.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意",
"second" : {
"title" : "确认提示",
"message" : "  进入应用前,你需先同意<a href=\"static/protocol.html\">《服务协议》</a>和<a href=\"static/privacy.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept" : "同意并继续",
"buttonRefuse" : "退出应用"
}
}

@ -0,0 +1,16 @@
import request from '@/utils/request'
// api地址
const api = {
storeGoodsList:'storeKeeper/list',
delGoods:'storeKeeper/delete'
}
// 店主--商品列表
export function storeGoodsList(param) {
return request.get(api.storeGoodsList, { ...param })
}
//店主--删除/批量删除
export function delGoods(param) {
return request.post(api.delGoods, { ...param })
}

@ -0,0 +1,77 @@
import request from '@/utils/request'
// api地址
const api = {
data: 'sharp.home/data',
list: 'sharp.goods/list',
getImage: 'goods/getCommonConfig',
getImage: 'goods/getCommonConfig',
getImage: 'goods/getCommonConfig',
chartsGoodsJing: 'goods/chartsGoodsJing',
chartsGoodsList: "goods/chartsGoodsList",
brandList: 'goods/brandList',
charts: "goods/charts",
couponList: 'coupon/list',
receive: 'myCoupon/receive'
}
// 新品
export const brandList = (data) => {
return request.get(api.brandList, data)
}
// 预售专区
export const list = () => {
return request.get(api.list, {}, {
load: false
})
}
//秒杀商品列表
export const sharplist = (data) => {
console.log(data)
return request.get(api.list, data)
}
// 秒杀活动首页
export const data = () => {
return request.get(api.data, {}, {
load: false
})
}
// 轮播
export const getImage = (data) => {
return request.get(api.getImage, data)
}
// 排行精选
export const chartsGoodsJing = (data) => {
return request.get(api.chartsGoodsJing, data)
}
// 排行精选商品
export const chartsGoodsList = (data) => {
return request.get(api.chartsGoodsList, data)
}
// 排行类
export const charts = (data) => {
return request.get(api.charts, data)
}
// 新人收单劵
export const couponList = (data) => {
return request.post(api.couponList, data)
}
// 立即领取
export const receive = (data) => {
return request.post(api.receive, data)
}
// 预售分类
export const presaleCateList = (data) => {
return request.get('goods/presaleCateList', data)
}
// 预售列表
export const presaleGoodsList = (data) => {
return request.get('goods/presaleGoodsList', data)
}
// 元旦列表
export const detail = (data) => {
return request.get('active/detail', data)
}
// 元旦详情
export const info = (data) => {
return request.get('active/info', data)
}

@ -0,0 +1,57 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'address/list',
defaultId: 'address/defaultId',
detail: 'address/detail',
add: 'address/add',
edit: 'address/edit',
setDefault: 'address/setDefault',
remove: 'address/remove',
analysis: 'address/analysis'
}
// 收货地址列表
export const list = (param) => {
return request.get(api.list, param)
}
// 默认收货地址ID
export const defaultId = (param) => {
return request.get(api.defaultId, param)
}
// 收货地址详情
export const detail = (addressId) => {
return request.get(api.detail, { addressId })
}
// 新增收货地址
export const add = (data) => {
return request.post(api.add, { form: data })
}
// 编辑收货地址
export const edit = (addressId, data) => {
return request.post(api.edit, { addressId, form: data })
}
// 设置默认收货地址
export const setDefault = (addressId) => {
return request.post(api.setDefault, { addressId })
}
// 删除收货地址
export const remove = (addressId) => {
return request.post(api.remove, { addressId })
}
// 收货地址智能解析
export const analysis = (content) => {
return request.get(api.analysis, { content })
}
// 省市区
export const province = (param) => {
return request.get('region/tree', param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'article.category/list'
}
// 页面数据
export function list() {
return request.get(api.list)
}

@ -0,0 +1,47 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'article/list',
detail: 'article/detail',
del: 'article/delete',
edit: 'article/edit',
add: 'article/add',
articleCatList: 'article.category/list',
articleCatAdd: 'article/addCategory',
articleCatDelete: 'article/articleCatDelete',
articleCatEdit: 'storeKeeper/articleCatEdit'
}
// 文章分类列表 新增
export function articleCatAdd(param, option) {
return request.post(api.articleCatAdd, param, option)
}
// 文章分类列表
export function articleCatList(param, option) {
return request.get(api.articleCatList, param, option)
}
// 文章 编辑
export function edit(param, option) {
return request.post(api.edit, param, option)
}
// 文章 新增
export function add(param, option) {
return request.post(api.add, param, option)
}
// 文章 删除
export function del(param, option) {
return request.post(api.del, param, option)
}
// 文章列表
export function list(param, option) {
return request.get(api.list, param, option)
}
// 文章详情
export function detail(articleId) {
return request.get(api.detail, { articleId })
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'balance.log/list'
}
// 余额账单明细列表
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'balance.log/list'
}
// 余额账单明细
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,23 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'bargain.active/list',
detail: 'bargain.active/detail',
poster: 'bargain.active/poster'
}
// 砍价活动会场列表
export const list = (param) => {
return request.get(api.list, param)
}
// 砍价活动详情
export const detail = (activeId, param) => {
return request.get(api.detail, { activeId, ...param })
}
// 生成商品海报
export const poster = param => {
return request.get(api.poster, param)
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
order: 'bargain.checkout/order',
submit: 'bargain.checkout/submit'
}
// 结算台订单信息
export const order = (mode, param) => {
return request.get(api.order, { mode, ...param })
}
// 结算台订单提交
export const submit = (mode, data) => {
return request.post(api.submit, { mode, ...data }, { isPrompt: false })
}

@ -0,0 +1,35 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'bargain.task/list',
partake: 'bargain.task/partake',
detail: 'bargain.task/detail',
helpList: 'bargain.task/helpList',
helpCut: 'bargain.task/helpCut'
}
// 我的砍价列表
export const list = (param) => {
return request.get(api.list, param)
}
// 创建砍价任务
export const partake = (data) => {
return request.post(api.partake, data)
}
// 获取砍价任务详情
export const detail = (taskId, param) => {
return request.get(api.detail, { taskId, ...param })
}
// 获取砍价任务好友助力榜
export const helpList = (taskId, param) => {
return request.get(api.helpList, { taskId, ...param })
}
// 帮砍一刀
export const helpCut = (taskId, data) => {
return request.post(api.helpCut, { taskId, ...data })
}

@ -0,0 +1,22 @@
import request from '@/utils/request'
// api地址
const api = {
image: 'captcha/image',
sendSmsCaptcha: 'captcha/sendSmsCaptcha',
getStoreInfo:'store/getStoreInfo'
}
// 图形验证码
export function image() {
return request.get(api.image, {}, { load: false })
}
// 发送短信验证码
export function sendSmsCaptcha(data) {
return request.post(api.sendSmsCaptcha, data, { load: false })
}
// 发送短信验证码
export function getStoreInfo(data) {
return request.get(api.getStoreInfo, data, { load: false })
}

@ -0,0 +1,35 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'cart/list',
total: 'cart/total',
add: 'cart/add',
update: 'cart/update',
clear: 'cart/clear'
}
// 购物车列表
export const list = () => {
return request.get(api.list, {}, { load: false })
}
// 购物车商品总数量
export const total = () => {
return request.get(api.total, {}, { load: false })
}
// 加入购物车
export const add = (goodsId, goodsSkuId, goodsNum) => {
return request.post(api.add, { goodsId, goodsSkuId, goodsNum })
}
// 更新购物车商品数量
export const update = (goodsId, goodsSkuId, goodsNum) => {
return request.post(api.update, { goodsId, goodsSkuId, goodsNum }, { isPrompt: false })
}
// 删除购物车中指定记录
export const clear = (cartIds = []) => {
return request.post(api.clear, { cartIds })
}

@ -0,0 +1,35 @@
import request from '@/utils/request'
// api地址
const api = {
orderInfo: 'cashier/orderInfo',
orderPay: 'cashier/orderPay',
tradeQuery: 'cashier/tradeQuery',
}
/**
* 获取支付订单的信息
* @param {Number} orderId
* @param {Object} param
*/
export function orderInfo(orderId, param) {
return request.get(api.orderInfo, { orderId, ...param })
}
/**
* 确认支付
* @param {Number} orderId
* @param {Object} data
*/
export function orderPay(orderId, data) {
return request.post(api.orderPay, { orderId, ...data })
}
/**
* 交易查询
* 查询第三方支付订单是否付款成功
* @param {Object} param
*/
export function tradeQuery(param) {
return request.get(api.tradeQuery, param)
}

@ -0,0 +1,31 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'category/list',
sonList:'goods/list',
listmerchant: 'category/listmerchant',
getShopCategory: 'merchant/getShopCategory'
}
// 获取分类列表
export const list = (param, option) => {
return request.get(api.list, param, option)
}
// 获取子分类
export const sonList = (param, option) => {
return request.get(api.sonList, param, option)
}
export const childrenList = (param, option) => {
return request.get('category/childrenList', param, option)
}
// 获取商户下商品分类列表
export const listmerchant = (param, option) => {
return request.get(api.listmerchant, param, option)
}
// 获取商户下商品分类列表
export const getShopCategory = (param, option) => {
return request.get(api.getShopCategory, param, option)
}

@ -0,0 +1,19 @@
import request from '@/utils/request'
// api地址
const api = {
order: 'checkout/order',
submit: 'checkout/submit',
}
// mode: 结算模式 (buyNow立即购买 cart购物车)
// 结算台订单信息
export const order = (mode, param) => {
return request.get(api.order, { mode, ...param })
}
// 结算台订单提交
export const submit = (mode, data) => {
return request.post(api.submit, { mode, ...data }, { isPrompt: false })
}

@ -0,0 +1,23 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'comment/list',
listRows: 'comment/listRows',
total: 'comment/total'
}
// 商品评价列表
export const list = (goodsId, param, option) => {
return request.get(api.list, { ...param, goodsId }, option)
}
// 商品评价列表 (限制数量, 用于商品详情页展示)
export const listRows = (goodsId, limit = 5) => {
return request.get(api.listRows, { goodsId, limit })
}
// 商品评分总数
export const total = (goodsId) => {
return request.get(api.total, { goodsId })
}

@ -0,0 +1,31 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'coupon/list',
serveList:'coupon/server',
receive:'myCoupon/receive',
myCouponList:'myCoupon/list'
}
// 优惠券列表
export const list = (param, option) => {
const options = {
isPrompt: true, //(默认 true 说明:本接口抛出的错误是否提示)
load: true, //(默认 true 说明:本接口是否提示加载动画)
...option
}
return request.get(api.list, param, options)
}
// 服务类优惠券
export const serveList = (param) => {
return request.get(api.serveList, param)
}
// 领券
export const receive=(data)=>{
return request.post(api.receive, data)
}
//我的优惠券
export const myCouponList=(data)=>{
return request.post(api.myCouponList, data)
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
status: 'dealer.apply/status',
submit: 'dealer.apply/submit'
}
// 分销商申请状态
export const status = (param) => {
return request.get(api.status, param)
}
// 提交分销商申请
export const submit = (data) => {
return request.post(api.submit, data)
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'dealer.capital/list',
submit: 'dealer.capital/submit'
}
// 分销商提现明细
export const list = (param) => {
return request.get(api.list, param)
}
// 提交提现申请
export const submit = (data) => {
return request.post(api.submit, data)
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
user: 'dealer/user',
center: 'dealer/center'
}
// 分销商用户详情
export const user = (param) => {
return request.get(api.user, param)
}
// 分销商提现明细
export const center = (param) => {
return request.get(api.center, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'dealer.order/list'
}
// 分销商订单列表
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
qrcode: 'dealer.poster/qrcode'
}
// 获取推广二维码
export const qrcode = (param) => {
return request.get(api.qrcode, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
data: 'dealer.setting/data'
}
// 获取分销设置 (全部)
export const data = () => {
return request.get(api.data)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'dealer.team/list'
}
// 我的团队列表
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'dealer.withdraw/list',
submit: 'dealer.withdraw/submit'
}
// 分销商提现明细
export const list = (param) => {
return request.get(api.list, param)
}
// 提交提现申请
export const submit = (data) => {
return request.post(api.submit, data)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'express/list'
}
// 物流公司列表
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,35 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'user/getFeedBack',
shopList: 'store/getStore',
add:'user/addFeedback',
addFeedback: 'feedback/add',
getMyFeedback: 'feedback/list',
}
// 我的反馈列表
export const list = (param, option) => {
return request.get(api.list, param, option)
}
// 获取可用商户
export const shopList = (param, option) => {
return request.get(api.shopList, param, option)
}
// 提交反馈
export const add=(data)=> {
return request.post(api.add, data)
}
// 发布动态
export function addFeedback(param) {
return request.post(api.addFeedback, { ...param })
}
// 获取动态列表
export function getMyFeedback(param) {
return request.get(api.getMyFeedback, { ...param })
}

@ -0,0 +1,106 @@
import request from '@/utils/request'
// api地址
const api = {
browseHistoryList: 'goods/browseLog',
list: 'goods/list',
detail: 'goods/detail',
basic: 'goods/basic',
specData: 'goods/specData',
skuInfo: 'goods/skuInfo',
recommended: 'goods/recommended',
recommendedNew: 'goods/recommendedNew',
poster: 'goods/poster',
serveList:'goods.service/list',
presale:'goods/presale'
}
// 短连接
export const goodsShortUrl = (param, option) => {
return request.post('goods/shortUrl', param, option)
}
// 商品价格修改
export const editGoodsPrice = (param, option) => {
return request.post('StoreKeeper/editGoodsPrice', param, option)
}
// 商品浏览记录
export const browseHistoryList = (param, option) => {
return request.get('goods/browseLog', param, option)
}
// 商品浏览记录 删除
export const browseHistoryDel = (param, option) => {
return request.post('goods/browseDel', param, option)
}
// 取消预约
export const canlpresale = (data) => {
return request.get('goods/canlpresale', data)
}
// 预约列表
export const presaleList = (data) => {
return request.get('goods/presaleList', data)
}
// 立即预约
export const presale = (data) => {
return request.get('goods/presale', data)
}
// // 商品浏览记录
// export const presale = (param, option) => {
// return request.get(api.presale, param, option)
// }
// 服务
export const serveList = (param, option) => {
return request.get(api.serveList, param, option)
}
// 商品列表
export const list = (param, option) => {
return request.post(api.list, param, option)
}
// 商品详情(详细数据)
export const detail = (goodsId, verifyStatus = true, param = {}) => {
verifyStatus = Number(verifyStatus)
return request.get(api.detail, { goodsId, verifyStatus, ...param })
}
// 商品详情(基本数据)
export const basic = (goodsId, verifyStatus = true, param = {}) => {
verifyStatus = Number(verifyStatus)
return request.get(api.basic, { goodsId, verifyStatus, ...param })
}
// 获取商品规格数据
export const specData = (goodsId) => {
return request.get(api.specData, { goodsId })
}
// 获取推荐的商品列表
export const recommended = () => {
return request.get(api.recommended)
}
// 获取推荐的商品列表(新)
export const recommendedNew = (params) => {
return request.get(api.recommendedNew, { ...params })
}
// 获取商品的指定SKU信息
export const skuInfo = (goodsId, goodsSkuId, param) => {
return request.get(api.skuInfo, { goodsId, goodsSkuId, ...param })
}
// 生成商品海报
export const poster = param => {
return request.get(api.poster, param)
}
// 店长设置秒杀价
export const editGoodsSeckillPrice = param => {
return request.post('StoreKeeper/editGoodsSeckillPrice', param)
}
// 是否有货
export const getGoodsStock = param => {
return request.post('goods/getGoodsStock', param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'goods.service/list'
}
// 商品评价列表
export function list(goodsId) {
return request.get(api.list, { goodsId })
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
order: 'groupon.checkout/order',
submit: 'groupon.checkout/submit'
}
// 结算台订单信息
export const order = (mode, param) => {
return request.get(api.order, { mode, ...param })
}
// 结算台订单提交
export const submit = (mode, data) => {
return request.post(api.submit, { mode, ...data }, { isPrompt: false })
}

@ -0,0 +1,23 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'groupon.goods/list',
detail: 'groupon.goods/detail',
poster: 'groupon.goods/poster'
}
// 拼团商品列表
export const list = (param) => {
return request.get(api.list, param)
}
// 拼团商品详情
export const detail = (grouponGoodsId, param) => {
return request.get(api.detail, { grouponGoodsId, ...param })
}
// 生成商品海报
export const poster = param => {
return request.get(api.poster, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
data: 'groupon.setting/data'
}
// 获取拼团设置
export const data = () => {
return request.get(api.data)
}

@ -0,0 +1,23 @@
import request from '@/utils/request'
// api地址
const api = {
myList: 'groupon.task/myList',
listByGoods: 'groupon.task/listByGoods',
detail: 'groupon.task/detail'
}
// 我的拼团列表
export const myList = param => {
return request.get(api.myList, param)
}
// 获取拼单任务详情
export const detail = (taskId, param) => {
return request.get(api.detail, { taskId, ...param })
}
// 我的拼团列表
export const listByGoods = (grouponGoodsId, param) => {
return request.get(api.listByGoods, { grouponGoodsId, ...param })
}

@ -0,0 +1,45 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'help/list',
helpList: 'article/helpCenter',
addGoodsSource: 'user/addGoodsSource',
joinStore: 'store/joinStore',
getStoreType: 'store/getStoreType',
storeSet:'store/editStore',
storeInfo:'store/getStoreInfo',
getAgreement: 'user/getAgreement',
}
export const getAgreement = (data) => {
return request.get(api.getAgreement,data)
}
// 帮助中心列表
export const list = (param) => {
return request.get(api.list, param)
}
// 帮助中心列表
export const helpList = (param) => {
return request.get(api.helpList, param)
}
// 我要找货
export const addGoodsSource = (param) => {
return request.post(api.addGoodsSource, param)
}
// 商家入住
export const joinStore = (param) => {
return request.post(api.joinStore, param)
}
// 商家入住类型
export const getStoreType = (param) => {
return request.post(api.getStoreType, param)
}
// 店铺设置
export const storeSet = (param) => {
return request.post(api.storeSet, param)
}
// 店铺信息
export const storeInfo = (param) => {
return request.get(api.storeInfo, param)
}

@ -0,0 +1,62 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'goods/list',
chartsGoodsJing:'goods/chartsGoodsJing',
brandList:'goods/brandList',
getBannerList:'index/getBannerList',
typeList:'category/list',
cityInfo:'goods/cityInfo',
search:'goods/hotWord',
chartsGoodsJing:'goods/chartsGoodsJing'
}
// 小程序配置
export const wxAppSetting = (param, option) => {
return request.post('index/wxAppSetting', param, option)
}
// 小程序风格
export const wxAppStyle = (param, option) => {
return request.post('merchant/getPageStyle', param, option)
}
// benner列表
export const getBannerList = (param, option) => {
return request.get(api.getBannerList, param, option)
}
// 门店编辑
export const editShop = (param, option) => {
return request.post('shop/editShop', param, option)
}
// 门店详情
export const cityInfo = (param, option) => {
return request.get(api.cityInfo, param, option)
}
// 商品列表
export const list = (param, option) => {
return request.get(api.list, param, option)
}
// 首页排行榜
export const chartsGoodsJing = (param, option) => {
return request.get(api.chartsGoodsJing, param, option)
}
// 商品/大牌正品/新品首发列表
export const brandList = (param, option) => {
return request.get(api.brandList, param, option)
}
// 首页分类
export const typeList = (param, option) => {
return request.get(api.typeList, param, option)
}
//搜索发现
export const searchFind = (param, option) => {
return request.get(api.search, param, option)
}
//搜索发现内容
export const chartsGoodsJingApi = (param, option) => {
return request.get(api.chartsGoodsJing, param, option)
}

@ -0,0 +1,42 @@
import request from '@/utils/request'
// api地址
const api = {
addInvoicing: 'user/addInvoicing',
myInvoicing: 'user/myInvoicing',
editInvoicing: 'user/editInvoicing',
invoicingLog: 'user/invoicingLog',
invoicingDel: 'user/invoicingDel',
invoicingDetail: 'user/invoicingDetail',
invoicingAdd: 'user/invoicingAdd',
invoicingEdit: 'user/invoicingEdit',
invoicingDelNew: 'user/delInvoicing'
}
export const invoicingDelNew = (data) => {
return request.get(api.invoicingDelNew,data)
}
export const invoicingEdit = (data) => {
return request.post(api.invoicingEdit,data)
}
export const invoicingAdd = (data) => {
return request.post(api.invoicingAdd,data)
}
export const addInvoicing = (data) => {
return request.post(api.addInvoicing,data)
}
export const myInvoicing = (orderGoodsId, data) => {
return request.get(api.myInvoicing,data)
}
export const editInvoicing = (data) => {
return request.post(api.editInvoicing,data)
}
export const invoicingLog = (data) => {
return request.get(api.invoicingLog,data)
}
export function invoicingDel(param, option) {
return request.get(api.invoicingDel, param, option)
}
export function invoicingDetail(param, option) {
return request.get(api.invoicingDetail, param, option)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'live.room/list'
}
// 获取直播间列表
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,47 @@
import request from '@/utils/request'
// api地址
const api = {
login: 'passport/login',
loginMpWx: 'passport/loginMpWx',
loginWxOfficial: 'passport/loginWxOfficial',
loginMpWxMobile: 'passport/loginMpWxMobile',
auth: 'passport/auth',
loginMpAlipay: 'passport/loginMpAlipay',
isPersonalMpweixin: 'passport/isPersonalMpweixin',
}
// 用户登录 (手机号+验证码)
export function login(data) {
return request.post(api.login, data)
}
// 微信小程序快捷登录 (获取微信用户基本信息)
export function loginMpWx(data, option) {
return request.post(api.loginMpWx, data, option)
}
// 是否需要填写昵称头像 (微信小程序端)
export function isPersonalMpweixin(data, option) {
return request.post(api.isPersonalMpweixin, data, option)
}
// 微信公众号一键授权登录 (获取微信用户基本信息)
export function loginWxOfficial(data, option) {
return request.post(api.loginWxOfficial, data, option)
}
// 微信小程序快捷登录 (授权手机号)
export function loginMpWxMobile(data, option) {
return request.post(api.loginMpWxMobile, data, option)
}
// 微信小程序快捷登录 (授权手机号)
export function auth(data, option) {
return request.post(api.auth, data, option)
}
// 支付宝小程序快捷登录 (获取微信用户基本信息)
export function loginMpAlipay(data, option) {
return request.post(api.loginMpAlipay, data, option)
}

@ -0,0 +1,34 @@
import request from '@/utils/request'
// api地址
const api = {
info: 'identity/userPriceList',
submit: 'identity/submit',
dealerPriceList: 'identity/dealerPriceList',
userOpenCardLog: 'identity/userOpenCardLog',
dealerOpenCardLog: 'identity/dealerOpenCardLog'
}
// 会员信息
export const info = (param) => {
return request.post(api.info, param)
}
// 分销会员信息
export const dealerPriceList = (param) => {
return request.post(api.dealerPriceList, param)
}
// 会员信息
export const submit = (param) => {
return request.post(api.submit, param)
}
// 会员开卡记录
export const userOpenCardLog = (param) => {
return request.post(api.userOpenCardLog, param)
}
// 分销开卡记录
export const dealerOpenCardLog = (param) => {
return request.post(api.dealerOpenCardLog, param)
}

@ -0,0 +1,22 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'myCoupon/list',
receive: 'myCoupon/receive'
}
// 我的优惠券列表
export const list = (param, option) => {
const options = {
isPrompt: true, //(默认 true 说明:本接口抛出的错误是否提示)
load: true, //(默认 true 说明:本接口是否提示加载动画)
...option
}
return request.get(api.list, param, options)
}
// 领取优惠券
export const receive = (couponId, data, option) => {
return request.post(api.receive, { couponId, ...data }, option)
}

@ -0,0 +1,312 @@
import request from '@/utils/request'
// 服务商详情 编辑
export const editApplyProviders = (param) => {
return request.post('dealer.apply/editApplyProviders', param)
}
// 服务商详情
export const getApplyInfo = (param) => {
return request.post('dealer.apply/getApplyInfo', param)
}
// 服务商申请
export const applyProviders = (param) => {
return request.post('dealer.apply/applyProviders', param)
}
// 邀请采购商记录
export const inviteWholesalerList = (param) => {
return request.post('invite/inviteWholesalerList', param)
}
// 采购商 申请记录编辑
export const wholesalerEditApply = (param) => {
return request.post('wholesaler/editApply', param)
}
// 采购商 开通购商价格
export const wholesalerPrice = (param) => {
return request.post('wholesaler/price', param)
}
// 采购商 开通采购商
export const wholesalerSubmit = (param) => {
return request.post('wholesaler/submit', param)
}
// 采购商 身份证识别
export const ocrCheckCard = (param) => {
return request.post('ocr/checkCard', param)
}
// 采购商 营业执照识别
export const ocrCheckLicense = (param) => {
return request.post('ocr/checkLicense', param)
}
// 采购商 申请记录
export const wholesalerApplyInfo = (param) => {
return request.post('wholesaler/applyInfo', param)
}
// 获取分享图
export const getStoreInfo = (param) => {
return request.post('store/getStoreInfo', param)
}
// 邀请有礼 邀请好友海报
export const InviteUserPoster = (param) => {
return request.post('user/InviteUserPoster', param)
}
// 邀请有礼 记录
export const inviteGetList = (param) => {
return request.post('invite/getList', param)
}
// 邀请有礼 统计
export const inviteStatistics = (param) => {
return request.post('invite/statistics', param)
}
// 邀请有礼
export const inviteInit = (param) => {
return request.post('invite/index', param)
}
// 足迹列表 删除
export const goodsBrowseDel = (param) => {
return request.get('goods/browseDel', param)
}
// 足迹列表
export const goodsBrowseLog = (param) => {
return request.get('goods/browseLog', param)
}
// 上门回收 门店列表
export const storeList = (param) => {
return request.get('shop/list', param)
}
// 上门回收 回收列表
export const recoveryRecoveryList = (param) => {
return request.post('recovery/recoveryList', param)
}
export const recoveryCategoryList = (param) => {
return request.post('recovery/categoryList', param)
}
// 上门回收 提交
export const addOrder = (param) => {
return request.post('recovery/addOrder', param)
}
// 上门回收列表
export const orderList = (param) => {
return request.post('recovery/orderList', param)
}
// 上门回收物流
export const expressAll = (param) => {
return request.get('express/list', param)
}
// 上门回收预约时间
export const stopTimes = (param) => {
return request.post('shop/stopTimes', param)
}
// 上门回收预约时间
export const updateOrderStatus = (param) => {
return request.post('recovery/updateOrderStatus', param)
}
// 上门回收编辑
export const updateOrder = (param) => {
return request.post('recovery/updateOrder', param)
}
// 上门回收tab状态
export const orderStatus = (param) => {
return request.post('recovery/orderStatus', param)
}
// 上门回收取消
export const cancelOrder = (param) => {
return request.post('recovery/cancelOrder', param)
}
// 上门回收取消
export const completeOrder = (param) => {
return request.post('recovery/completeOrder', param)
}
// 上门回收详情
export const orderDetail = (param) => {
return request.post('recovery/orderDetail', param)
}
// 服务 服务订单完成
export const serverConfirmSuccess = (param) => {
return request.post('server/confirmSuccess', param)
}
// 服务 服务订单详情
export const serverOrderDetails = (param) => {
return request.post('server/orderDetails', param)
}
// 服务 服务订单派单
export const serverDispatchOrders = (param) => {
return request.post('server/dispatchOrders', param)
}
// 服务 服务订单列表 派单
export const serverGetEngineer = (param) => {
return request.post('server/getEngineer', param)
}
// 服务 服务订单列表 取消
export const serverCancelOrder = (param) => {
return request.post('server/cancelOrder', param)
}
// 服务 服务订单列表 服务订单状态
export const serverOrderInfoStatus = (param) => {
return request.post('server/orderStatus', param)
}
// 服务 服务订单列表
export const serverOrderList = (param) => {
return request.post('server/orderList', param)
}
// 服务 创建服务订单 服务订单支付信息
export const serverOrderInfo = (param) => {
return request.post('server/orderInfo', param)
}
// 服务 创建服务订单 余额支付
export const serverOrderPay = (param) => {
return request.post('server/orderPay', param)
}
// 服务 创建服务订单
export const serverCreateOrder = (param) => {
return request.post('server/createOrder', param)
}
// 服务 服务列表 查询优惠券
export const serverCheckOrder = (param) => {
return request.post('server/checkOrder', param)
}
// 服务 服务列表
export const serverList = (param) => {
return request.post('server/list', param)
}
// 服务 服务分类
export const serverCategoryList = (param) => {
return request.post('server/categoryList', param)
}
// 店长 商品列表
export const storeKeeperList = (param) => {
return request.get('storeKeeper/list', param)
}
// 门店详情
export const storeKeeperDetail = (shopId) => {
return request.get('shop/detail', { shopId })
}
// 店长 删除/批量删除
export const delGoods = (param) => {
return request.post('storeKeeper/delete', param)
}
//店长 商品订单
export const shopOrderList = (param) => {
return request.get('storeKeeper/orderList', param)
}
//店长--发货
export const sendGoods = (param) => {
return request.post('storeKeeper/delivery', param)
}
//店长==物流列表
export const wuliuList = (param) => {
return request.post('storeKeeper/expressAll', param)
}
//店长 修改价格
export const updatePrice = (param) => {
return request.post('storeKeeper/updatePrice', param)
}
//店长 修改物流
export const updateDelivery = (param) => {
return request.post('StoreKeeper/updateDelivery', param)
}
//店长 修改地址
export const updateAddress = (param) => {
return request.post('StoreKeeper/updateAddress', param)
}
//店长 查地址
export const addressList = (param) => {
return request.post('store/getAddressList', param)
}
// 店长同意拒绝
export const audit = (param) => {
return request.post('storeKeeper/audit', param)
}
// 店长删除订单
export const oderDelete = (param) => {
return request.post('storeKeeper/oderDelete', param)
}
//地址智能识别
export const analysis = (param) => {
return request.get('address/analysis', param)
}
//物流查询
export const expressSearch = (param) => {
return request.get('order/expressSearch', param)
}
// 发货记录---店长
export const deliveryList = (param) => {
return request.get('order/transferList', param)
}
// 手动录入---店长
export const addTransfer = (param) => {
return request.post('order/addTransfer', param)
}
// 记录编辑---店长
export const editTransfer = (param) => {
return request.post('order/editTransfer', param)
}
// 数据统计
export const statistics = (param) => {
return request.post('data/statistics', param)
}
// 会员分类
export const category = (param) => {
return request.post('category/list', param)
}
// 会员分类新增
export const setStorePrice = (param) => {
return request.post('store/setStorePrice', param)
}
// 会员分类xiangqing
export const getStorePriceInfo = (param) => {
return request.get('store/getStorePriceInfo', param)
}
// 会员分类xiangqing
export const editStore = (param) => {
return request.post('store/editStore', param)
}
// 会员分类xiangqing
export const storeData = (param) => {
return request.get('store/data', param)
}
// 一键新增
export const collectorList = (param) => {
return request.post('goods.collector/list', param)
}
export const editCollector = (param) => {
return request.post('goods.collector/batch', param)
}
// 运费模版
export const deliveryall = (param) => {
return request.post('setting/deliveryall', param)
}
// 安装包修
export const maintenance = (param) => {
return request.get('/user/maintenance', param)
}

@ -0,0 +1,61 @@
import request from '@/utils/request'
// api地址
const api = {
todoCounts: 'order/todoCounts',
list: 'order/list',
detail: 'order/detail',
express: 'order/express',
cancel: 'order/cancel',
extractQrcode: 'order/extractQrcode',
receipt: 'order/receipt',
pay: 'order/pay',
del:'order/del',
orderfast:'order/orderfast'
}
// 催单
export function orderfast(orderId, param) {
return request.get(api.orderfast, { orderId, ...param })
}
// 当前用户待处理的订单数量
export function todoCounts(param, option) {
return request.get(api.todoCounts, param, option)
}
// 我的订单列表
export function list(param, option) {
return request.get(api.list, param, option)
}
// 订单详情
export function detail(orderId, param) {
return request.get(api.detail, { orderId, ...param })
}
// 获取物流信息
export function express(orderId, param) {
return request.get(api.express, { orderId, ...param })
}
// 取消订单
export function cancel(orderId, data) {
return request.post(api.cancel, { orderId, ...data })
}
// 确认收货
export function receipt(orderId, data) {
return request.post(api.receipt, { orderId, ...data })
}
// 核销二维码
export function extractQrcode(orderId, param) {
return request.get(api.extractQrcode, { orderId, ...param })
}
// 核销二维码
export function del(orderId, param) {
return request.get(api.del, { orderId, ...param })
}
// // 删除订单
// export function delete(orderId, param) {
// return request.get(api.delete, { orderId, ...param })
// }

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'order.comment/list',
submit: 'order.comment/submit',
}
// 待评价订单商品列表
export const list = (orderId, param) => {
return request.get(api.list, { orderId, ...param })
}
// 创建商品评价
export const submit = (orderId, data) => {
return request.post(api.submit, { orderId, form: data })
}

@ -0,0 +1,13 @@
import request from '@/utils/request'
// api地址
const apiUri = {
detail: 'page/detail'
}
// 页面数据
export function detail(pageId) {
return request.get(apiUri.detail, {
pageId
})
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'points.log/list'
}
// 积分明细列表
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,20 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'goods/presaleList',
canlpresale: 'goods/canlpresale'
}
/**
* 获取支付订单的信息
* @param {Number} orderId
* @param {Object} param
*/
export function list(param) {
return request.get(api.list, param)
}
export function canlpresale(param) {
return request.get(api.canlpresale, param)
}

@ -0,0 +1,27 @@
import request from '@/utils/request'
// api地址
const api = {
center: 'recharge/center',
submit: 'recharge/submit',
tradeQuery: 'recharge/tradeQuery'
}
// 充值中心页面数据
export const center = (param) => {
return request.get(api.center, param)
}
// 确认充值订单
export const submit = (data) => {
return request.post(api.submit, { form: data })
}
/**
* 交易查询
* 查询第三方支付订单是否付款成功
* @param {Object} param
*/
export function tradeQuery(param) {
return request.get(api.tradeQuery, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'recharge.order/list'
}
// 我的充值记录列表
export const list = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,35 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'refund/list',
goods: 'refund/goods',
apply: 'refund/apply',
detail: 'refund/detail',
delivery: 'refund/delivery'
}
// 售后单列表
export const list = (param, option) => {
return request.get(api.list, param, option)
}
// 订单商品详情
export const goods = (orderGoodsId, param) => {
return request.get(api.goods, { orderGoodsId, ...param })
}
// 申请售后
export const apply = (orderGoodsId, data) => {
return request.post(api.apply, { orderGoodsId, form: data })
}
// 售后单详情
export const detail = (orderRefundId, param) => {
return request.get(api.detail, { orderRefundId, ...param })
}
// 用户发货
export const delivery = (orderRefundId, data) => {
return request.post(api.delivery, { orderRefundId, form: data })
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
all: 'region/all',
tree: 'region/tree'
}
// 获取所有地区
export const all = (param) => {
return request.get(api.all, param)
}
// 获取所有地区(树状)
export const tree = (param) => {
return request.get(api.tree, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
data: 'setting/data'
}
// 设置项详情
export function data() {
return request.get(api.data)
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
order: 'sharp.checkout/order',
submit: 'sharp.checkout/submit'
}
// 结算台订单信息
export const order = (mode, param) => {
return request.get(api.order, { mode, ...param })
}
// 结算台订单提交
export const submit = (mode, data) => {
return request.post(api.submit, { mode, ...data }, { isPrompt: false })
}

@ -0,0 +1,23 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'sharp.goods/list',
detail: 'sharp.goods/detail',
poster: 'sharp.goods/poster'
}
// 秒杀活动商品列表
export const list = (activeTimeId, param, option) => {
return request.get(api.list, { activeTimeId, ...param }, option)
}
// 获取活动商品详情
export const detail = (activeTimeId, sharpGoodsId, param) => {
return request.get(api.detail, { activeTimeId, sharpGoodsId, ...param })
}
// 生成商品海报
export const poster = param => {
return request.get(api.poster, param)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
data: 'sharp.home/data'
}
// 秒杀活动首页
export const data = (param) => {
return request.get(api.data, param)
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
list: 'shop/list',
detail: 'shop/detail'
}
// 自提门店列表
export const list = (param) => {
return request.get(api.list, param)
}
// 门店详情
export const detail = (shopId) => {
return request.get(api.detail, { shopId })
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
getShopList: 'merchant/list',
getShopDetail: 'merchant/detail'
}
// 商户列表
export function getShopList(param) {
return request.get(api.getShopList, { ...param })
}
// 商户详情
export function getShopDetail(param) {
return request.get(api.getShopDetail, { ...param })
}

@ -0,0 +1,17 @@
import request from '@/utils/request'
// api地址
const api = {
detail: 'shop.order/detail',
extract: 'shop.order/extract'
}
// 核销订单详情 [只有店员才能查看]
export function detail(orderId, param) {
return request.get(api.detail, { orderId, ...param })
}
// 确认核销 [已取货]
export function extract(orderId, param) {
return request.post(api.extract, { orderId, ...param })
}

@ -0,0 +1,30 @@
import request from '@/utils/request'
// api地址
const api = {
publishDynamic: 'square/add',
getDynamic: 'square/list',
dynamicLike: 'square/dynamicLike',
dynamicDelete: 'square/delete'
}
// 发布动态
export function publishDynamic(param) {
return request.post(api.publishDynamic, { ...param })
}
// 获取动态列表
export function getDynamic(param) {
return request.get(api.getDynamic, { ...param })
}
// 动态点赞
export function dynamicLike(param) {
return request.post(api.dynamicLike, { ...param })
}
// 动态删除
export function deleteDynamic(param) {
return request.post(api.dynamicDelete, { ...param })
}

@ -0,0 +1,13 @@
import request from '@/utils/request'
// api地址
const api = {
data: 'store/data'
}
// 获取商城基础信息
const data = () => {
return request.get(api.data)
}
export default { data }

@ -0,0 +1,16 @@
import request from '@/utils/request'
// api地址
const api = {
courseType: 'course/getCourseType',
list: 'course/getCourseList'
}
// 分类
export const courseType = (param) => {
return request.get(api.courseType, param)
}
// 列表
export const courseList = (param) => {
return request.get(api.list, param)
}

@ -0,0 +1,18 @@
import request from '@/utils/request'
// api地址
const api = {
image: 'upload/image'
}
// 图片上传
export const image = (files, checkLogin = true) => {
// 文件上传大小, 5M
const maxSize = 1024 * 1024 * 5
// 执行上传
return new Promise((resolve, reject) => {
request.urlFileUpload({ name: 'file', files, maxSize, data: { filename: files[0].name, test: 123, checkLogin: Number(checkLogin) } })
.then(result => resolve(result.map(item => item.data.fileInfo.file_id), result))
.catch(reject)
})
}

@ -0,0 +1,68 @@
import request from '@/utils/request'
// api地址
const api = {
userInfo: 'user/info',
assets: 'user/assets',
bindMobile: 'user/bindMobile',
personal: 'user/personal',
todoCounts: "order/todoCounts",
delUser: "user/delete",
}
// 邀请码
export const getDealerInviteQrcode = (param) => {
return request.post('user/getDealerInviteQrcode', param)
}
// 会员码
export const getMembershipInviteQrcode = (param) => {
return request.post('user/getMembershipInviteQrcode', param)
}
// 注销
export const delUser = (param) => {
return request.post(api.delUser, param)
}
// 当前登录的用户信息
export const info = (param, option) => {
const options = {
isPrompt: true, //(默认 true 说明:本接口抛出的错误是否提示)
load: true, //(默认 true 说明:本接口是否提示加载动画)
...option
}
return request.get(api.userInfo, param, options)
}
// 订单数量
export const actionCounts = (param, option) => {
return request.post('order/actionCounts', param, option)
}
// 订单数量
export const todoCounts = (param, option) => {
return request.post(api.todoCounts, param, option)
}
// 账户资产
export const assets = (param, option) => {
return request.get(api.assets, param, option)
}
// 绑定手机号
export const bindMobile = (data, option) => {
return request.post(api.bindMobile, data, option)
}
// 修改个人信息(头像昵称)
export const personal = (data, option) => {
return request.post(api.personal, data, option)
}
// 修改用户信息设置
export const editUser = (data, option) => {
return request.post('user/editUser', data, option)
}
//// 修改个人信息(头像昵称)
export const wxHeadImgUpload = (data, option) => {
return request.post('upload/wxHeadImgUpload', data, option)
}

@ -0,0 +1,11 @@
import request from '@/utils/request'
// api地址
const api = {
receive: 'user.coupon/receive'
}
// 优惠券列表
export const receive = (data) => {
return request.post(api.receive, data)
}

@ -0,0 +1,32 @@
import request from '@/utils/request'
// api地址
const api = {
brandList: 'goods/brandList',
category: 'category/list',
getImage: 'goods/getCommonConfig',
vipList:'user/list',
updateVip:'user/updateUser'
}
// 大牌
export const brandList = (data) => {
return request.get(api.brandList, data)
}
// 分类
export const category = (data) => {
return request.get(api.category, data)
}
// 轮播
export const getImage = (data) => {
return request.get(api.getImage, data)
}
//会员管理
export const getVipList = (data) => {
return request.get(api.vipList, data)
}
//修改会员信息
export const updateVip = (data) => {
return request.post(api.updateVip, data)
}

@ -0,0 +1,31 @@
import request from '@/utils/request'
// api地址
const api = {
info: 'user/info',
list: 'dealer.Withdraw/list',
submit:'dealer.withdraw/submit',
balancelist:'balance.log/list',
rechargeSubmit:'recharge/submit'
}
// 用户信息
export const info = (param) => {
return request.get(api.info, param)
}
// 体现列表
export const balancelist = (param) => {
return request.get(api.balancelist, param)
}
// 余额列表
export const list = (param) => {
return request.get(api.list, param)
}
// 申请提现
export const submit = (param) => {
return request.post(api.submit, param)
}
// 充值
export const rechargeSubmit = (param) => {
return request.post(api.rechargeSubmit, param)
}

@ -0,0 +1,25 @@
import request from '@/utils/request'
// api地址
const api = {
jssdkConfig: 'wxofficial/jssdkConfig',
oauthUrl: 'wxofficial/oauthUrl',
oauthUserInfo: 'wxofficial/oauthUserInfo'
}
// 获取微信公众号jssdk配置参数
const jssdkConfig = url => {
return request.get(api.jssdkConfig, { url })
}
// 获取授权登录地址
const oauthUrl = callbackUrl => {
return request.get(api.oauthUrl, { callbackUrl })
}
// 获取微信用户信息
const oauthUserInfo = code => {
return request.get(api.oauthUserInfo, { code })
}
export default { jssdkConfig, oauthUrl, oauthUserInfo }

@ -0,0 +1,43 @@
/* utils.scss wxb72e75ddf0cbf9b0 */
@import "/utils/utils.scss";
page {
background: #fafafa;
}
@keyframes rotate {
0% {
transform: rotate(0deg) scale(1);
}
100% {
transform: rotate(360deg) scale(1);
}
}
/* #ifdef H5*/
uni-page {
box-shadow: 0 1rpx 44rpx rgba(169, 169, 169, .3);
}
.uni-app--showlayout+uni-tabbar.uni-tabbar-bottom,
.uni-app--showlayout+uni-tabbar.uni-tabbar-bottom .uni-tabbar,
.uni-app--showlayout+uni-tabbar.uni-tabbar-top,
.uni-app--showlayout+uni-tabbar.uni-tabbar-top .uni-tabbar {
left: var(--window-left);
right: var(--window-right);
}
.footer-fixed {
left: var(--window-left) !important;
right: var(--window-right) !important;
}
.u-mask,.u-drawer {
left: var(--window-left) !important;
right: var(--window-right) !important;
}
/* #endif */

@ -0,0 +1,7 @@
export const paginate = {
data: [], // 列表数据
current_page: 1, // 当前页码
last_page: 1, // 最大页码
per_page: 15, // 每页记录数
total: 0, // 总记录数
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,13 @@
import Enum from './enum'
/**
* 枚举类客户端类型
* ClientEnum
*/
export default new Enum([
{ key: 'APP', name: 'APP端', value: 'APP' },
{ key: 'H5', name: 'H5端', value: 'H5' },
{ key: 'WXOFFICIAL', name: '微信公众号端', value: 'WXOFFICIAL' },
{ key: 'MP_WEIXIN', name: '微信小程序端', value: 'MP-WEIXIN' },
{ key: 'MP_ALIPAY', name: '支付宝小程序端', value: 'MP-ALIPAY' },
])

@ -0,0 +1,10 @@
import Enum from '../enum'
/**
* 枚举类优惠券适用范围
* ApplyRangeEnum
*/
export default new Enum([
{ key: 'ALL', name: '全部商品', value: 10 },
{ key: 'SOME_GOODS', name: '指定商品', value: 20 }
])

@ -0,0 +1,10 @@
import Enum from '../enum'
/**
* 枚举类优惠券类型
* CouponTypeEnum
*/
export default new Enum([
{ key: 'FULL_DISCOUNT', name: '满减券', value: 10 },
{ key: 'DISCOUNT', name: '折扣券', value: 20 }
])

@ -0,0 +1,10 @@
import Enum from '../enum'
/**
* 枚举类优惠券到期类型
* ExpireTypeEnum
*/
export default new Enum([
{ key: 'RECEIVE', name: '领取后', value: 10 },
{ key: 'FIXED_TIME', name: '固定时间', value: 20 }
])

@ -0,0 +1,5 @@
import ApplyRangeEnum from './ApplyRange'
import ExpireTypeEnum from './ExpireType'
import CouponTypeEnum from './CouponType'
export { ApplyRangeEnum, CouponTypeEnum, ExpireTypeEnum }

@ -0,0 +1,11 @@
import Enum from '../../enum'
/**
* 枚举类分销商审核状态
* ApplyStatusEnum
*/
export default new Enum([
{ key: 'WAIT', name: '待审核', value: 10 },
{ key: 'PASSED', name: '审核通过', value: 20 },
{ key: 'REJECT', name: '驳回', value: 30 }
])

@ -0,0 +1,10 @@
import Enum from '../../enum'
/**
* 枚举类分销商申请方式
* ApplyTypeEnum
*/
export default new Enum([
{ key: 'AUDIT', name: '需后台审核', value: 10 },
{ key: 'PASS', name: '无需审核', value: 20 }
])

@ -0,0 +1,4 @@
import ApplyStatusEnum from './ApplyStatus'
import ApplyTypeEnum from './ApplyType'
export { ApplyStatusEnum, ApplyTypeEnum }

@ -0,0 +1,12 @@
import Enum from '../../enum'
/**
* 枚举类分销商提现申请状态
* ApplyStatusEnum
*/
export default new Enum([
{ key: 'WAIT', name: '待审核', value: 10 },
{ key: 'PASSED', name: '审核通过', value: 20 },
{ key: 'REJECT', name: '驳回', value: 30 },
{ key: 'PAYMENT', name: '已打款', value: 40 }
])

@ -0,0 +1,11 @@
import Enum from '../../enum'
/**
* 枚举类分销商体现打款方式
* PayTypeEnum
*/
export default new Enum([
{ key: 'WECHAT', name: '微信零钱', value: 10 },
{ key: 'ALIPAY', name: '支付宝', value: 20 },
{ key: 'BANK_CARD', name: '银行卡', value: 30 }
])

@ -0,0 +1,4 @@
import PayTypeEnum from './PayType'
import ApplyStatusEnum from './ApplyStatus'
export { PayTypeEnum, ApplyStatusEnum }

@ -0,0 +1,85 @@
/**
* 枚举类
* Enum.IMAGE.name => "图片"
* Enum.getNameByKey('IMAGE') => "图片"
* Enum.getValueByKey('IMAGE') => 10
* Enum.getNameByValue(10) => "图片"
* Enum.getData() => [{key: "IMAGE", name: "图片", value: 10}]
*/
class Enum {
constructor (param) {
const keyArr = []
const valueArr = []
if (!Array.isArray(param)) {
throw new Error('param is not an array!')
}
param.map(element => {
if (!element.key || !element.name) {
return
}
// 保存key值组成的数组,方便A.getName(name)类型的调用
keyArr.push(element.key)
valueArr.push(element.value)
// 根据key生成不同属性值,以便A.B.name类型的调用
this[element.key] = element
if (element.key !== element.value) {
this[element.value] = element
}
})
// 保存源数组
this.data = param
this.keyArr = keyArr
this.valueArr = valueArr
// 防止被修改
// Object.freeze(this)
}
// 根据key得到对象
keyOf (key) {
return this.data[this.keyArr.indexOf(key)]
}
// 根据key得到对象
valueOf (key) {
return this.data[this.valueArr.indexOf(key)]
}
// 根据key获取name值
getNameByKey (key) {
const prop = this.keyOf(key)
if (!prop) {
throw new Error('No enum constant' + key)
}
return prop.name
}
// 根据value获取name值
getNameByValue (value) {
const prop = this.valueOf(value)
if (!prop) {
throw new Error('No enum constant' + value)
}
return prop.name
}
// 根据key获取value值
getValueByKey (key) {
const prop = this.keyOf(key)
if (!prop) {
throw new Error('No enum constant' + key)
}
return prop.key
}
// 返回源数组
getData () {
return this.data
}
}
export default Enum

@ -0,0 +1,10 @@
import Enum from '../enum'
/**
* 枚举类商品类型
* GoodsTypeEnum
*/
export default new Enum([
{ key: 'PHYSICAL', name: '实物商品', value: 10 },
{ key: 'VIRTUAL', name: '虚拟商品', value: 20 }
])

@ -0,0 +1,10 @@
import Enum from '../enum'
/**
* 枚举类商品规格类型
* SpecTypeEnum
*/
export default new Enum([
{ key: 'SINGLE', name: '单规格', value: 10 },
{ key: 'MULTI', name: '多规格', value: 20 }
])

@ -0,0 +1,4 @@
import GoodsTypeEnum from './GoodsType'
import SpecTypeEnum from './SpecType'
export { GoodsTypeEnum, SpecTypeEnum }

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save