From d626c479a920122963a56bcdd1577aab0a144186 Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Mon, 29 Apr 2024 10:44:50 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2=E5=B8=83?=
=?UTF-8?q?=E5=B1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/user.js | 4 +-
config/app.js | 2 +-
pages.json | 156 +++++++++---------
pages/index/index.vue | 142 ++++++++++++----
pages/my/my.vue | 5 +-
pagesOrder/addressEdit/addressEdit.vue | 13 +-
pagesOrder/addressList/addressList.vue | 13 +-
static/icon/cart.png | Bin 0 -> 2974 bytes
unpackage/dist/dev/mp-weixin/app.json | 26 ---
unpackage/dist/dev/mp-weixin/common/assets.js | 10 +-
unpackage/dist/dev/mp-weixin/common/vendor.js | 2 +
.../dev/mp-weixin/components/addressPopup.js | 4 +-
.../dist/dev/mp-weixin/pages/cart/cart.js | 6 +-
.../dist/dev/mp-weixin/pages/index/index.js | 84 ++++++----
.../dist/dev/mp-weixin/pages/index/index.json | 3 +-
.../dist/dev/mp-weixin/pages/index/index.wxml | 2 +-
.../dist/dev/mp-weixin/pages/index/index.wxss | 56 ++++++-
.../dist/dev/mp-weixin/pages/login/login.js | 4 +-
unpackage/dist/dev/mp-weixin/pages/my/my.js | 3 +-
unpackage/dist/dev/mp-weixin/pages/my/my.wxml | 2 +-
.../pagesOrder/addressEdit/addressEdit.js | 10 +-
.../pagesOrder/addressList/addressList.js | 9 +-
.../dev/mp-weixin/pagesOrder/detail/detail.js | 4 +-
.../dist/dev/mp-weixin/project.config.json | 25 +--
24 files changed, 367 insertions(+), 218 deletions(-)
create mode 100644 static/icon/cart.png
diff --git a/api/user.js b/api/user.js
index 4e54b11..1789f21 100644
--- a/api/user.js
+++ b/api/user.js
@@ -23,10 +23,10 @@ export const addressDeleteApi = (data)=>{
// 地址列表
export const addressListsApi = (data)=>{
- return request.post('/user/address/lists', data);
+ return request.get('/user/address/lists', data);
}
// 地址详情
export const addressDetailApi = (data)=>{
- return request.post('/user/address/detail', data);
+ return request.get('/user/address/detail', data);
}
\ No newline at end of file
diff --git a/config/app.js b/config/app.js
index 8ec2177..f314d2a 100644
--- a/config/app.js
+++ b/config/app.js
@@ -6,7 +6,7 @@ let env = "dev"
switch(env){
case 'prod': BASE_URL = '';break;
- default: BASE_URL = 'http://192.168.1.9:8787';
+ default: BASE_URL = 'http://192.168.1.21:8787';
}
let HTTP_REQUEST_URL
diff --git a/pages.json b/pages.json
index 27b3e8b..515ed85 100644
--- a/pages.json
+++ b/pages.json
@@ -1,19 +1,19 @@
{
"easycom": {
- "autoscan": true,
- // 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
- "custom": {
- "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
- "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
- "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue"
- }
- },
+ "autoscan": true,
+ // 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
+ "custom": {
+ "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
+ "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
+ "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue"
+ }
+ },
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "购物",
- "disableScroll": true ,
+ "disableScroll": true,
"navigationStyle": "custom"
}
},
@@ -22,7 +22,7 @@
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false,
-
+
"navigationStyle": "custom"
}
},
@@ -42,87 +42,79 @@
"navigationStyle": "custom"
}
}
-
+
],
- "subPackages": [
- {
- "root": "pagesOrder",
- "pages": [
- {
- "path": "order/order",
- "style": {
- "navigationBarTitleText": "我的订单",
- "enablePullDownRefresh": false
- }
- },
- {
- "path" : "detail/detail",
- "style" :
- {
- "navigationBarTitleText" : "",
- "enablePullDownRefresh" : false
- }
- },
- {
- "path" : "addressList/addressList",
- "style" :
- {
- "navigationBarTitleText" : "地址管理",
- "enablePullDownRefresh" : false
- }
- },
- {
- "path" : "addressEdit/addressEdit",
- "style" :
- {
- "navigationBarTitleText" : "",
- "enablePullDownRefresh" : false
- }
- },
- {
- "path" : "settle/settle",
- "style" :
- {
- "navigationBarTitleText" : "确认订单",
- "enablePullDownRefresh" : false
- }
+ "subPackages": [{
+ "root": "pagesOrder",
+ "pages": [{
+ "path": "order/order",
+ "style": {
+ "navigationBarTitleText": "我的订单",
+ "enablePullDownRefresh": false
}
- ]
- }
- ],
+ },
+ {
+ "path": "detail/detail",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "addressList/addressList",
+ "style": {
+ "navigationBarTitleText": "地址管理",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "addressEdit/addressEdit",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "settle/settle",
+ "style": {
+ "navigationBarTitleText": "确认订单",
+ "enablePullDownRefresh": false
+ }
+ }
+ ]
+ }],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#fff"
},
- "tabBar": {
- "color": "#999999",
- "selectedColor": "#20b128",
- "borderStyle": "white",
- "backgroundColor": "#FFFFFF",
- // "iconWidth": "40px",
- "list": [{
- "pagePath": "pages/index/index",
- "text": "首页",
- "iconPath": "static/tab/a.png",
- "selectedIconPath": "static/tab/aa.png"
- },
- {
- "pagePath": "pages/cart/cart",
- "text": "购物车",
- "iconPath": "static/tab/b.png",
- "selectedIconPath": "static/tab/ba.png"
- },
+ // "tabBar": {
+ // "color": "#999999",
+ // "selectedColor": "#20b128",
+ // "borderStyle": "white",
+ // "backgroundColor": "#FFFFFF",
+ // "list": [{
+ // "pagePath": "pages/index/index",
+ // "text": "首页",
+ // "iconPath": "static/tab/a.png",
+ // "selectedIconPath": "static/tab/aa.png"
+ // },
+ // {
+ // "pagePath": "pages/cart/cart",
+ // "text": "购物车",
+ // "iconPath": "static/tab/b.png",
+ // "selectedIconPath": "static/tab/ba.png"
+ // },
- {
- "pagePath": "pages/my/my",
- "text": "我的",
- "iconPath": "static/tab/c.png",
- "selectedIconPath": "static/tab/ca.png"
- }
+ // {
+ // "pagePath": "pages/my/my",
+ // "text": "我的",
+ // "iconPath": "static/tab/c.png",
+ // "selectedIconPath": "static/tab/ca.png"
+ // }
- ]
- },
+ // ]
+ // },
"uniIdRouter": {}
}
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index c1f4fad..11cd7b9 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,24 +1,23 @@
-
-
-
+ 里海商户采购平台
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 购物车
+
+
+
+ 个人中心
+
+
@@ -55,7 +54,7 @@
{{item.name}}
-
+
@@ -117,11 +116,28 @@
-
+
-
+
+
+
+ 合计
+ ¥50.00
+
+
+ 原价 ¥50.00
+ 优惠 ¥0.00
+
+
+
+ 结算
+
+
+
+
+
@@ -140,8 +156,8 @@
console.log('选择', item, index);
topActive.value = item.id;
show.value = 0;
- goodClassTow.value = item?.children||[];
- goodClassThree.value = goodClassTow.value[0]?.children||[];
+ goodClassTow.value = item?.children || [];
+ goodClassThree.value = goodClassTow.value[0]?.children || [];
leftActive.value = goodClassTow.value[0]?.id;
rightActive.value = goodClassThree.value[0]?.id;
}
@@ -151,7 +167,7 @@
console.log('选择', item, index);
leftActive.value = item.id;
show.value = 0;
- goodClassThree.value = item?.children||[];
+ goodClassThree.value = item?.children || [];
rightActive.value = goodClassThree.value[0]?.id;
}
@@ -223,14 +239,20 @@
const goodClassThree = ref([]); // 三级分类
const getgoodClassList = () => {
goodClassListApi().then(res => {
- goodClassList.value = res.data?.lists||[];
- goodClassTow.value = goodClassList.value[0]?.children||[];
- goodClassThree.value = goodClassTow.value[0]?.children||[];
+ goodClassList.value = res.data?.lists || [];
+ goodClassTow.value = goodClassList.value[0]?.children || [];
+ goodClassThree.value = goodClassTow.value[0]?.children || [];
topActive.value = goodClassList.value[0]?.id;
leftActive.value = goodClassTow.value[0]?.id;
rightActive.value = goodClassThree.value[0]?.id;
})
}
+
+ const navTo = (url)=>{
+ uni.navigateTo({
+ url: url
+ })
+ }
onLoad(() => {
getgoodClassList();
@@ -243,6 +265,27 @@
background-color: #fff;
}
+ .navbar {
+ padding: 0 20rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-size: 22rpx;
+ color: #777;
+
+ .nav-item {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+
+ image {
+ height: 40rpx;
+ width: 40rpx;
+ }
+ }
+ }
+
.head-view {
background-color: #fff;
height: 180rpx;
@@ -399,9 +442,9 @@
display: flex;
.left {
- height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx);
+ height: calc(100vh - var(--window-top) - var(--window-bottom) - 500rpx);
/* #ifdef H5 */
- height: calc(100vh - 96px - 180rpx);
+ height: calc(100vh - 44px - 300rpx);
/* #endif */
width: 170rpx;
box-sizing: border-box;
@@ -434,7 +477,7 @@
}
.right {
- height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx);
+ height: calc(100vh - var(--window-top) - 500rpx);
/* #ifdef H5 */
height: calc(100vh - 96px - 180rpx);
/* #endif */
@@ -501,9 +544,9 @@
}
.list {
- height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx - 150rpx);
+ height: calc(100vh - var(--window-top) - 600rpx);
/* #ifdef H5 */
- height: calc(100vh - 96px - 180rpx);
+ height: calc(100vh - 44px - 400rpx);
/* #endif */
.shop-item {
@@ -563,4 +606,45 @@
}
}
}
+
+ .fiexd-btn-box {
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
+ height: 140rpx;
+ height: calc(constant(safe-area-inset-bottom) + 140rpx);
+ /* 适用于iOS设备 */
+ height: calc(env(safe-area-inset-bottom) + 140rpx);
+ /* 适用于Android设备 */
+ padding-top: 40rpx;
+
+ .price-info {
+ .row {
+ display: flex;
+ font-size: 26rpx;
+ align-items: center;
+
+ &>view {
+ margin-right: 15rpx;
+ }
+
+ .price {
+ color: #F55726;
+ }
+ }
+ }
+
+ .btn {
+ width: 200rpx;
+ }
+
+ .cart {
+ position: absolute;
+ top: -40rpx;
+ left: 40rpx;
+
+ image {
+ width: 80rpx;
+ height: 80rpx;
+ }
+ }
+ }
\ No newline at end of file
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 3101cfd..d7041e3 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -1,9 +1,6 @@
-
-
-
-
+
import { onLoad } from "@dcloudio/uni-app"
import { ref } from "vue"
- import { addressCreateApi, addressEditApi } from "@/api/user.js"
+ import { addressCreateApi, addressEditApi, addressDetailApi } from "@/api/user.js"
const mode = ref('add');
@@ -67,13 +67,22 @@
console.log('验证失败');
})
}
+
+ const getAddressDetil = (address_id)=>{
+ addressDetailApi({
+ address_id
+ }).then(res=>{
+ formData.value = res.data;
+ })
+ }
onLoad((options) => {
- if (options.mode == 'edit') {
+ if (options.mode == 'edit'&&options.address_id) {
mode.value = 'edit';
uni.setNavigationBarTitle({
title: '编辑地址'
})
+ getAddressDetil(options.address_id)
} else uni.setNavigationBarTitle({
title: '新增地址'
})
diff --git a/pagesOrder/addressList/addressList.vue b/pagesOrder/addressList/addressList.vue
index 72e9cdb..5e285ed 100644
--- a/pagesOrder/addressList/addressList.vue
+++ b/pagesOrder/addressList/addressList.vue
@@ -21,7 +21,7 @@
删除
-
+
编辑
@@ -39,7 +39,8 @@
diff --git a/static/icon/cart.png b/static/icon/cart.png
new file mode 100644
index 0000000000000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4JzF*iyq|1t_P1lQow*#B2(P22>`VM
zsDWeN!X1D)ICTC9Kjpzi02u9~x(~6|`64}S(cDcgft1g3rlA^#g~&gOdCe(KaT9nf
zf-S?B%5>?UYJgdqhs#&5{fq^)u0{Mjg{(fAbX^N|PU@)stVOVJ%Y-L3?Y}y1e!4;f
zEb4ABt^D13Hk+5z^@GBLXF8|e*0XNj|wn&anxOhAZp
zPUH_%`P+I@0w-_#Mfrg$09m*crlCR~O!pINcwf>n&>PcFs9m(hDvLn(KOVc=
U$8k&VHUIzs07*qoM6N<$g8I0pqyPW_
literal 0
HcmV?d00001
diff --git a/unpackage/dist/dev/mp-weixin/app.json b/unpackage/dist/dev/mp-weixin/app.json
index c1df0bf..71813e6 100644
--- a/unpackage/dist/dev/mp-weixin/app.json
+++ b/unpackage/dist/dev/mp-weixin/app.json
@@ -23,31 +23,5 @@
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#fff"
},
- "tabBar": {
- "color": "#999999",
- "selectedColor": "#20b128",
- "borderStyle": "white",
- "backgroundColor": "#FFFFFF",
- "list": [
- {
- "pagePath": "pages/index/index",
- "text": "首页",
- "iconPath": "static/tab/a.png",
- "selectedIconPath": "static/tab/aa.png"
- },
- {
- "pagePath": "pages/cart/cart",
- "text": "购物车",
- "iconPath": "static/tab/b.png",
- "selectedIconPath": "static/tab/ba.png"
- },
- {
- "pagePath": "pages/my/my",
- "text": "我的",
- "iconPath": "static/tab/c.png",
- "selectedIconPath": "static/tab/ca.png"
- }
- ]
- },
"usingComponents": {}
}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/common/assets.js b/unpackage/dist/dev/mp-weixin/common/assets.js
index 00b973b..15c13f1 100644
--- a/unpackage/dist/dev/mp-weixin/common/assets.js
+++ b/unpackage/dist/dev/mp-weixin/common/assets.js
@@ -1,5 +1,11 @@
"use strict";
+const _imports_0$1 = "/static/tab/ba.png";
+const _imports_1$1 = "/static/tab/ca.png";
+const _imports_2 = "/static/icon/cart.png";
const _imports_1 = "/static/icon/n-check.png";
const _imports_0 = "/static/icon/check.png";
-exports._imports_0 = _imports_0;
-exports._imports_1 = _imports_1;
+exports._imports_0 = _imports_0$1;
+exports._imports_0$1 = _imports_0;
+exports._imports_1 = _imports_1$1;
+exports._imports_1$1 = _imports_1;
+exports._imports_2 = _imports_2;
diff --git a/unpackage/dist/dev/mp-weixin/common/vendor.js b/unpackage/dist/dev/mp-weixin/common/vendor.js
index 9347396..386ad88 100644
--- a/unpackage/dist/dev/mp-weixin/common/vendor.js
+++ b/unpackage/dist/dev/mp-weixin/common/vendor.js
@@ -7696,6 +7696,7 @@ const Pinia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
const createHook = (lifecycle) => (hook, target = getCurrentInstance()) => {
!isInSSRComponentSetup && injectHook(lifecycle, hook, target);
};
+const onShow = /* @__PURE__ */ createHook(ON_SHOW);
const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
exports.Pinia = Pinia;
exports._export_sfc = _export_sfc;
@@ -7709,6 +7710,7 @@ exports.n = n;
exports.nextTick$1 = nextTick$1;
exports.o = o;
exports.onLoad = onLoad;
+exports.onShow = onShow;
exports.p = p;
exports.reactive = reactive;
exports.ref = ref;
diff --git a/unpackage/dist/dev/mp-weixin/components/addressPopup.js b/unpackage/dist/dev/mp-weixin/components/addressPopup.js
index 24b55aa..db36c04 100644
--- a/unpackage/dist/dev/mp-weixin/components/addressPopup.js
+++ b/unpackage/dist/dev/mp-weixin/components/addressPopup.js
@@ -55,9 +55,9 @@ const _sfc_main = {
a: "dc6b9753-3-" + i0 + ",dc6b9753-0",
b: addressType.value == index
}, addressType.value == index ? {
- c: common_assets._imports_0
+ c: common_assets._imports_0$1
} : {
- d: common_assets._imports_1
+ d: common_assets._imports_1$1
}, {
e: index,
f: common_vendor.o(($event) => addressType.value = index, index)
diff --git a/unpackage/dist/dev/mp-weixin/pages/cart/cart.js b/unpackage/dist/dev/mp-weixin/pages/cart/cart.js
index b5d9ad6..7208bfe 100644
--- a/unpackage/dist/dev/mp-weixin/pages/cart/cart.js
+++ b/unpackage/dist/dev/mp-weixin/pages/cart/cart.js
@@ -65,9 +65,9 @@ const _sfc_main = {
return common_vendor.e({
a: index % 3 == 0
}, index % 3 == 0 ? {
- b: common_assets._imports_1
+ b: common_assets._imports_1$1
} : {
- c: common_assets._imports_0
+ c: common_assets._imports_0$1
}, {
d: "da603134-1-" + i0,
e: "da603134-2-" + i0,
@@ -102,7 +102,7 @@ const _sfc_main = {
k: swiperCurrent.value,
l: common_vendor.o(animationfinish)
}, {
- n: common_assets._imports_0
+ n: common_assets._imports_0$1
}, {
o: common_vendor.o(settleAccounts),
p: common_vendor.p({
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.js b/unpackage/dist/dev/mp-weixin/pages/index/index.js
index e213787..6059bde 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.js
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.js
@@ -1,27 +1,30 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
+const common_assets = require("../../common/assets.js");
const api_good = require("../../api/good.js");
const api_cart = require("../../api/cart.js");
require("../../utils/request.js");
require("../../config/app.js");
require("../../store/user.js");
if (!Array) {
- const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
const _easycom_up_navbar2 = common_vendor.resolveComponent("up-navbar");
+ const _easycom_up_search2 = common_vendor.resolveComponent("up-search");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
const _easycom_u__icon2 = common_vendor.resolveComponent("u--icon");
const _easycom_up_transition2 = common_vendor.resolveComponent("up-transition");
- (_easycom_up_search2 + _easycom_up_navbar2 + _easycom_up_image2 + _easycom_up_icon2 + _easycom_u__icon2 + _easycom_up_transition2)();
+ const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
+ (_easycom_up_navbar2 + _easycom_up_search2 + _easycom_up_image2 + _easycom_up_icon2 + _easycom_u__icon2 + _easycom_up_transition2 + _easycom_up_button2)();
}
-const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
const _easycom_up_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
+const _easycom_up_search = () => "../../uni_modules/uview-plus/components/u-search/u-search.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_u__icon = () => "../../uni_modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up_transition = () => "../../uni_modules/uview-plus/components/u-transition/u-transition.js";
+const _easycom_up_button = () => "../../uni_modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
- (_easycom_up_search + _easycom_up_navbar + _easycom_up_image + _easycom_up_icon + viewPopup + _easycom_u__icon + _easycom_up_transition)();
+ (_easycom_up_navbar + _easycom_up_search + _easycom_up_image + _easycom_up_icon + viewPopup + _easycom_u__icon + _easycom_up_transition + _easycom_up_button)();
}
const viewPopup = () => "../../components/viewPopup.js";
const _sfc_main = {
@@ -119,23 +122,32 @@ const _sfc_main = {
rightActive.value = (_f = goodClassThree.value[0]) == null ? void 0 : _f.id;
});
};
+ const navTo = (url) => {
+ common_vendor.index.navigateTo({
+ url
+ });
+ };
common_vendor.onLoad(() => {
getgoodClassList();
getGoodList();
});
return (_ctx, _cache) => {
return common_vendor.e({
- a: common_vendor.o(searchKeyword),
- b: common_vendor.o(($event) => keyword.value = $event),
- c: common_vendor.p({
+ a: common_vendor.p({
+ placeholder: true
+ }),
+ b: common_vendor.o(searchKeyword),
+ c: common_vendor.o(($event) => keyword.value = $event),
+ d: common_vendor.p({
placeholder: "请输入商品",
showAction: false,
modelValue: keyword.value
}),
- d: common_vendor.p({
- placeholder: true
- }),
- e: common_vendor.f(goodClassList.value, (item, index, i0) => {
+ e: common_assets._imports_0,
+ f: common_vendor.o(($event) => navTo("/pages/cart/cart")),
+ g: common_assets._imports_1,
+ h: common_vendor.o(($event) => navTo("/pages/my/my")),
+ i: common_vendor.f(goodClassList.value, (item, index, i0) => {
return {
a: "1ba6254c-2-" + i0,
b: common_vendor.p({
@@ -149,13 +161,13 @@ const _sfc_main = {
f: common_vendor.o(($event) => changeOne(item, index), index)
};
}),
- f: common_vendor.p({
+ j: common_vendor.p({
name: "list"
}),
- g: common_vendor.o(($event) => show.value = 1),
- h: show.value === 1
+ k: common_vendor.o(($event) => show.value = 1),
+ l: show.value === 1
}, show.value === 1 ? {
- i: common_vendor.f(goodClassList.value, (item, index, i0) => {
+ m: common_vendor.f(goodClassList.value, (item, index, i0) => {
return {
a: "1ba6254c-5-" + i0 + ",1ba6254c-4",
b: common_vendor.p({
@@ -169,12 +181,12 @@ const _sfc_main = {
f: common_vendor.o(($event) => changeOne(item, index), index)
};
}),
- j: common_vendor.o(($event) => show.value = 0),
- k: common_vendor.p({
+ n: common_vendor.o(($event) => show.value = 0),
+ o: common_vendor.p({
nav: true
})
} : {}, {
- l: common_vendor.f(goodClassTow.value, (item, index, i0) => {
+ p: common_vendor.f(goodClassTow.value, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: leftActive.value == item.id ? 1 : "",
@@ -182,7 +194,7 @@ const _sfc_main = {
d: common_vendor.o(($event) => changeTwo(item, index), index)
};
}),
- m: common_vendor.f(goodClassThree.value, (item, index, i0) => {
+ q: common_vendor.f(goodClassThree.value, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: rightActive.value == item.id ? 1 : "",
@@ -190,19 +202,19 @@ const _sfc_main = {
d: common_vendor.o(($event) => changeThree(item, index), index)
};
}),
- n: common_vendor.p({
+ r: common_vendor.p({
name: "arrow-down"
}),
- o: common_vendor.o(($event) => show.value = 2),
- p: where.value.order == "" ? 1 : "",
- q: common_vendor.o(($event) => changeOrder("")),
- r: where.value.order == "desc" || where.value.order == "asc" ? 1 : "",
- s: common_vendor.o(($event) => changeOrder(where.value.order == "asc" ? "desc" : "asc")),
- t: where.value.order == "sales" ? 1 : "",
- v: common_vendor.o(($event) => changeOrder("sales")),
- w: show.value === 2
+ s: common_vendor.o(($event) => show.value = 2),
+ t: where.value.order == "" ? 1 : "",
+ v: common_vendor.o(($event) => changeOrder("")),
+ w: where.value.order == "desc" || where.value.order == "asc" ? 1 : "",
+ x: common_vendor.o(($event) => changeOrder(where.value.order == "asc" ? "desc" : "asc")),
+ y: where.value.order == "sales" ? 1 : "",
+ z: common_vendor.o(($event) => changeOrder("sales")),
+ A: show.value === 2
}, show.value === 2 ? {
- x: common_vendor.f(goodClassThree.value, (item, index, i0) => {
+ B: common_vendor.f(goodClassThree.value, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: rightActive.value == item.id ? 1 : "",
@@ -210,9 +222,9 @@ const _sfc_main = {
d: common_vendor.o(($event) => changeThree(item, index), index)
};
}),
- y: common_vendor.o(($event) => show.value = 0)
+ C: common_vendor.o(($event) => show.value = 0)
} : {}, {
- z: common_vendor.f(goodList.value, (item, index, i0) => {
+ D: common_vendor.f(goodList.value, (item, index, i0) => {
return {
a: "1ba6254c-8-" + i0,
b: common_vendor.p({
@@ -241,17 +253,21 @@ const _sfc_main = {
q: item.id
};
}),
- A: common_vendor.p({
+ E: common_vendor.p({
name: "minus-circle-fill",
size: "20",
color: "#20b128"
}),
- B: common_vendor.p({
+ F: common_vendor.p({
name: "plus-circle-fill",
size: "20",
color: "#20b128"
}),
- C: common_vendor.o(loadMoreGood)
+ G: common_vendor.o(loadMoreGood),
+ H: common_vendor.p({
+ color: "#20b128"
+ }),
+ I: common_assets._imports_2
});
};
}
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.json b/unpackage/dist/dev/mp-weixin/pages/index/index.json
index 07072eb..5abbe1d 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.json
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.json
@@ -3,12 +3,13 @@
"disableScroll": true,
"navigationStyle": "custom",
"usingComponents": {
- "up-search": "../../uni_modules/uview-plus/components/u-search/u-search",
"up-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar",
+ "up-search": "../../uni_modules/uview-plus/components/u-search/u-search",
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
"up-icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"u--icon": "../../uni_modules/uview-plus/components/u-icon/u-icon",
"up-transition": "../../uni_modules/uview-plus/components/u-transition/u-transition",
+ "up-button": "../../uni_modules/uview-plus/components/u-button/u-button",
"view-popup": "../../components/viewPopup"
}
}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.wxml b/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
index 44ed5ee..6039b0e 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.wxml
@@ -1 +1 @@
-{{item.c}}全部全部分类{{item.c}}{{item.a}}{{item.a}}综合价格销量{{item.a}}{{item.c}}{{item.d}}|{{item.e}}|{{item.f}}¥{{item.g}}{{item.l}}
\ No newline at end of file
+里海商户采购平台购物车个人中心{{item.c}}全部全部分类{{item.c}}{{item.a}}{{item.a}}综合价格销量{{item.a}}{{item.c}}{{item.d}}|{{item.e}}|{{item.f}}¥{{item.g}}{{item.l}}合计¥50.00原价 ¥50.00优惠 ¥0.00结算
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
index 6c4d2b7..35bbebb 100644
--- a/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
+++ b/unpackage/dist/dev/mp-weixin/pages/index/index.wxss
@@ -26,6 +26,24 @@
.content {
background-color: #fff;
}
+.navbar {
+ padding: 0 20rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-size: 22rpx;
+ color: #777;
+}
+.navbar .nav-item {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
+.navbar .nav-item image {
+ height: 40rpx;
+ width: 40rpx;
+}
.head-view {
background-color: #fff;
height: 180rpx;
@@ -158,7 +176,7 @@
display: flex;
}
.scroll-box .left {
- height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx);
+ height: calc(100vh - var(--window-top) - var(--window-bottom) - 500rpx);
width: 170rpx;
box-sizing: border-box;
background-color: #f6f6f6;
@@ -186,7 +204,7 @@
transform: translate(0, -50%);
}
.scroll-box .right {
- height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx);
+ height: calc(100vh - var(--window-top) - 500rpx);
width: 580rpx;
box-sizing: border-box;
position: relative;
@@ -242,7 +260,7 @@
color: #20b128;
}
.scroll-box .right .list {
- height: calc(100vh - var(--window-top) - var(--window-bottom) - 180rpx - 150rpx);
+ height: calc(100vh - var(--window-top) - 600rpx);
}
.scroll-box .right .list .shop-item {
padding: 20rpx;
@@ -287,4 +305,36 @@
.scroll-box .right .list .shop-item .shop-content .price-btn .btn .num {
width: 60rpx;
text-align: center;
+}
+.fiexd-btn-box {
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
+ height: 140rpx;
+ height: calc(constant(safe-area-inset-bottom) + 140rpx);
+ /* 适用于iOS设备 */
+ height: calc(env(safe-area-inset-bottom) + 140rpx);
+ /* 适用于Android设备 */
+ padding-top: 40rpx;
+}
+.fiexd-btn-box .price-info .row {
+ display: flex;
+ font-size: 26rpx;
+ align-items: center;
+}
+.fiexd-btn-box .price-info .row > view {
+ margin-right: 15rpx;
+}
+.fiexd-btn-box .price-info .row .price {
+ color: #F55726;
+}
+.fiexd-btn-box .btn {
+ width: 200rpx;
+}
+.fiexd-btn-box .cart {
+ position: absolute;
+ top: -40rpx;
+ left: 40rpx;
+}
+.fiexd-btn-box .cart image {
+ width: 80rpx;
+ height: 80rpx;
}
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pages/login/login.js b/unpackage/dist/dev/mp-weixin/pages/login/login.js
index 0674da4..6f424ba 100644
--- a/unpackage/dist/dev/mp-weixin/pages/login/login.js
+++ b/unpackage/dist/dev/mp-weixin/pages/login/login.js
@@ -161,10 +161,10 @@ const _sfc_main = {
w: !isAgree.value
}, !isAgree.value ? {
x: common_vendor.o(($event) => isAgree.value = true),
- y: common_assets._imports_1
+ y: common_assets._imports_1$1
} : {
z: common_vendor.o(($event) => isAgree.value = false),
- A: common_assets._imports_0
+ A: common_assets._imports_0$1
});
};
}
diff --git a/unpackage/dist/dev/mp-weixin/pages/my/my.js b/unpackage/dist/dev/mp-weixin/pages/my/my.js
index e696eaa..dbe1ba8 100644
--- a/unpackage/dist/dev/mp-weixin/pages/my/my.js
+++ b/unpackage/dist/dev/mp-weixin/pages/my/my.js
@@ -26,7 +26,8 @@ const _sfc_main = {
return {
a: common_vendor.p({
title: "我的",
- bgColor: "rgba(0,0,0,0)"
+ bgColor: "rgba(0,0,0,0)",
+ autoBack: true
}),
b: common_vendor.p({
src: "",
diff --git a/unpackage/dist/dev/mp-weixin/pages/my/my.wxml b/unpackage/dist/dev/mp-weixin/pages/my/my.wxml
index 3f66cfb..c50879c 100644
--- a/unpackage/dist/dev/mp-weixin/pages/my/my.wxml
+++ b/unpackage/dist/dev/mp-weixin/pages/my/my.wxml
@@ -1 +1 @@
-151****6699ID: 6655我的订单待付款待收货全部订单
\ No newline at end of file
+151****6699ID: 6655我的订单待付款待收货全部订单
\ No newline at end of file
diff --git a/unpackage/dist/dev/mp-weixin/pagesOrder/addressEdit/addressEdit.js b/unpackage/dist/dev/mp-weixin/pagesOrder/addressEdit/addressEdit.js
index 5751ee4..a4b99e6 100644
--- a/unpackage/dist/dev/mp-weixin/pagesOrder/addressEdit/addressEdit.js
+++ b/unpackage/dist/dev/mp-weixin/pagesOrder/addressEdit/addressEdit.js
@@ -58,12 +58,20 @@ const _sfc_main = {
console.log("验证失败");
});
};
+ const getAddressDetil = (address_id) => {
+ api_user.addressDetailApi({
+ address_id
+ }).then((res) => {
+ formData.value = res.data;
+ });
+ };
common_vendor.onLoad((options) => {
- if (options.mode == "edit") {
+ if (options.mode == "edit" && options.address_id) {
mode.value = "edit";
common_vendor.index.setNavigationBarTitle({
title: "编辑地址"
});
+ getAddressDetil(options.address_id);
} else
common_vendor.index.setNavigationBarTitle({
title: "新增地址"
diff --git a/unpackage/dist/dev/mp-weixin/pagesOrder/addressList/addressList.js b/unpackage/dist/dev/mp-weixin/pagesOrder/addressList/addressList.js
index 57f5e49..9184e5d 100644
--- a/unpackage/dist/dev/mp-weixin/pagesOrder/addressList/addressList.js
+++ b/unpackage/dist/dev/mp-weixin/pagesOrder/addressList/addressList.js
@@ -38,10 +38,11 @@ const _sfc_main = {
const getAddressLists = () => {
api_user.addressListsApi().then((res) => {
addressList.value = res.data.lists;
- console.log(addressList);
});
};
- getAddressLists();
+ common_vendor.onShow(() => {
+ getAddressLists();
+ });
return (_ctx, _cache) => {
return {
a: common_vendor.f(addressList.value, (item, index, i0) => {
@@ -50,12 +51,12 @@ const _sfc_main = {
b: common_vendor.t(item.phone),
c: common_vendor.t(item.detail)
}, {
- e: common_assets._imports_1
+ e: common_assets._imports_1$1
}, {
f: "5e66515e-0-" + i0,
g: common_vendor.o(($event) => showDelete(item), index),
h: "5e66515e-1-" + i0,
- i: common_vendor.o(($event) => navTo("/pagesOrder/addressEdit/addressEdit?mode=edit"), index),
+ i: common_vendor.o(($event) => navTo("/pagesOrder/addressEdit/addressEdit?mode=edit&address_id=" + item.address_id), index),
j: index
});
}),
diff --git a/unpackage/dist/dev/mp-weixin/pagesOrder/detail/detail.js b/unpackage/dist/dev/mp-weixin/pagesOrder/detail/detail.js
index c0d1f6f..dca1509 100644
--- a/unpackage/dist/dev/mp-weixin/pagesOrder/detail/detail.js
+++ b/unpackage/dist/dev/mp-weixin/pagesOrder/detail/detail.js
@@ -68,9 +68,9 @@ const _sfc_main = {
a: common_vendor.t(item.name),
b: cancelType.value == item.value
}, cancelType.value == item.value ? {
- c: common_assets._imports_0
+ c: common_assets._imports_0$1
} : {
- d: common_assets._imports_1
+ d: common_assets._imports_1$1
}, {
e: item.value,
f: common_vendor.o(($event) => cancelType.value = item.value, item.value)
diff --git a/unpackage/dist/dev/mp-weixin/project.config.json b/unpackage/dist/dev/mp-weixin/project.config.json
index 5292c2f..dae0da3 100644
--- a/unpackage/dist/dev/mp-weixin/project.config.json
+++ b/unpackage/dist/dev/mp-weixin/project.config.json
@@ -1,9 +1,5 @@
{
"description": "项目配置文件。",
- "packOptions": {
- "ignore": [],
- "include": []
- },
"setting": {
"urlCheck": false,
"es6": true,
@@ -11,18 +7,19 @@
"minified": false,
"newFeature": true,
"bigPackageSizeSupport": true,
+ "coverView": false,
+ "condition": false,
+ "enhance": false,
+ "showShadowRootInWxmlPanel": false,
+ "packNpmRelationList": [],
+ "ignoreUploadUnusedFiles": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
- },
- "condition": false,
- "ignoreUploadUnusedFiles": false
+ }
},
"compileType": "miniprogram",
- "libVersion": "3.3.4",
- "appid": "wxce2948c50d808b66",
- "projectname": "purchase-let",
"condition": {
"search": {
"current": -1,
@@ -44,5 +41,11 @@
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
- }
+ },
+ "libVersion": "3.4.2",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "appid": "wxce2948c50d808b66"
}
\ No newline at end of file