ソースを参照

更新一些问题

zhuxiuping 2 年 前
コミット
11053bce7d

+ 10 - 4
pages/my/chat.vue

@@ -444,13 +444,14 @@
 				if (!phone) {
 					phone = this.$queue.getData('userName');
 				}
-				let avatar = this.$queue.getData('avatar');
+				let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
+				let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
 				let data = {
 					userId: userId,
 					userHead: avatar,
-					userName: userName,
+					userName: shopUserName,
 					storeId: '0',
-					storeHead: '码兄外卖',
+					storeHead: '',
 					storeName: ''
 				}
 				this.$Request.postJson('/app/chats/save', data).then(res => {
@@ -482,13 +483,18 @@
 						',' + this.orderCreateTime +
 						',' + this.ordermoney
 				}
+				let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
+				let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
 				let data = {
 					userId: userId,
+					userHead: avatar,
+					userName: shopUserName,
 					content: this.content,
 					chatId: this.chatId,
 					type: type,
 					storeId: '0',
-					sendType: '1'
+					sendType: '1',
+					storeName: ''
 				}
 				data = JSON.stringify(data);
 				let that = this;

+ 1 - 1
pages/my/comments.vue

@@ -76,7 +76,7 @@
 					// indentNumber:this.indentNumber,
 					indentNumber: this.indentNumber,
 					wrongExplain: this.value,
-					shopIllegalId: this.IllegalId,
+					illegalId: this.IllegalId,
 					type: '2',
 					indentType: '5',
 					shopId: uni.getStorageSync('shopId')

+ 1 - 0
pages/my/index.vue

@@ -634,6 +634,7 @@
 						this.shopName = res.user.shopList[0].shopName
 						this.shopCover = res.user.shopList[0].shopCover ? res.user.shopList[0].shopCover :
 							'../../static/logo.png'
+						this.$queue.setData("avatar", res.user.shopList[0].shopCover);
 						this.$queue.setData("userId", res.user.userId);
 						this.$queue.setData("shopId", res.user.shopList[0].shopId);
 						this.$queue.setData("mobile", res.user.mobile);

ファイルの差分が大きいため隠しています
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/chat.js.map


ファイルの差分が大きいため隠しています
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/comments.js.map


ファイルの差分が大きいため隠しています
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/index.js.map


+ 2 - 2
unpackage/dist/dev/mp-weixin/components/empty.json

@@ -1,4 +1,4 @@
 {
-  "component": true,
-  "usingComponents": {}
+  "usingComponents": {},
+  "component": true
 }

+ 2 - 2
unpackage/dist/dev/mp-weixin/my/components/watch-login/watch-button.json

@@ -1,4 +1,4 @@
 {
-  "usingComponents": {},
-  "component": true
+  "component": true,
+  "usingComponents": {}
 }

ファイルの差分が大きいため隠しています
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/my/chat.js


ファイルの差分が大きいため隠しています
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/my/comments.js


ファイルの差分が大きいため隠しています
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/my/index.js


+ 2 - 2
unpackage/dist/dev/mp-weixin/uview-ui/components/u-checkbox-group/u-checkbox-group.json

@@ -1,4 +1,4 @@
 {
-  "component": true,
-  "usingComponents": {}
+  "usingComponents": {},
+  "component": true
 }

+ 2 - 2
unpackage/dist/dev/mp-weixin/uview-ui/components/u-search/u-search.json

@@ -1,6 +1,6 @@
 {
-  "component": true,
   "usingComponents": {
     "u-icon": "/uview-ui/components/u-icon/u-icon"
-  }
+  },
+  "component": true
 }

+ 2 - 2
unpackage/dist/dev/mp-weixin/uview-ui/components/u-select/u-select.json

@@ -1,6 +1,6 @@
 {
+  "component": true,
   "usingComponents": {
     "u-popup": "/uview-ui/components/u-popup/u-popup"
-  },
-  "component": true
+  }
 }