Procházet zdrojové kódy

修改账号注册

zs před 1 rokem
rodič
revize
3c68b7507f
3 změnil soubory, kde provedl 1921 přidání a 1891 odebrání
  1. 20 20
      pages/login/index.vue
  2. 982 967
      pagesMy/order/all.vue
  3. 919 904
      pagesMy/order/index.vue

+ 20 - 20
pages/login/index.vue

@@ -517,30 +517,30 @@
 				uni.getUserProfile({
 					desc: '用于展示',
 					success: async function(res) {
-						let parmas = {
-							openid: that.openid,
-							icon: [{
-								url: res.userInfo.avatarUrl
-							}],
-							name: res.userInfo.nickName + moment().valueOf()
-						}
 						uni.getStorage({
 							key: 'shop',
-							success: async function(res) {
-								parmas.shop = res.data
+							success: async function(aee) {
+								let parmas = {
+									openid: that.openid,
+									icon: [{
+										url: res.userInfo.avatarUrl
+									}],
+									shop: aee.data,
+									name: res.userInfo.nickName + moment().valueOf()
+								}
+								const arr = await that.$api(`/user`, 'POST', parmas);
+								if (arr.errcode == '0') {
+									that.$set(that, `user`, arr.data);
+									// 打开弹框
+									that.diaShow();
+								} else {
+									uni.showToast({
+										title: arr.errmsg,
+										icon: 'none'
+									});
+								}
 							}
 						})
-						const arr = await that.$api(`/user`, 'POST', parmas);
-						if (arr.errcode == '0') {
-							that.$set(that, `user`, arr.data);
-							// 打开弹框
-							that.diaShow();
-						} else {
-							uni.showToast({
-								title: arr.errmsg,
-								icon: 'none'
-							});
-						}
 					},
 					fail: function(err) {
 						console.log(err);

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 982 - 967
pagesMy/order/all.vue


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 919 - 904
pagesMy/order/index.vue