diff --git a/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue b/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue
index 4fbafa4d8..4b520501f 100644
--- a/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue
+++ b/yudao-ui-admin/src/views/deliverGoods/freightSet/creatTemplates.vue
@@ -374,7 +374,7 @@ export default {
shippingRegion() {
logistics.shippingRegion({ tempId: this.tempId }).then(res => {
res.data.forEach((item, index) => {
- item.title = JSON.parse(item.title)
+ // item.title = JSON.parse(item.title)
item.city_ids = item.title
})
this.ruleForm.region = res.data
diff --git a/yudao-ui-app/.hbuilderx/launch.json b/yudao-ui-app/.hbuilderx/launch.json
new file mode 100644
index 000000000..ee5be7746
--- /dev/null
+++ b/yudao-ui-app/.hbuilderx/launch.json
@@ -0,0 +1,20 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+ "version": "0.0",
+ "configurations": [{
+ "app-plus" :
+ {
+ "launchtype" : "local"
+ },
+ "default" :
+ {
+ "launchtype" : "local"
+ },
+ "mp-weixin" :
+ {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
+ }
+ ]
+}
diff --git a/yudao-ui-app/api/api.js b/yudao-ui-app/api/api.js
index 017325e3e..7432f97f3 100644
--- a/yudao-ui-app/api/api.js
+++ b/yudao-ui-app/api/api.js
@@ -67,7 +67,7 @@ export function setCouponReceive(couponId) {
* @param object data
*/
export function getCoupons(data) {
- return request.get('coupons', data, {
+ return request.get('front/coupons', data, {
noAuth: true
})
}
diff --git a/yudao-ui-app/api/order.js b/yudao-ui-app/api/order.js
index ef7768b91..6dd877ae4 100644
--- a/yudao-ui-app/api/order.js
+++ b/yudao-ui-app/api/order.js
@@ -12,7 +12,7 @@ export function getCartCounts(numType,type) {
*
*/
export function getCartList(data) {
- return request.get("cart/list", data);
+ return request.get("front/cart/list", data);
}
/**
@@ -21,19 +21,21 @@ export function getCartList(data) {
* @param int number 修改数量
*/
export function changeCartNum(cartId, number) {
- return request.post("cart/num", {
- id: cartId,
- number: number
- }, {}, 1);
+ return request.post("front/cart/num?id=" + cartId + "&number="+number)
}
+// export function changeCartNum(cartId, number) {
+// return request.post("front/cart/num", {
+// id: cartId,
+// number: number
+// }, {},);
+// }
/**
* 清除购物车
* @param object ids join(',') 切割成字符串
*/
export function cartDel(ids) {
- if (typeof ids === 'object')
- ids = ids.join(',');
- return request.post('cart/delete', {
+ console.log(ids)
+ return request.post('front/cart/delete', {
ids: ids
}, {}, 1);
}
@@ -43,7 +45,7 @@ export function cartDel(ids) {
*
*/
export function getResetCart(data) {
- return request.post('cart/resetcart', data);
+ return request.post('front/cart/resetcart', data);
}
/**
@@ -51,7 +53,7 @@ export function getResetCart(data) {
* @param object data
*/
export function getOrderList(data) {
- return request.get('order/list', data);
+ return request.get('front/order/list', data);
}
/**
@@ -59,7 +61,7 @@ export function getOrderList(data) {
* @param string unique
*/
export function orderProduct(data) {
- return request.post('order/product', data);
+ return request.post('front/order/product', data);
}
/**
@@ -68,7 +70,7 @@ export function orderProduct(data) {
*
*/
export function orderComment(data) {
- return request.post('order/comment', data);
+ return request.post('front/order/comment', data);
}
/**
@@ -76,14 +78,14 @@ export function orderComment(data) {
* @param object data
*/
export function orderPay(data) {
- return request.post('order/pay', data);
+ return request.post('front/order/pay', data);
}
/**
* 订单统计数据
*/
export function orderData() {
- return request.get('order/data')
+ return request.get('front/order/data')
}
/**
@@ -92,7 +94,7 @@ export function orderData() {
*
*/
export function orderCancel(id) {
- return request.post('order/cancel', {
+ return request.post('front/order/cancel', {
id: id
}, {}, 1);
}
@@ -103,7 +105,7 @@ export function orderCancel(id) {
*
*/
export function orderDel(uni) {
- return request.post('order/del', {
+ return request.post('front/order/del', {
id: uni
}, {}, 1);
}
@@ -113,7 +115,7 @@ export function orderDel(uni) {
* @param string uni
*/
export function getOrderDetail(uni) {
- return request.get('order/detail/' + uni);
+ return request.get('front/order/detail/' + uni);
}
/**
@@ -122,7 +124,7 @@ export function getOrderDetail(uni) {
*
*/
export function orderAgain(uni) {
- return request.post('order/again', {
+ return request.post('front/order/again', {
orderNo: uni
});
}
@@ -133,7 +135,7 @@ export function orderAgain(uni) {
*
*/
export function orderTake(uni) {
- return request.post('order/take', {
+ return request.post('front/order/take', {
id: uni
}, {}, 1);
}
@@ -143,7 +145,7 @@ export function orderTake(uni) {
* @returns {*}
*/
export function express(uni) {
- return request.get("order/express/" + uni);
+ return request.get("front/order/express/" + uni);
}
/**
@@ -151,7 +153,7 @@ export function express(uni) {
*
*/
export function ordeRefundReason() {
- return request.get('order/refund/reason');
+ return request.get('front/order/refund/reason');
}
/**
@@ -159,7 +161,7 @@ export function ordeRefundReason() {
* @param object data
*/
export function orderRefundVerify(data) {
- return request.post('order/refund', data);
+ return request.post('front/order/refund', data);
}
/**
@@ -167,7 +169,7 @@ export function orderRefundVerify(data) {
* @param string cartId
*/
export function orderConfirm(cartId, isNew, addAgain,secKill,combination,bargain) {
- return request.post('order/confirm', {
+ return request.post('front/order/confirm', {
cartIds: cartId,
isNew: isNew,
addAgain: addAgain,
@@ -183,7 +185,7 @@ export function orderConfirm(cartId, isNew, addAgain,secKill,combination,bargain
*
*/
export function getCouponsOrderPrice(preOrderNo) {
- return request.get(`coupons/order/${preOrderNo}`)
+ return request.get(`front/coupons/order/${preOrderNo}`)
}
/**
@@ -193,7 +195,7 @@ export function getCouponsOrderPrice(preOrderNo) {
*
*/
export function orderCreate(data) {
- return request.post('order/create', data);
+ return request.post('front/order/create', data);
}
/**
@@ -203,7 +205,7 @@ export function orderCreate(data) {
* @returns {*}
*/
export function postOrderComputed(data) {
- return request.post("order/computed/price", data);
+ return request.post("front/order/computed/price", data);
}
/**
@@ -211,7 +213,7 @@ export function postOrderComputed(data) {
* @param object data
*/
export function qrcodeApi(data) {
- return request.post('qrcode/str2base64', data, {}, 1);
+ return request.post('front/qrcode/str2base64', data, {}, 1);
}
/**
@@ -219,7 +221,7 @@ export function qrcodeApi(data) {
* @param object data
*/
export function wechatOrderPay(data) {
- return request.post('pay/payment', data);
+ return request.post('api/front/pay/payment', data);
}
/**
@@ -227,7 +229,7 @@ export function wechatOrderPay(data) {
* @param object data
*/
export function wechatQueryPayResult(data) {
- return request.get('pay/queryPayResult?orderNo=' + data);
+ return request.get('front/pay/queryPayResult?orderNo=' + data);
}
/**
@@ -235,7 +237,7 @@ export function wechatQueryPayResult(data) {
* @param object data
*/
export function applyRefund(orderId) {
- return request.get(`order/apply/refund/${orderId}`);
+ return request.get(`front/order/apply/refund/${orderId}`);
}
/**
@@ -251,5 +253,5 @@ export function preOrderApi(data) {
* @param object preOrderNo
*/
export function loadPreOrderApi(preOrderNo) {
- return request.get(`order/load/pre/${preOrderNo}`);
+ return request.get(`front/order/load/pre/${preOrderNo}`);
}
diff --git a/yudao-ui-app/api/product.js b/yudao-ui-app/api/product.js
index 627013c46..281cbce58 100644
--- a/yudao-ui-app/api/product.js
+++ b/yudao-ui-app/api/product.js
@@ -1,8 +1,17 @@
//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
const { http } = uni.$u
-
+import request from "@/utils/request.js";
// 查询商品spu列表
export const productSpuPage = params => http.get('product/spu/page', { params })
// 查询商品
-export const getSpuDetail = id => http.get('product/spu/get-detail?id=' + id, { })
+export const getSpuDetail = id => request.get('front/product/detail/' + id, { })
+
+// 查询商品列表
+export const productPage = params => request.get('front/products', { params })
+
+// 获取Banner图
+export const getBanner = params => request.post('market/banner/list', { params })
+
+// 获取租户
+export const getTenant = id => request.get('tenant/get/' , {id:id })
diff --git a/yudao-ui-app/common/config.js b/yudao-ui-app/common/config.js
index 66cf4a94e..b3fda4c66 100644
--- a/yudao-ui-app/common/config.js
+++ b/yudao-ui-app/common/config.js
@@ -1,6 +1,7 @@
module.exports = {
//后端接口地址
- baseUrl: 'http://127.0.0.1:48080/app-api',
+ // baseUrl: 'https://cmx.bskies.cc:8000//cyywl-phone-query-api/',
+ baseUrl: 'http://jn6jh2.natappfree.cc/app-api',
// baseUrl: 'http://api-dashboard.yudao.iocoder.cn/app-api',
// 超时
timeout: 30000,
diff --git a/yudao-ui-app/libs/order.js b/yudao-ui-app/libs/order.js
index 3cdf6af20..92ffabde5 100644
--- a/yudao-ui-app/libs/order.js
+++ b/yudao-ui-app/libs/order.js
@@ -35,8 +35,9 @@ export function getPreOrder(preOrderType, orderDetails) {
"preOrderType": preOrderType,
"orderDetails": orderDetails
}).then(res => {
+ // console.log(res.data.columns.preOrderNo,'preOrder')
uni.navigateTo({
- url: '/pages/users/order_confirm/index?preOrderNo=' + res.data.preOrderNo
+ url: '/pages/users/order_confirm/index?preOrderNo=' + res.data.columns.preOrderNo
});
}).catch(err => {
return util.Tips({
diff --git a/yudao-ui-app/package-lock.json b/yudao-ui-app/package-lock.json
index e6a23bf59..6d748ad88 100644
--- a/yudao-ui-app/package-lock.json
+++ b/yudao-ui-app/package-lock.json
@@ -3,332 +3,6 @@
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
- "packages": {
- "": {
- "name": "yudao-ui-app",
- "version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "clipboard": "^2.0.11",
- "html-to-image": "^1.11.11",
- "qrcode": "^1.5.3"
- }
- },
- "node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dependencies": {
- "color-convert": "^2.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/camelcase": {
- "version": "5.3.1",
- "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-5.3.1.tgz",
- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/clipboard": {
- "version": "2.0.11",
- "resolved": "https://registry.npmmirror.com/clipboard/-/clipboard-2.0.11.tgz",
- "integrity": "sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==",
- "dependencies": {
- "good-listener": "^1.2.2",
- "select": "^1.1.2",
- "tiny-emitter": "^2.0.0"
- }
- },
- "node_modules/cliui": {
- "version": "6.0.0",
- "resolved": "https://registry.npmmirror.com/cliui/-/cliui-6.0.0.tgz",
- "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
- "dependencies": {
- "string-width": "^4.2.0",
- "strip-ansi": "^6.0.0",
- "wrap-ansi": "^6.2.0"
- }
- },
- "node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- },
- "node_modules/decamelize": {
- "version": "1.2.0",
- "resolved": "https://registry.npmmirror.com/decamelize/-/decamelize-1.2.0.tgz",
- "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/delegate": {
- "version": "3.2.0",
- "resolved": "https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz",
- "integrity": "sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw=="
- },
- "node_modules/dijkstrajs": {
- "version": "1.0.3",
- "resolved": "https://registry.npmmirror.com/dijkstrajs/-/dijkstrajs-1.0.3.tgz",
- "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA=="
- },
- "node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
- },
- "node_modules/encode-utf8": {
- "version": "1.0.3",
- "resolved": "https://registry.npmmirror.com/encode-utf8/-/encode-utf8-1.0.3.tgz",
- "integrity": "sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw=="
- },
- "node_modules/find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.npmmirror.com/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
- "dependencies": {
- "locate-path": "^5.0.0",
- "path-exists": "^4.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/get-caller-file": {
- "version": "2.0.5",
- "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "engines": {
- "node": "6.* || 8.* || >= 10.*"
- }
- },
- "node_modules/good-listener": {
- "version": "1.2.2",
- "resolved": "https://registry.npmmirror.com/good-listener/-/good-listener-1.2.2.tgz",
- "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==",
- "dependencies": {
- "delegate": "^3.1.2"
- }
- },
- "node_modules/html-to-image": {
- "version": "1.11.11",
- "resolved": "https://registry.npmmirror.com/html-to-image/-/html-to-image-1.11.11.tgz",
- "integrity": "sha512-9gux8QhvjRO/erSnDPv28noDZcPZmYE7e1vFsBLKLlRlKDSqNJYebj6Qz1TGd5lsRV+X+xYyjCKjuZdABinWjA=="
- },
- "node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
- "dependencies": {
- "p-locate": "^4.1.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/p-limit": {
- "version": "2.3.0",
- "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-2.3.0.tgz",
- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "dependencies": {
- "p-try": "^2.0.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
- "dependencies": {
- "p-limit": "^2.2.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmmirror.com/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/pngjs": {
- "version": "5.0.0",
- "resolved": "https://registry.npmmirror.com/pngjs/-/pngjs-5.0.0.tgz",
- "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==",
- "engines": {
- "node": ">=10.13.0"
- }
- },
- "node_modules/qrcode": {
- "version": "1.5.3",
- "resolved": "https://registry.npmmirror.com/qrcode/-/qrcode-1.5.3.tgz",
- "integrity": "sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==",
- "dependencies": {
- "dijkstrajs": "^1.0.1",
- "encode-utf8": "^1.0.3",
- "pngjs": "^5.0.0",
- "yargs": "^15.3.1"
- },
- "bin": {
- "qrcode": "bin/qrcode"
- },
- "engines": {
- "node": ">=10.13.0"
- }
- },
- "node_modules/require-directory": {
- "version": "2.1.1",
- "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/require-main-filename": {
- "version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/require-main-filename/-/require-main-filename-2.0.0.tgz",
- "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="
- },
- "node_modules/select": {
- "version": "1.1.2",
- "resolved": "https://registry.npmmirror.com/select/-/select-1.1.2.tgz",
- "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA=="
- },
- "node_modules/set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmmirror.com/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
- },
- "node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/tiny-emitter": {
- "version": "2.1.0",
- "resolved": "https://registry.npmmirror.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
- "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
- },
- "node_modules/which-module": {
- "version": "2.0.1",
- "resolved": "https://registry.npmmirror.com/which-module/-/which-module-2.0.1.tgz",
- "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ=="
- },
- "node_modules/wrap-ansi": {
- "version": "6.2.0",
- "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
- "dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/y18n": {
- "version": "4.0.3",
- "resolved": "https://registry.npmmirror.com/y18n/-/y18n-4.0.3.tgz",
- "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="
- },
- "node_modules/yargs": {
- "version": "15.4.1",
- "resolved": "https://registry.npmmirror.com/yargs/-/yargs-15.4.1.tgz",
- "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
- "dependencies": {
- "cliui": "^6.0.0",
- "decamelize": "^1.2.0",
- "find-up": "^4.1.0",
- "get-caller-file": "^2.0.1",
- "require-directory": "^2.1.1",
- "require-main-filename": "^2.0.0",
- "set-blocking": "^2.0.0",
- "string-width": "^4.2.0",
- "which-module": "^2.0.0",
- "y18n": "^4.0.0",
- "yargs-parser": "^18.1.2"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/yargs-parser": {
- "version": "18.1.3",
- "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-18.1.3.tgz",
- "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
- "dependencies": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- },
- "engines": {
- "node": ">=6"
- }
- }
- },
"dependencies": {
"ansi-regex": {
"version": "5.0.1",
diff --git a/yudao-ui-app/pages.json b/yudao-ui-app/pages.json
index da66973c9..2d84fc156 100644
--- a/yudao-ui-app/pages.json
+++ b/yudao-ui-app/pages.json
@@ -586,13 +586,18 @@
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [
- // {
- // "pagePath": "pages/index/index",
- // "iconPath": "static/images/tabbar/nav_icon_shop.png",
- // "selectedIconPath": "static/images/tabbar/nav_icon_shop_active.png",
- // "text": "商城"
- // },
-
+ {
+ "pagePath": "pages/index/index",
+ "iconPath": "static/images/tabbar/nav_icon_shop.png",
+ "selectedIconPath": "static/images/tabbar/nav_icon_shop_active.png",
+ "text": "商城"
+ },
+ {
+ "pagePath": "pages/goods_cate/goods_cate",
+ "iconPath": "static/images/tabbar/nav_icon_sort.png",
+ "selectedIconPath": "static/images/tabbar/nav_icon_sort_active.png",
+ "text": "分类"
+ },
{
"pagePath": "pages/member_application/index",
"iconPath": "static/images/tabbar/nav_icon_member.png",
@@ -606,18 +611,12 @@
"text": "会员申请",
"visible":false
},
- {
- "pagePath": "pages/goods_cate/goods_cate",
- "iconPath": "static/images/tabbar/nav_icon_sort.png",
- "selectedIconPath": "static/images/tabbar/nav_icon_sort_active.png",
- "text": "分类"
- },
- // {
- // "pagePath": "pages/order_addcart/order_addcart",
- // "iconPath": "static/images/tabbar/nav_icon_cart.png",
- // "selectedIconPath": "static/images/3-002.png",
- // "text": "购物车"
- // },
+ {
+ "pagePath": "pages/order_addcart/order_addcart",
+ "iconPath": "static/images/tabbar/nav_icon_cart.png",
+ "selectedIconPath": "static/images/3-002.png",
+ "text": "购物车"
+ },
{
"pagePath": "pages/user/index",
"iconPath": "static/images/tabbar/nav_icon_my.png",
diff --git a/yudao-ui-app/pages/cart/cart - 副本.vue b/yudao-ui-app/pages/cart/cart - 副本.vue
new file mode 100644
index 000000000..00a190767
--- /dev/null
+++ b/yudao-ui-app/pages/cart/cart - 副本.vue
@@ -0,0 +1,225 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 登录查看
+
+
+
+
+
+
+
+
+
+
+
+
+ 合计:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-ui-app/pages/cart/cart.vue b/yudao-ui-app/pages/cart/cart.vue
index 00a190767..92858763f 100644
--- a/yudao-ui-app/pages/cart/cart.vue
+++ b/yudao-ui-app/pages/cart/cart.vue
@@ -1,52 +1,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 登录查看
-
-
-
-
-
-
-
-
-
-
-
-
- 合计:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -156,70 +113,5 @@ export default {
diff --git a/yudao-ui-app/pages/index/index - 副本.vue b/yudao-ui-app/pages/index/index - 副本.vue
new file mode 100644
index 000000000..c04cadebf
--- /dev/null
+++ b/yudao-ui-app/pages/index/index - 副本.vue
@@ -0,0 +1,1378 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ {{item.info}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 领取优惠券
+ 福利大礼包,省了又省
+
+ 查看全部
+
+
+
+
+ {{item.name}}
+ {{item.money?Number(item.money):''}}元
+ 领取
+ 已领取
+ 满{{item.minPrice?Number(item.minPrice):''}}元可用
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+ {{item.info}}
+
+
+
+
+
+
+
+
+
+
+ 秒杀
+ 砍价
+ 拼团
+
+
+
+ {{item.storeName}}
+ ¥{{item.otPrice}}
+
+ ¥{{item.price}}
+ 券
+
+
+
+
+
+
+
+
+ 我是有底线的
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-ui-app/pages/index/index.vue b/yudao-ui-app/pages/index/index.vue
index 554e32cac..40c7c78f6 100644
--- a/yudao-ui-app/pages/index/index.vue
+++ b/yudao-ui-app/pages/index/index.vue
@@ -1,162 +1,86 @@
-
-
-
-
@@ -170,10 +94,20 @@
getCoupons,
setCouponReceive
} from '@/api/api.js';
+ import {
+ productPage,
+ getSpuDetail,
+ getBanner,
+ getTenant
+ } from '../../api/product.js'
+ import {
+ postCartAdd
+ } from '../../api/store.js'
// #ifdef MP-WEIXIN
import {
getTemlIds
} from '@/api/api.js';
+
// import {
// SUBSCRIBE_MESSAGE,
// TIPS_KEY
@@ -208,9 +142,10 @@
getProductHot,
getGroomList
} from '@/api/store.js';
- // import {
- // setVisit
- // } from '@/api/user.js'
+ import {
+ setVisit,
+ getUserInfo
+ } from '@/api/user.js'
import recommend from '@/components/recommend';
// #ifdef MP
import authorize from '@/components/Authorize';
@@ -255,15 +190,18 @@
navIndex: 0,
navTop: [],
followUrl: "",
+ value: '',
followHid: true,
followCode: false,
logoUrl: "",
+ bannerList: {},
imgUrls: [],
itemNew: [],
menus: [],
bastInfo: '',
fastInfo: '',
fastList: [],
+ text:'尊敬的业主:接环卫所通知,近期将对小区进行大扫除,请大家做好准备',
firstInfo: '',
salesInfo: '',
indicatorDots: false,
@@ -277,6 +215,7 @@
newGoodsBananr: '',
couponList: [],
liveList: [],
+ productList: [],
hotList: [{
pic: '/static/images/hot_001.png'
}, {
@@ -302,6 +241,7 @@
explosiveMoney: [],
prodeuctTop: 0,
searchH: 0,
+ userInfo: {},
isFixed: false,
goodType: 0, //精品推荐Type
goodScroll: true, //精品推荐开关
@@ -316,6 +256,7 @@
configApi: {}, //分享类容配置
spikeList: [], // 秒杀
point: '',
+ tenant: {},
privacyStatus: false, // 隐私政策是否同意过
tabsScrollLeft: 0, // tabs当前偏移量
scrollLeft: 0,
@@ -373,6 +314,15 @@
// Promise.all([this.getAllCategory(), this.getIndexConfig()
// // , this.setVisit()
// ]);
+ getUserInfo().then(res => {
+ this.userInfo = res.data
+ getTenant(153).then(res=>{
+ this.tenant = res.data
+ this.text = res.data.notice
+ })
+ })
+ this.getBanners()
+ this.getIndexPage()
this.getIndexConfig();
// #ifdef MP
this.getTemlIds()
@@ -385,6 +335,49 @@
})
},
methods: {
+ change(){
+ console.log(this.value,'value')
+ },
+ // 搜索
+ searchSubmitValue: function() {
+ if (this.value.length > 0)
+ uni.navigateTo({
+ url: '/pages/goods_list/index?searchValue=' + this.value
+ })
+ else
+ return this.$util.Tips({
+ title: '请填写要搜索的产品信息'
+ });
+ },
+ // 加入购物车
+ addCart(id){
+ getSpuDetail(id).then(res => {
+ console.log(res.data.productValue.默认.id,'1111111111111')
+ let unique = res.data.productValue.默认.id
+ postCartAdd({
+ productId: id,
+ productAttrUnique: unique,
+ cartNum: 1
+ }).then(res=> {
+ console.log('加入成功')
+ })
+ })
+ },
+ go(){
+ console.log(this.productList,'------')
+ },
+
+ // 获取banner和userInfo
+ getBanners(){
+
+ // console.log(this.$store.tenantId,'tenantId')
+ getBanner().then(res=>{
+ this.bannerList = res.data.list[0]
+ console.log(this.bannerList,'banner')
+ })
+ console.log(this.userInfo.userId,'userInfo111111')
+
+ },
getCoupon: function(id, index) {
let that = this;
//领取优惠券
@@ -490,12 +483,22 @@
this.getGroomList();
this.shareApi();
this.getcouponList();
+
// #ifdef H5
// that.subscribe = res.data.subscribe;
// #endif
})
},
+ // 首页商品
+ getIndexPage(){
+ let that = this
+ productPage().then(res=>{
+ console.log(res.data.list,'商品列表')
+ this.productList = this.productList.concat(res.data.list)
+ console.log(this.productList,'---------')
+ })
+ },
getcouponList() {
let that = this;
getCoupons({
@@ -687,687 +690,299 @@
}
diff --git a/yudao-ui-app/pages/member_application/index.vue b/yudao-ui-app/pages/member_application/index.vue
index 92b2bcd13..076524845 100644
--- a/yudao-ui-app/pages/member_application/index.vue
+++ b/yudao-ui-app/pages/member_application/index.vue
@@ -58,16 +58,6 @@
},
data() {
return {
- // list: [
- // {
- // name:'购买记录',
- // fontSize:'28'
- // },
- // {
- // name:'为他人充值',
- // fontSize:'28'
- // },
- // ],
memberData: [],
payInfo: {
userPhone: '',
@@ -106,7 +96,7 @@
const res = await memberGradeInfo()
if(res.data.some((item) => !!parseInt(item.isExist))){
uni.setTabBarItem({
- index: 0,
+ index: 2,
pagePath: '/pages/member_equity/index'
})
uni.switchTab({
@@ -114,7 +104,7 @@
})
}else{
uni.setTabBarItem({
- index: 0,
+ index: 2,
pagePath: '/pages/member_application/index'
})
}
diff --git a/yudao-ui-app/pages/member_back/index.vue b/yudao-ui-app/pages/member_back/index.vue
new file mode 100644
index 000000000..188fd6127
--- /dev/null
+++ b/yudao-ui-app/pages/member_back/index.vue
@@ -0,0 +1,419 @@
+
+
+
+
+ {{memberDetail.grade}}
+
+ {{userInfo.mobile}}
+ 会员积分:{{memberDetail.integral}}
+
+ 再升1级即可获得【XX】等6项权益
+
+
+ 购买记录
+
+
+
+ 为他人充值
+
+
+
+
+
+
+ 会员等级{{vipData.findIndex((item) => item == memberDetail.grade) +1}}级
+
+
+
+
+
+
+
+ 我的会员权益
+
+ 查看权益>
+
+
+
+
+ 办理日期:{{item.startTime}}
+
+
+
+ 已返回金额(元)
+
+ {{item.totalMoney}}
+ 查看明细>
+
+
+
+ 带返还金额 (元)
+ {{list[list.findIndex((i) => item.gear == i.name)].name-item.totalMoney}}
+
+
+ 带返还期额
+ {{item.frequency}}x12
+
+
+ 返费结束时间
+ {{item.endTime}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-ui-app/pages/member_equity/index.vue b/yudao-ui-app/pages/member_equity/index.vue
index 31cf1db87..c928c5bbf 100644
--- a/yudao-ui-app/pages/member_equity/index.vue
+++ b/yudao-ui-app/pages/member_equity/index.vue
@@ -103,12 +103,12 @@
const resful = await memberGradeInfo()
if(resful.data.some((item) => !!parseInt(item.isExist))){
uni.setTabBarItem({
- index: 0,
+ index: 2,
pagePath: '/pages/member_equity/index'
})
}else{
uni.setTabBarItem({
- index: 0,
+ index: 2,
pagePath: '/pages/member_application/index'
})
uni.switchTab({
@@ -117,8 +117,7 @@
}
const res = await memberHeadInfo()
this.memberDetail = res.data
- // this.userInfo.mobile
- const equity = await query(13668261228)
+ const equity = await query(this.userInfo.mobile)
this.equityData = equity.data
},
methods: {
diff --git a/yudao-ui-app/pages/order_addcart/order_addcart - 副本.vue b/yudao-ui-app/pages/order_addcart/order_addcart - 副本.vue
new file mode 100644
index 000000000..621e35d43
--- /dev/null
+++ b/yudao-ui-app/pages/order_addcart/order_addcart - 副本.vue
@@ -0,0 +1,1227 @@
+
+
+
+
+ 100%正品保证
+ 所有商品精挑细选
+ 售后无忧
+
+
+
+ 购物数量 {{cartCount}}
+ {{ footerswitch ? '管理' : '取消'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.storeName}}
+
+ 属性:{{item.suk}}
+ ¥{{item.price}}
+
+
+ 请重新选择商品规格
+ 重选
+
+
+
+ -
+ {{item.cartNum}}
+ +
+
+
+
+
+
+
+
+
+
+
+ 失效商品
+
+
+ 失效商品
+
+ 清空
+
+
+
+
+ 失效
+
+
+
+
+
+ {{item.storeName}}
+ 属性:{{item.suk}}
+
+ 该商品已失效
+
+
+
+
+
+
+
+
+
+ {{loadTitleInvalid}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-ui-app/pages/order_addcart/order_addcart.vue b/yudao-ui-app/pages/order_addcart/order_addcart.vue
index 828105ade..0417a0c30 100644
--- a/yudao-ui-app/pages/order_addcart/order_addcart.vue
+++ b/yudao-ui-app/pages/order_addcart/order_addcart.vue
@@ -1,142 +1,72 @@
-
-
-
- 100%正品保证
- 所有商品精挑细选
- 售后无忧
-
-
-
- 购物数量 {{cartCount}}
- {{ footerswitch ? '管理' : '取消'}}
+
+
+
+ 管理
+
+
+
+
+
+
+
+
+
+ {{item.storeName}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.storeName}}
-
- 属性:{{item.suk}}
- ¥{{item.price}}
-
-
- 请重新选择商品规格
- 重选
-
-
-
- -
- {{item.cartNum}}
- +
-
-
-
-
-
-
-
-
-
-
- 失效商品
-
-
- 失效商品
-
- 清空
+
+
+
+
-
-
-
- 失效
-
-
-
-
-
- {{item.storeName}}
- 属性:{{item.suk}}
-
- 该商品已失效
-
-
-
+
+
+ {{item.storeName}}
+
+
+ {{item.storeName}}
+
+
+ ¥{{item.price}}
+
+
+
+
+
+
+
-
+ {{item.cartNum}}
+
+
+
+
-
-
- {{loadTitleInvalid}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 全选
+
+ 合计 ¥998.00
+ 结算()
+
+
+
+
+ 全选
+
+ 收藏
+ 删除
+
@@ -149,6 +79,7 @@
cartDel,
getResetCart
} from '@/api/order.js';
+ import Vue from 'vue'
import {
getProductHot,
collectAll,
@@ -164,6 +95,9 @@
import productWindow from '@/components/productWindow';
// #ifdef MP
import authorize from '@/components/Authorize';
+ import {
+ login
+ } from '../../api/public';
// #endif
export default {
components: {
@@ -183,6 +117,8 @@
valid: [],
invalid: []
},
+ cartNum: 0,
+ isManager: true,
isAllSelect: false, //全选
selectValue: [], //选中的数据
selectCountPrice: 0.00,
@@ -190,6 +126,35 @@
isShowAuth: false, //是否隐藏授权
hotScroll: false,
hotPage: 1,
+ value: '',
+ radiolist1: [{
+ name: '全选',
+ disabled: false
+ }],
+ checkboxValue1: [],
+ // 基本案列数据
+ checkboxList1: [{
+ firmId: 101,
+ firmName: '商铺名称',
+ selectedAll: false,
+ goods: [{
+ id: 1,
+ img: '@/static/images/shop/shoes.png',
+ name: '商品标题1',
+ spec: '规格:S码',
+ price: 127.5,
+ number: 1,
+ selected: false
+ }, {
+ id: 2,
+ img: '@/static/images/shop/shoes.png',
+ name: '标商品标题商品标题商品标',
+ spec: '规格:S码',
+ price: 2.5,
+ number: 2,
+ selected: false
+ }]
+ }, ],
hotLimit: 10,
loading: false,
loadend: false,
@@ -216,9 +181,36 @@
canShow: false
};
},
- computed: mapGetters(['isLogin']),
+ computed: {
+ ...mapGetters(['isLogin']),
+ reChecked() {
+ return item => {
+ return item.checked
+ }
+ },
+ allSelectval() {
+ let count = 0
+ this.cartList.forEach(item => {
+ if (item.checked) {
+ count += 1
+ }
+ })
+ if(count == this.cartList.length){
+ return true
+ }else {
+ return false
+ }
+ }
+ },
onLoad: function(options) {
let that = this;
+ console.log(that.isAllSelect, 'isAllselect')
+ that.cartList.valid.forEach((item, index) => {
+ if (!item.checked) {
+ that.isAllSelect = false
+ return
+ }
+ })
if (that.isLogin == false) {
toLogin();
}
@@ -254,6 +246,59 @@
};
},
methods: {
+ // 全选
+ allCheck() {
+ this.isAllSelect = !this.isAllSelect
+ if (this.isAllSelect) {
+ this.cartList.valid.forEach((item, index) => {
+ item.checked = true
+ Vue.set(this.cartList.valid, index, item)
+ Vue.set(this.cartList, 'valid', this.cartList.valid)
+ })
+ } else {
+ this.cartList.valid.forEach((item, index) => {
+ item.checked = false
+ Vue.set(this.cartList.valid, index, item)
+ Vue.set(this.cartList, 'valid', this.cartList.valid)
+ })
+ }
+ },
+ // 购物车重选
+ reelect(item, index) {
+ console.log(item,'item哇')
+ // let reCheck = {
+ // id: item.id,
+ // num: item.cartNum+2,
+ // productId: item.productId,
+ // unique: item.productAttrUnique
+ // }
+ // getResetCart(reCheck).then(res=> {
+ // console.log('重选成功')
+ // })
+ item.checked = !item.checked
+ Vue.set(this.cartList.valid, index, item)
+ Vue.set(this.cartList, 'valid', this.cartList.valid)
+
+ },
+ //购物车商品数量增加
+ ChangeCartCountJia(id, num) {
+ let count = num + 1
+ changeCartNum(id, count).then(res => {
+ console.log('++成功')
+ this.cartList.valid = []
+ this.getCartList()
+ })
+
+ },
+ // 购物车商品数量减少
+ ChangeCartCountJian(id, num) {
+ let count = num - 1
+ changeCartNum(id, count).then(res => {
+ console.log('-成功')
+ this.cartList.valid = []
+ this.getCartList()
+ })
+ },
// 授权关闭
authColse: function(e) {
this.isShowAuth = e;
@@ -456,8 +501,15 @@
this.$set(this.attr.productSelect, 'cart_num', e);
},
subDel: function(event) {
- let that = this,
- selectValue = that.selectValue;
+ let selectValue = []
+ this.cartList.valid.forEach(item => {
+ if (item.checked && (selectValue.indexOf(item.id) < 0)) {
+ selectValue.push(item.id)
+ }
+ })
+ console.log(selectValue,'000000')
+ this.selectValue = selectValue
+ let that = this
if (selectValue.length > 0)
cartDel(selectValue).then(res => {
that.loadend = false;
@@ -486,7 +538,7 @@
return productId;
},
subCollect: function(event) {
- let that = this,
+ let that = this
selectValue = that.selectValue;
if (selectValue.length > 0) {
let selectValueProductId = that.getSelectValueProductId();
@@ -508,9 +560,16 @@
},
// 立即下单
subOrder: function(event) {
+ let selectValue = []
+ this.cartList.valid.forEach(item => {
+ console.log(item, 99999999)
+ if (item.checked && (selectValue.indexOf(item.id) < 0)) {
+ selectValue.push(item.id)
+ }
- let that = this,
- selectValue = that.selectValue;
+ })
+ this.selectValue = selectValue
+ let that = this
if (selectValue.length > 0) {
that.getPreOrder();
} else {
@@ -728,6 +787,7 @@
if (c.data.count === 0) that.getHostProduct();
for (let i = 0; i < Math.ceil(that.cartCount / that.limit); i++) {
let cartList = await this.getCartData(data);
+ console.log(cartList, 'cartlist');
let valid = cartList.list;
let validList = that.$util.SplitArray(valid, that.cartList.valid);
let numSub = [{
@@ -768,6 +828,7 @@
that.$set(that.cartList, 'valid', validList);
data.page += 1;
that.selectValue = selectValue;
+ console.log(that.cartList)
let newArr = validList.filter(item => item.attrStatus);
that.isAllSelect = newArr.length == selectValue.length && newArr.length;
that.switchSelect();
@@ -792,6 +853,7 @@
loadendInvalid = invalid.length < that.limitInvalid;
let invalidList = that.$util.SplitArray(invalid, that.cartList.invalid);
that.$set(that.cartList, 'invalid', invalidList);
+ console.log(that.cartList, 'sssss')
that.loadendInvalid = loadendInvalid;
that.loadTitleInvalid = loadendInvalid ? '我也是有底线的' : '加载更多';
that.pageInvalid = that.pageInvalid + 1;
@@ -842,6 +904,7 @@
return item;
});
that.cartList.valid = newValid;
+ console.log(that.cartList.valid, 'that.cartList.valid')
if (that.footerswitch) {
that.isAllSelect = newValid.length === arr1.length + arr2.length;
} else {
@@ -880,348 +943,292 @@
diff --git a/yudao-ui-app/pages/order_details/index - 副本.vue b/yudao-ui-app/pages/order_details/index - 副本.vue
new file mode 100644
index 000000000..caa89d011
--- /dev/null
+++ b/yudao-ui-app/pages/order_details/index - 副本.vue
@@ -0,0 +1,1035 @@
+
+
+
+
+
+
+
+
+
+ 待付款
+
+ {{orderInfo.shippingType==1 ? '待发货':'待核销'}}
+ 待收货
+ 待评价
+ 已完成
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 核销信息
+
+
+
+
+
+
+
+
+
+
+ {{orderInfo.verifyCode}}
+
+
+
+ 核销时间
+
+
+ 每日:{{orderInfo.systemStore.dayTime.replace(',','-')}}
+
+
+
+
+ 使用说明
+
+ 可将二维码出示给店员扫描或提供数字核销码
+
+
+
+
+ 自提地址信息
+
+ 查看位置
+
+
+
+ {{orderInfo.realName}}{{orderInfo.userPhone}}
+ {{orderInfo.userAddress}}
+
+
+ {{orderInfo.systemStore?orderInfo.systemStore.name:''}}{{orderInfo.systemStore?orderInfo.systemStore.phone:''}}
+ {{orderInfo.systemStore?orderInfo.systemStore.detailedAddress:''}}
+
+
+
+
+
+ 联系客服
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{orderInfo.refundStatus==1?'商家审核中':orderInfo.refundStatus==2?'商家已退款':'商家拒绝退款'}}
+
+ {{orderInfo.refundStatus==1 ? "您已成功发起退款申请,请耐心等待商家处理;退款前请与商家协商一致,有助于更好的处理售后问题": orderInfo.refundStatus==2? "退款已成功受理,如商家已寄出商品请尽快退回;感谢您的支持": "拒绝原因:" + orderInfo.refundReason}}
+
+
+
+ 订单编号:
+ {{orderInfo.orderId}}
+
+ 复制
+
+
+ 复制
+
+
+
+
+ 下单时间:
+ {{(orderInfo.createTime || 0)}}
+
+
+ 支付状态:
+ 已支付
+ 未支付
+
+
+ 支付方式:
+ {{orderInfo.payTypeStr}}
+
+
+ 买家留言:
+ {{orderInfo.mark}}
+
+
+
+
+
+ 收货人:
+ {{orderInfo.realName}}
+
+
+ 联系电话:
+ {{orderInfo.userPhone}}
+
+
+ 收货地址:
+ {{orderInfo.userAddress}}
+
+
+
+
+
+ 配送方式:
+ 发货
+
+
+ 快递公司:
+ {{orderInfo.deliveryName || ''}}
+
+
+ 快递号:
+ {{orderInfo.deliveryId || ''}}
+
+
+
+
+ 配送方式:
+ 送货
+
+
+ 配送人姓名:
+ {{orderInfo.deliveryName || ''}}
+
+
+ 联系电话:
+ {{orderInfo.deliveryId || ''}}拨打
+
+
+
+
+ 虚拟发货:
+ 已发货,请注意查收
+
+
+
+
+
+ 商品总价:
+ ¥{{orderInfo.proTotalPrice}}
+
+
+ 运费:
+ ¥{{orderInfo.payPostage}}
+
+
+ 优惠券抵扣:
+ -¥{{orderInfo.couponPrice}}
+
+
+ 积分抵扣:
+ -¥{{orderInfo.deductionPrice}}
+
+ 实付款:¥{{orderInfo.payPrice}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-ui-app/pages/order_details/index.vue b/yudao-ui-app/pages/order_details/index.vue
index caa89d011..de7f77e20 100644
--- a/yudao-ui-app/pages/order_details/index.vue
+++ b/yudao-ui-app/pages/order_details/index.vue
@@ -1,625 +1,107 @@
-
-
-
-
-
-
diff --git a/yudao-ui-app/pages/users/order_confirm/index.vue b/yudao-ui-app/pages/users/order_confirm/index.vue
index 33043e6a3..7d667ebe0 100644
--- a/yudao-ui-app/pages/users/order_confirm/index.vue
+++ b/yudao-ui-app/pages/users/order_confirm/index.vue
@@ -111,7 +111,7 @@
+ >
@@ -952,6 +952,7 @@
payChannel: that.payChannel
};
+ console.log(that.system_store.phone,'data')
if (data.payType == 'yue' && parseFloat(that.userInfo.nowMoney) < parseFloat(that.totalPrice))
return that.$util
.Tips({
diff --git a/yudao-ui-app/pages/users/order_list/index.vue b/yudao-ui-app/pages/users/order_list/index.vue
index 95523454f..86770e065 100644
--- a/yudao-ui-app/pages/users/order_list/index.vue
+++ b/yudao-ui-app/pages/users/order_list/index.vue
@@ -1,110 +1,74 @@
-
-
-
@@ -148,7 +112,30 @@
orderData: {}, //订单详细统计
orderStatus: 0, //订单状态
page: 1,
+ list1: [{
+ name: '全部',
+ value: ''
+ }, {
+ name: '待付款',
+ value: '0'
+ }, {
+ name: '待发货',
+ value: '1'
+ }, {
+ name: '已完成',
+ value: '2'
+ }, {
+ name: '售后中',
+ value: '3'
+ }, {
+ name: '已关闭',
+ value: '4'
+ }],
limit: 20,
+ itemList: [],
+ currentPage: 1,
+ listTitle: '',
+ pageSize: 10,
payMode: [{
name: "微信支付",
icon: "icon-weixinzhifu",
@@ -171,6 +158,9 @@
};
},
computed: mapGetters(['isLogin', 'userInfo']),
+ onLoad() {
+ this.loadmore()
+ },
onShow() {
if (this.isLogin) {
this.loadend = false;
@@ -180,11 +170,65 @@
this.getOrderList();
this.payMode[1].number = this.userInfo.nowMoney;
this.$set(this, 'payMode', this.payMode);
- } else {
- toLogin();
}
+ // else {
+ // toLogin();
+ // }
},
methods: {
+ getStatus(val) {
+ if (val == '0') {
+ return '待发货'
+ }
+ if (val == '1') {
+ return '待收货'
+ }
+ if (val == '2') {
+ return '已收货'
+ }
+ if (val == '3') {
+ return '待评价'
+ }
+ if (val == '4') {
+ return '已完成'
+ }
+ },
+ loadMore() {
+ // 模拟异步请求数据
+ setTimeout(() => {
+ // 假设请求返回的数据是新的列表项
+ const newItems = Array.from({
+ length: this.pageSize
+ }, (_, index) => `Item ${index + 1}`);
+
+ // 将新的列表项添加到现有列表中
+ this.itemList = this.itemList.concat(newItems);
+ this.currentPage++;
+ }, 1000);
+ },
+ scrolltolower() {
+ this.loadmore()
+ },
+ loadmore() {
+ for (let i = 0; i < 30; i++) {
+ this.indexList.push({
+ url: this.urls[uni.$u.random(0, this.urls.length - 1)]
+ })
+ }
+ },
+ click(item) {
+ console.log(item.value,1)
+ if (item.value == this.orderStatus) return;
+ this.orderStatus = item.value
+ console.log(this.orderStatus)
+ this.loadend = false;
+ this.page = 1;
+ this.loadend = false;
+ this.$set(this, 'orderList', []);
+ this.getOrderData();
+ this.getOrderList()
+
+ },
onLoadFun() {
this.getOrderData();
this.getOrderList();
@@ -236,7 +280,7 @@
title: '缺少订单号无法取消订单'
});
uni.showLoading({
- title: '正在删除中'
+ title: '正在删除中'
});
orderCancel(order_id).then(res => {
uni.hideLoading();
@@ -371,180 +415,130 @@
},
onReachBottom: function() {
this.getOrderList();
+ },
+ mounted() {
+ this.loadMore();
}
}
diff --git a/yudao-ui-app/pages/users/order_list/index111.vue b/yudao-ui-app/pages/users/order_list/index111.vue
new file mode 100644
index 000000000..198d0c290
--- /dev/null
+++ b/yudao-ui-app/pages/users/order_list/index111.vue
@@ -0,0 +1,551 @@
+
+
+
+
+
+
+ 待付款
+ {{orderData.unPaidCount || 0}}
+
+
+ 待发货
+ {{orderData.unShippedCount || 0}}
+
+
+ 待收货
+ {{orderData.receivedCount || 0}}
+
+
+ 待评价
+ {{orderData.evaluatedCount || 0}}
+
+
+ 已完成
+ {{orderData.completeCount || 0}}
+
+
+
+
+
+
+
+ {{item.activityType}}
+
+ {{item.createTime}}
+
+ {{item.orderStatus}}
+
+
+
+
+
+
+
+ {{items.storeName}}
+
+ ¥{{items.price}}
+ x{{items.cartNum}}
+
+
+
+ 共{{item.totalNum}}件商品,总金额
+ ¥{{item.payPrice}}
+
+
+
+ 取消订单
+ 立即付款
+ 查看详情
+ 去评价
+ 删除订单
+
+
+
+
+
+ {{loadTitle}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yudao-ui-app/project.config.json b/yudao-ui-app/project.config.json
new file mode 100644
index 000000000..3c6fd75fe
--- /dev/null
+++ b/yudao-ui-app/project.config.json
@@ -0,0 +1,28 @@
+{
+ "appid": "wx51c5e9eb4ec5cce7",
+ "compileType": "miniprogram",
+ "libVersion": "2.32.0",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "setting": {
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "minified": true,
+ "enhance": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmRelationList": [],
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ }
+ },
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ }
+}
\ No newline at end of file
diff --git a/yudao-ui-app/project.private.config.json b/yudao-ui-app/project.private.config.json
new file mode 100644
index 000000000..d7b40e625
--- /dev/null
+++ b/yudao-ui-app/project.private.config.json
@@ -0,0 +1,7 @@
+{
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "projectname": "yudao-ui-app",
+ "setting": {
+ "compileHotReLoad": true
+ }
+}
\ No newline at end of file
diff --git a/yudao-ui-app/static/images/shop/bag.png b/yudao-ui-app/static/images/shop/bag.png
new file mode 100644
index 000000000..9accdc2e4
Binary files /dev/null and b/yudao-ui-app/static/images/shop/bag.png differ
diff --git a/yudao-ui-app/static/images/shop/car.png b/yudao-ui-app/static/images/shop/car.png
new file mode 100644
index 000000000..1c916c9dc
Binary files /dev/null and b/yudao-ui-app/static/images/shop/car.png differ
diff --git a/yudao-ui-app/static/images/shop/cart_bg.png b/yudao-ui-app/static/images/shop/cart_bg.png
new file mode 100644
index 000000000..fd765496c
Binary files /dev/null and b/yudao-ui-app/static/images/shop/cart_bg.png differ
diff --git a/yudao-ui-app/static/images/shop/checked.png b/yudao-ui-app/static/images/shop/checked.png
new file mode 100644
index 000000000..c2b7565cd
Binary files /dev/null and b/yudao-ui-app/static/images/shop/checked.png differ
diff --git a/yudao-ui-app/static/images/shop/cloth.png b/yudao-ui-app/static/images/shop/cloth.png
new file mode 100644
index 000000000..2b31ad2c0
Binary files /dev/null and b/yudao-ui-app/static/images/shop/cloth.png differ
diff --git a/yudao-ui-app/static/images/shop/go.png b/yudao-ui-app/static/images/shop/go.png
new file mode 100644
index 000000000..34c486e38
Binary files /dev/null and b/yudao-ui-app/static/images/shop/go.png differ
diff --git a/yudao-ui-app/static/images/shop/index_cart.png b/yudao-ui-app/static/images/shop/index_cart.png
new file mode 100644
index 000000000..9c8d4859e
Binary files /dev/null and b/yudao-ui-app/static/images/shop/index_cart.png differ
diff --git a/yudao-ui-app/static/images/shop/index_hbottom.png b/yudao-ui-app/static/images/shop/index_hbottom.png
new file mode 100644
index 000000000..8a46b670c
Binary files /dev/null and b/yudao-ui-app/static/images/shop/index_hbottom.png differ
diff --git a/yudao-ui-app/static/images/shop/index_headerbg.png b/yudao-ui-app/static/images/shop/index_headerbg.png
new file mode 100644
index 000000000..a01774faf
Binary files /dev/null and b/yudao-ui-app/static/images/shop/index_headerbg.png differ
diff --git a/yudao-ui-app/static/images/shop/index_hot.png b/yudao-ui-app/static/images/shop/index_hot.png
new file mode 100644
index 000000000..6b4dd866e
Binary files /dev/null and b/yudao-ui-app/static/images/shop/index_hot.png differ
diff --git a/yudao-ui-app/static/images/shop/index_search.png b/yudao-ui-app/static/images/shop/index_search.png
new file mode 100644
index 000000000..5153c7187
Binary files /dev/null and b/yudao-ui-app/static/images/shop/index_search.png differ
diff --git a/yudao-ui-app/static/images/shop/navigation.png b/yudao-ui-app/static/images/shop/navigation.png
new file mode 100644
index 000000000..3af0d7fd0
Binary files /dev/null and b/yudao-ui-app/static/images/shop/navigation.png differ
diff --git a/yudao-ui-app/static/images/shop/nochecked.png b/yudao-ui-app/static/images/shop/nochecked.png
new file mode 100644
index 000000000..ffbb95cb4
Binary files /dev/null and b/yudao-ui-app/static/images/shop/nochecked.png differ
diff --git a/yudao-ui-app/static/images/shop/shoes.png b/yudao-ui-app/static/images/shop/shoes.png
new file mode 100644
index 000000000..508eb8da4
Binary files /dev/null and b/yudao-ui-app/static/images/shop/shoes.png differ
diff --git a/yudao-ui-app/static/images/shop/wechat.png b/yudao-ui-app/static/images/shop/wechat.png
new file mode 100644
index 000000000..4fbd223e5
Binary files /dev/null and b/yudao-ui-app/static/images/shop/wechat.png differ
diff --git a/yudao-ui-app/static/images/shop/zfb.png b/yudao-ui-app/static/images/shop/zfb.png
new file mode 100644
index 000000000..f84f3d4eb
Binary files /dev/null and b/yudao-ui-app/static/images/shop/zfb.png differ