lilei 4 år sedan
förälder
incheckning
ca146891ff

+ 2 - 2
App.vue

@@ -1,6 +1,6 @@
 <script>
-	const uat_URL = 'http://md.test.zyucgj.com/saas/clz/' // 预发布
-	// const uat_URL = 'http://192.168.16.103:9110/saas/clz/' // 本地
+	// const uat_URL = 'http://md.test.zyucgj.com/saas/clz/' // 预发布
+	const uat_URL = 'http://192.168.16.107:7300/mock/5f5af637cb0f492ad4ee858f/app/at-employee/' // 本地
 	const pro_URL = 'https://car.zyucgj.com/saas/clz/'  // 生产
 	const buildType = 0 // 打包环境对应类型,1 生产 0 预发布
 	const buildURL = buildType ? pro_URL : uat_URL // 打包后实际对应的url

+ 3 - 1
components/uni-check-list/uni-check-list.vue

@@ -29,7 +29,9 @@
 		props: {
 			listData: {
 				type: Array,
-				default: []
+				default: function(){
+					return []
+				}
 			},
 			// 类型 radio 或 checkbox 或 views 指 只是展示列表
 			types:{

+ 1 - 1
pages/index/index.vue

@@ -204,11 +204,11 @@ export default {
 			align-items: center;
 			font-size: 30upx;
 			padding: 14upx 0;
-			
 			span{
 				flex-grow: 1;
 				text-align: center;
 				color: #666;
+				width: 33.3%;
 			}
 			span.daiJs{
 				color: #ff0000;

+ 2 - 2
pages/userCenter/personInfo.vue

@@ -24,7 +24,7 @@
 			<view class="content-item">
 				<text>可点检门店</text>
 				<view style="color: #007AFF;" @click="viewStores">
-					12个 <u-icon name="icon-xian-11" custom-prefix="xd-icon" size="28" color="#888888"></u-icon>
+					{{pageData.userStoreList.length}}个 <u-icon name="icon-xian-11" custom-prefix="xd-icon" size="28" color="#888888"></u-icon>
 				</view>
 			</view>
 		</view>
@@ -69,7 +69,7 @@
 				let item = this.pageData.userStoreList
 				if(item.length>0){
 					uni.navigateTo({
-						url: '/pages/userCenter/viewStores?userStoreList='+encodeURIComponent(JSON.stringify(item))
+						url: '/pages/userCenter/viewStores?item='+encodeURIComponent(JSON.stringify(item))
 					})
 				}
 			}

+ 3 - 3
pages/userCenter/viewStores.vue

@@ -1,5 +1,5 @@
 <template>
-	<uni-check-list :listData="list" types="views"></uni-check-list>
+	<uni-check-list :listData="list" titleKeys="storeName" types="views"></uni-check-list>
 </template>
 
 <script>
@@ -10,8 +10,8 @@
 			}
 		},
 		onLoad(options) {
-			console.log(options.userStoreList)
-			this.list = JSON.parse(decodeURIComponent(options.userStoreList))
+			console.log(options.item)
+			this.list = JSON.parse(options.item)
 		},
 		methods: {