From 4be24db40b920d4e93e2b02f13d11ef7f464bd98 Mon Sep 17 00:00:00 2001
From: xuechunyuan <17853500702@163.com>
Date: Tue, 22 Aug 2023 16:37:57 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=8E=88=E6=9D=83=E8=AE=A2?=
=?UTF-8?q?=E5=8D=95=E6=B5=8B=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 10 +++---
pages/pages_zhentou/homePage/homePage.vue | 42 ++++++++++++++++++++---
pages/pages_zhentou/order/order.vue | 22 ++++++------
3 files changed, 55 insertions(+), 19 deletions(-)
diff --git a/App.vue b/App.vue
index 8ba286d..0a2329f 100644
--- a/App.vue
+++ b/App.vue
@@ -62,7 +62,7 @@
test: '',
// baseUrl: "http://192.168.3.32:80",
baseUrl: "http://192.168.1.106:80",
- imgPrefix: "http://47.104.224.41:9000/etriphome/appresource/image/",//图片资源
+ imgPrefix: "http://47.104.224.41:9000/etriphome/appresource/image/", //图片资源
},
methods: {
...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin']),
@@ -74,9 +74,11 @@
success: (res) => {
// console.log(res)
if (res.data.code == 200) {
- uni.setStorageSync('userInfo', JSON.stringify(res.data.data));
- uni.setStorageSync('phone', res.data.data.phone);
- this.doLogin(res.data.data.username, res.data.data.phone);
+ if (JSON.stringify(res.data.data) != '{}') {
+ uni.setStorageSync('userInfo', JSON.stringify(res.data.data));
+ uni.setStorageSync('phone', res.data.data.phone);
+ this.doLogin(res.data.data.username, res.data.data.phone);
+ }
} else {
uni.showToast({
title: res.data.msg,
diff --git a/pages/pages_zhentou/homePage/homePage.vue b/pages/pages_zhentou/homePage/homePage.vue
index 69451ed..b866a50 100644
--- a/pages/pages_zhentou/homePage/homePage.vue
+++ b/pages/pages_zhentou/homePage/homePage.vue
@@ -15,7 +15,8 @@
壹人壹枕 待付款 待发货 待收货 已完成 已取消 待付款 待发货 待收货 已完成 已取消
¥699.0
查看物流
-确认收货
-取消订单
-立即支付
-完善定制信息
+查看物流
+确认收货
+取消订单
+立即支付
+完善定制信息
删除订单
再次定制