|
@@ -47,11 +47,22 @@
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+ <SwitchIdentityDialog v-if="showSwitchDialog" @confirm="confirmSwitch" @cancel="cancelSwitch">
|
|
|
|
+ <p>您确定要从用户/商家端切换到商家段/用户端吗?</p>
|
|
|
|
+ <br />
|
|
|
|
+ <br />
|
|
|
|
+ </SwitchIdentityDialog>
|
|
<view class="policy-out-box">
|
|
<view class="policy-out-box">
|
|
<view class="policy-inner-box">
|
|
<view class="policy-inner-box">
|
|
<u-cell-group :border="false">
|
|
<u-cell-group :border="false">
|
|
- <u-cell size="large" :border="false" icon="level" title="切换身份" isLink url="" />
|
|
|
|
|
|
+ <u-cell
|
|
|
|
+ size="large"
|
|
|
|
+ :border="false"
|
|
|
|
+ icon="level"
|
|
|
|
+ title="切换身份"
|
|
|
|
+ isLink
|
|
|
|
+ @click="openSwitchDialog"
|
|
|
|
+ />
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -71,9 +82,16 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import SwitchIdentityDialog from '@/components/SwitchIdentityDialog/SwitchIdentityDialog.vue';
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
|
|
+ components: {
|
|
|
|
+ SwitchIdentityDialog,
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
- return {};
|
|
|
|
|
|
+ return {
|
|
|
|
+ showSwitchDialog: false,
|
|
|
|
+ };
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {},
|
|
mounted() {},
|
|
@@ -99,6 +117,22 @@ export default {
|
|
url: '/pages/client/clientUser/myProfit',
|
|
url: '/pages/client/clientUser/myProfit',
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 点击身份切换
|
|
|
|
+ openSwitchDialog() {
|
|
|
|
+ // 打开切换身份确认弹框
|
|
|
|
+ this.showSwitchDialog = true;
|
|
|
|
+ },
|
|
|
|
+ confirmSwitch() {
|
|
|
|
+ // 点击确认切换身份
|
|
|
|
+ // 处理身份切换逻辑
|
|
|
|
+ this.showSwitchDialog = false;
|
|
|
|
+ // ... 其他操作
|
|
|
|
+ },
|
|
|
|
+ cancelSwitch() {
|
|
|
|
+ // 点击取消切换身份
|
|
|
|
+ this.showSwitchDialog = false;
|
|
|
|
+ // ... 其他操作
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|