From 08c0e65fb62f83498dcbf90483f43e932043d99a Mon Sep 17 00:00:00 2001
From: luo <17530855@qq.com>
Date: Tue, 27 Jun 2023 14:04:53 +0800
Subject: [PATCH] 优化
---
pages/user/user_spsy/user_spsy.js | 14 ++++++++++++--
pages/user/user_spsy/user_spsy.wxml | 2 +-
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/pages/user/user_spsy/user_spsy.js b/pages/user/user_spsy/user_spsy.js
index cf79e23..98d65f8 100644
--- a/pages/user/user_spsy/user_spsy.js
+++ b/pages/user/user_spsy/user_spsy.js
@@ -81,8 +81,18 @@ Page({
let res = await getApp().request.promisePut("/api/weshop/users/grade/storage/update", {
data: data
});
- console.log('门店更新');
- console.log(res);
+ if (res && res.data && res.data.code==0) {
+ let text='qr_code_object.StorageID'
+ this.setData({
+ [text]:item.keyid
+ })
+ }else{
+ wx.showToast({
+ title: '门店选择失败',
+ icon: 'none',
+ duration: 2000
+ })
+ }
}else{
wx.showToast({
title: '门店选择失败',
diff --git a/pages/user/user_spsy/user_spsy.wxml b/pages/user/user_spsy/user_spsy.wxml
index cc46ace..17fed25 100644
--- a/pages/user/user_spsy/user_spsy.wxml
+++ b/pages/user/user_spsy/user_spsy.wxml
@@ -15,7 +15,7 @@
已使用
立即使用
- 选门店
+ 登记取货
--
libgit2 0.21.4