Переглянути джерело

修改添加名片标识没有序号问题

achao 2 роки тому
батько
коміт
d7e942e514

+ 1 - 1
xiaochengxu/pages/mySet/myInfo.vue

@@ -703,7 +703,7 @@
 			},
 			},
 			addCard() {
 			addCard() {
 				uni.navigateTo({
 				uni.navigateTo({
-					url: "/pages/mySet/newCard"
+					url: "/pages/mySet/newCard?cardIndex="+(this.cardList.length+1)
 				})
 				})
 			},
 			},
 			topMarking(val) {
 			topMarking(val) {

+ 4 - 26
xiaochengxu/pages/mySet/newCard.vue

@@ -282,10 +282,12 @@
 	var that;
 	var that;
 	import uploadImage from '@/components/ossutil/uploadFile.js';
 	import uploadImage from '@/components/ossutil/uploadFile.js';
 	export default {
 	export default {
-		onLoad() {
+		onLoad(options) {debugger
 			that = this
 			that = this
 			this.userInfo = uni.getStorageSync("userInfo")
 			this.userInfo = uni.getStorageSync("userInfo")
 			this.cardInfo.commonId = this.userInfo.id
 			this.cardInfo.commonId = this.userInfo.id
+			this.cardInfo.cardBusiness ="名片标识"+ options.cardIndex
+			
 			this.getList()
 			this.getList()
 		},
 		},
 		data() {
 		data() {
@@ -326,30 +328,6 @@
 				selectConfig: 1,
 				selectConfig: 1,
 				selectIndex: 0,
 				selectIndex: 0,
 				imgList: [],
 				imgList: [],
-				// imgList: [{
-				// 		dictLabel: '/./../static/1.jpg',
-				// 		dictValue: '/./../static/1.jpg'
-
-				// 	},
-				// 	{
-				// 		dictLabel: '/./../static/2.jpg',
-				// 		dictValue: '/./../static/2.jpg'
-
-				// 	},
-				// 	{
-				// 		dictLabel: '/./../static/3.jpg',
-				// 		dictValue: '/./../static/3.jpg'
-
-				// 	}, {
-				// 		dictLabel: '/./../static/4.jpg',
-				// 		dictValue: '/./../static/4.jpg'
-
-				// 	}, {
-				// 		dictLabel: '/./../static/5.jpg',
-				// 		dictValue: '/./../static/5.jpg'
-
-				// 	}
-				// ],
 				isSubmit: false,
 				isSubmit: false,
 				content: '确定提交名片信息?',
 				content: '确定提交名片信息?',
 				userInfo: {},
 				userInfo: {},
@@ -359,7 +337,7 @@
 					area: '',
 					area: '',
 					province: '',
 					province: '',
 					commonId: '',
 					commonId: '',
-					cardBusiness: '名片标识',
+					cardBusiness: '',
 					name: '',
 					name: '',
 					post: '',
 					post: '',
 					companyName: '',
 					companyName: '',