lilei il y a 4 ans
Parent
commit
0c194def9e

+ 2 - 2
components/uni-check-list/uni-check-list.vue

@@ -12,7 +12,7 @@
 				</view>
 				<view class="details" @click="rightClick(item)">
 					<slot name="right"></slot>
-					<u-icon v-if="showArrow" name="icon-xian-11" custom-prefix="xd-icon" size="28" color="#888888"></u-icon>
+					<u-icon v-if="showArrow&&types!='views'" name="icon-xian-11" custom-prefix="xd-icon" size="28" color="#888888"></u-icon>
 				</view>
 			</view>
 		</view>
@@ -31,7 +31,7 @@
 				type: Array,
 				default: []
 			},
-			// 类型 radio 或 checkbox
+			// 类型 radio 或 checkbox 或 views 指 只是展示列表
 			types:{
 				type: String,
 				default: 'radio'

+ 6 - 0
pages.json

@@ -154,6 +154,12 @@
 				"navigationBarTitleText": "修改密码"
 			}
 		}
+        ,{
+            "path" : "pages/userCenter/viewStores",
+            "style" : {
+				"navigationBarTitleText": "可点检门店"
+			}
+        }
     ],
 	"globalStyle": {
 		"navigationBarTitleText": "智能巡店",

+ 6 - 2
pages/userCenter/personInfo.vue

@@ -23,7 +23,7 @@
 			</view>
 			<view class="content-item">
 				<text>可点检门店</text>
-				<view style="color: #007AFF;">
+				<view style="color: #007AFF;" @click="viewStores">
 					12个 <u-icon name="icon-xian-11" custom-prefix="xd-icon" size="28" color="#888888"></u-icon>
 				</view>
 			</view>
@@ -60,7 +60,11 @@
 			}
 		},
 		methods:{
-			 
+			viewStores(){
+				uni.navigateTo({
+					url: '/pages/userCenter/viewStores'
+				})
+			}
 		}
 	}
 </script>

+ 33 - 0
pages/userCenter/viewStores.vue

@@ -0,0 +1,33 @@
+<template>
+	<uni-check-list :listData="list" types="views"></uni-check-list>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				list: [
+					{
+						id: '1232',
+						name: '爱的街坊邻居爱上了对方加拉附件爱的街坊邻居爱上了对方加拉附件',
+					},
+					{
+						id: '2223',
+						name: 'banner',
+					},
+					{
+						id: '3333',
+						name: 'orange',
+					}
+				],
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 1 - 1
unpackage/dist/dev/app-plus/app-view.js

@@ -14579,7 +14579,7 @@ var render = function() {
           _c(
             "v-uni-view",
             { staticClass: _vm._$g(2, "sc"), attrs: { _i: 2 } },
-            [_vm._v("请先输入注册时设置的原密码,按步骤操作")]
+            [_vm._v("请先输入原密码,按步骤操作")]
           ),
           _c(
             "v-uni-view",