lj %!s(int64=4) %!d(string=hai) anos
pai
achega
329c009fb6
Modificáronse 3 ficheiros con 81 adicións e 23 borrados
  1. 1 1
      pages.json
  2. 0 22
      pages/cb/cbd/sim/sim.vue
  3. 80 0
      pages/cb/sim/sim.vue

+ 1 - 1
pages.json

@@ -164,7 +164,7 @@
             
         }
         ,{
-            "path" : "pages/cb/cbd/sim/sim",
+            "path" : "pages/cb/sim/sim",
             "style" :                                                                                    
             {
                 "navigationBarTitleText": "sim卡详情",

+ 0 - 22
pages/cb/cbd/sim/sim.vue

@@ -1,22 +0,0 @@
-<template>
-	<view>
-		
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {
-				
-			}
-		},
-		methods: {
-			
-		}
-	}
-</script>
-
-<style>
-
-</style>

+ 80 - 0
pages/cb/sim/sim.vue

@@ -0,0 +1,80 @@
+<template>
+	<view>
+		<view class="section">
+			<view class="tit">
+				<image src="/static/image/cb/sim1.png" mode=""></image>
+				sim卡流量
+			</view>
+			<view class="">
+				<text>ICCID:</text>
+				<text>{{sim.iccid}}</text>
+			</view>
+			<view class="">
+				<text>状态:</text>
+				<text>{{sim.account_status}}</text>
+			</view>
+			<view class="">
+				<text>套餐:</text>
+				<text>{{sim.data_plan}}</text>
+			</view>
+			<view class="">
+				<text>已用流量:</text>
+				<text>{{sim.data_usage}}</text>
+			</view>
+			<view class="">
+				<text>剩余流量:</text>
+				<text>{{sim.data_balance}}</text>
+			</view>
+			<view class="">
+				<text>到期时间:</text>
+				<text>{{sim.expiry_date}}</text>
+			</view>
+		</view>
+		<template v-if="showHksimFlag">
+			<view class="section">
+				<view class="tit">
+					<image src="/static/image/cb/sim2.png" mode=""></image>
+					海康sim卡流量
+				</view>
+			</view>
+		</template>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				sim: {
+			        iccid: "",
+			        account_status: 0, //卡状态 0-7 未知 测试期 沉默期 使用中 停机 停机保号 预销号 销号
+			        data_plan: 0, //套餐大小
+			        data_usage: 0, //当月用量
+			        data_balance: 0, //剩余流量
+			        expiry_date: 0, //到期日期
+			      },
+				showHksimFlag: true, //是否显示hksim卡标识
+				hksim: {
+					iccid: "",
+					account_status: 0, //卡状态 0-7 未知 测试期 沉默期 使用中 停机 停机保号 预销号 销号
+					data_plan: 0, //套餐大小
+					data_usage: 0, //当月用量
+					data_balance: 0, //剩余流量
+					expiry_date: 0, //到期日期
+				  },
+				 d_id:''
+			}
+		},
+		onLoad(option){
+			this.d_id=option.d_id
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>