Browse Source

提交设备分享

wangming 2 months ago
parent
commit
dd16b5775c

+ 1 - 1
src/pages.json

@@ -179,7 +179,7 @@
                     "path": "homeDetail/homeDetail",
                     "style": {
                         "enablePullDownRefresh": true,
-                        "navigationBarTitleText": "家庭管理",
+                        "navigationBarTitleText": "家庭详情",
                         "navigationBarBackgroundColor": "#faede2",
                         "navigationBarTextStyle": "black"
                     }

+ 58 - 3
src/pagesA/homeDetail/homeDetail.vue

@@ -1,5 +1,24 @@
 <template>
-    <view class="box"> 11111 </view>
+    <view class="box">
+        <view class="meauList" v-for="item in groupList" :key="item.tenantId">
+            <view class="menu-item">
+                <view class="meanLeft">
+                    <text>分享人号码</text>
+                </view>
+                <view class="meanRight">
+                    <text>{{ item.sharerPhone }}</text></view
+                >
+            </view>
+            <view class="menu-item">
+                <view class="meanLeft">
+                    <text>设备名称</text>
+                </view>
+                <view class="meanRight">
+                    <text>{{ item.devName }}</text></view
+                >
+            </view>
+        </view>
+    </view>
 </template>
 
 <script>
@@ -14,11 +33,11 @@ export default {
         getGroupDetail() {
             this.$http
                 .get(`wap/group/queryGroupDeviceInfoById`, {
-                    group_id: this.groupId,
+                    group_id: this.groupInfo.groupId,
                 })
                 .then((res) => {
                     if (res.data.data) {
-                        this.groupList = res.data.data;
+                        // this.groupList = res.data.data;
                     }
                 })
                 .catch((err) => {});
@@ -28,6 +47,9 @@ export default {
         this.groupInfo = JSON.parse(options.groupInfo);
         console.log(this.groupInfo, 99999);
     },
+    onShow() {
+        this.getGroupDetail();
+    },
 };
 </script>
 
@@ -37,5 +59,38 @@ export default {
     background: linear-gradient(180deg, #faede2 0%, #f4f4f4 100%);
     padding-top: 20rpx;
     box-sizing: border-box;
+    .meauList {
+        width: 710rpx;
+        margin: 18rpx auto;
+        background: #fff;
+        border-radius: 16rpx;
+        box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
+        overflow: hidden;
+        transition: all 0.3s ease;
+
+        .menu-item {
+            display: flex;
+            align-items: center;
+            justify-content: space-between;
+            margin: 0 32rpx;
+            padding: 32rpx 0;
+            border-bottom: 1rpx solid #f0f0f0;
+            .meanLeft {
+                flex: 1;
+                color: #666;
+                font-size: 28rpx;
+                font-weight: 400;
+            }
+
+            .meanRight {
+                flex: 1;
+                text-align: right;
+                color: #333;
+                font-size: 28rpx;
+                font-weight: 500;
+                padding-left: 20rpx;
+            }
+        }
+    }
 }
 </style>

+ 1 - 0
src/pagesA/linkShare/linkShare.vue

@@ -117,6 +117,7 @@ export default {
                 sharerUserId: uni.getStorageSync("userId"),
                 sharerPhone: uni.getStorageSync("phone"),
                 sharedUserId: "",
+                sharedPhone: "",
                 messageFlag: this.messageFlag == true ? 0 : 1,
                 serviceNumberFlag: this.serviceNumberFlag == true ? 0 : 1,
                 voipFlag: this.voipFlag == true ? 0 : 1,

+ 3 - 0
src/pagesA/sharePages/sharePages.vue

@@ -92,7 +92,9 @@ export default {
                 devId: this.devInfo.devId,
                 sharedUserId: uni.getStorageSync("userId"),
                 state: 1,
+                sharedPhone: this.sharePhone,
             };
+            console.log(shareConfirmParam, "shareConfirmParam");
             this.$http
                 .post("wap/share/Confirm", shareConfirmParam, {
                     header: {
@@ -123,6 +125,7 @@ export default {
                 devId: this.devInfo.devId,
                 sharedUserId: uni.getStorageSync("userId"),
                 state: 2,
+                sharedPhone: this.sharePhone,
             };
             this.$http
                 .post("wap/share/Confirm", shareConfirmParam, {