|
@@ -51,9 +51,46 @@
|
|
<text v-show="shareDetail.state == 2"> 已拒绝 </text>
|
|
<text v-show="shareDetail.state == 2"> 已拒绝 </text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="menu-item">
|
|
|
|
+ <label class="simple-radio" @click="smChange()">
|
|
|
|
+ <radio
|
|
|
|
+ :value="messageFlag"
|
|
|
|
+ color="#7c5345"
|
|
|
|
+ :checked="messageFlag == true"
|
|
|
|
+ class="hide-original"
|
|
|
|
+ />
|
|
|
|
+ <text>短信权限</text>
|
|
|
|
+ </label>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="menu-item">
|
|
|
|
+ <label class="simple-radio" @click="snChange()">
|
|
|
|
+ <radio
|
|
|
|
+ :value="serviceNumberFlag"
|
|
|
|
+ color="#7c5345"
|
|
|
|
+ :checked="serviceNumberFlag == true"
|
|
|
|
+ class="hide-original"
|
|
|
|
+ />
|
|
|
|
+ <text>服务号通知</text>
|
|
|
|
+ </label>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="menu-item">
|
|
|
|
+ <label class="simple-radio" @click="vfChange()">
|
|
|
|
+ <radio
|
|
|
|
+ :value="voipFlag"
|
|
|
|
+ color="#7c5345"
|
|
|
|
+ :checked="voipFlag == true"
|
|
|
|
+ class="hide-original"
|
|
|
|
+ />
|
|
|
|
+ <text>语音通话</text>
|
|
|
|
+ </label>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="menu-bottom">
|
|
|
|
- <view class="meanLeft" @click="cancleShare()">撤销分享</view>
|
|
|
|
|
|
+
|
|
|
|
+ <view class="boxButton">
|
|
|
|
+ <view class="handle-btn">
|
|
|
|
+ <view class="closeBreath" @click="cancleShare()">撤销分享</view>
|
|
|
|
+ <view class="btn2" @click="changeAuthor()"> 修改权限 </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -62,9 +99,11 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- status: null,
|
|
|
|
shareDetail: "",
|
|
shareDetail: "",
|
|
shareList: [],
|
|
shareList: [],
|
|
|
|
+ messageFlag: true,
|
|
|
|
+ serviceNumberFlag: true,
|
|
|
|
+ voipFlag: true,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -118,11 +157,91 @@ export default {
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getShareDetail() {
|
|
|
|
+ this.$http
|
|
|
|
+ .post(
|
|
|
|
+ "wap/share/queryDetails",
|
|
|
|
+ {
|
|
|
|
+ shareId: this.shareDetail.shareId,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ header: {
|
|
|
|
+ "Content-Type": "application/x-www-form-urlencoded",
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.messageFlag =
|
|
|
|
+ res.data.data.messageFlag == 0 ? true : false;
|
|
|
|
+ this.serviceNumberFlag =
|
|
|
|
+ res.data.data.serviceNumberFlag == 0 ? true : false;
|
|
|
|
+ this.voipFlag = res.data.data.voipFlag == 0 ? true : false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ changeAuthor() {
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: "提示",
|
|
|
|
+ content: "确定修改权限?",
|
|
|
|
+ success: (res) => {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ this.$http
|
|
|
|
+ .post(
|
|
|
|
+ "wap/share/updateDeviceShare",
|
|
|
|
+ {
|
|
|
|
+ messageFlag:
|
|
|
|
+ this.messageFlag == true ? 0 : 1,
|
|
|
|
+ serviceNumberFlag:
|
|
|
|
+ this.serviceNumberFlag == true ? 0 : 1,
|
|
|
|
+ voipFlag: this.voipFlag == true ? 0 : 1,
|
|
|
|
+ voipFlag: this.voipFlag,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ header: {
|
|
|
|
+ "Content-Type":
|
|
|
|
+ "application/x-www-form-urlencoded",
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "修改成功",
|
|
|
|
+ icon: "success",
|
|
|
|
+ duration: 1500,
|
|
|
|
+ });
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 1,
|
|
|
|
+ });
|
|
|
|
+ }, 1000);
|
|
|
|
+ } else {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "修改失败",
|
|
|
|
+ icon: "none",
|
|
|
|
+ duration: 1500,
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ smChange() {
|
|
|
|
+ this.messageFlag = !this.messageFlag;
|
|
|
|
+ },
|
|
|
|
+ snChange() {
|
|
|
|
+ this.serviceNumberFlag = !this.serviceNumberFlag;
|
|
|
|
+ },
|
|
|
|
+ vfChange() {
|
|
|
|
+ this.voipFlag = !this.voipFlag;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- onShow() {},
|
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.shareDetail = JSON.parse(options.shareDetail);
|
|
this.shareDetail = JSON.parse(options.shareDetail);
|
|
},
|
|
},
|
|
|
|
+ onShow() {
|
|
|
|
+ this.getShareDetail();
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -228,5 +347,71 @@ export default {
|
|
margin-right: 16rpx;
|
|
margin-right: 16rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .boxButton {
|
|
|
|
+ position: fixed;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100vw;
|
|
|
|
+ height: 168rpx;
|
|
|
|
+ padding: 0 37rpx;
|
|
|
|
+ background: #ffffff;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+
|
|
|
|
+ .handle-btn {
|
|
|
|
+ margin-top: 40rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+
|
|
|
|
+ .btn1 {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ width: 155rpx;
|
|
|
|
+ height: 94rpx;
|
|
|
|
+ background: #ffebe4;
|
|
|
|
+ border-radius: 28rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #111111;
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .btn2 {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ width: 328rpx;
|
|
|
|
+ height: 94rpx;
|
|
|
|
+ background: linear-gradient(
|
|
|
|
+ 105.95deg,
|
|
|
|
+ #a27867 0%,
|
|
|
|
+ #74483d 100%
|
|
|
|
+ );
|
|
|
|
+ border-radius: 28rpx;
|
|
|
|
+ box-shadow: 0rpx 4.69rpx 18.75rpx rgba(72, 41, 29, 0.15),
|
|
|
|
+ 0rpx 9.38rpx 9.38rpx rgba(154, 132, 89, 0.2),
|
|
|
|
+ 0rpx -4.69rpx 28.13rpx 4.69rpx #a16647 inset;
|
|
|
|
+ font-family: MiSans;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ }
|
|
|
|
+ .closeBreath {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ width: 328rpx;
|
|
|
|
+ height: 94rpx;
|
|
|
|
+ background: #ffebe4;
|
|
|
|
+ border-radius: 28rpx;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ color: #111111;
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|