|
@@ -27,6 +27,7 @@
|
|
</uni-collapse-item>
|
|
</uni-collapse-item>
|
|
</uni-collapse>
|
|
</uni-collapse>
|
|
<tip-small-dialog ref="confirmDialogRef" @confirm-btn="handleConfirmPay" :content="Message"></tip-small-dialog>
|
|
<tip-small-dialog ref="confirmDialogRef" @confirm-btn="handleConfirmPay" :content="Message"></tip-small-dialog>
|
|
|
|
+ <tip-middle-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :content="MESSAGE_VISITER_TO_LOGIN"></tip-middle-dialog>
|
|
</view>
|
|
</view>
|
|
</uni-popup>
|
|
</uni-popup>
|
|
</template>
|
|
</template>
|
|
@@ -44,7 +45,7 @@
|
|
import {getUserIdentity} from "@/utils/common.js"
|
|
import {getUserIdentity} from "@/utils/common.js"
|
|
import {MESSAGE_VISITER_TO_LOGIN,MESSAGE_BEFORE_PAY} from "@/utils/constant.js"
|
|
import {MESSAGE_VISITER_TO_LOGIN,MESSAGE_BEFORE_PAY} from "@/utils/constant.js"
|
|
import tipSmallDialog from '@/components/dialog/tipSmallDialog.vue'
|
|
import tipSmallDialog from '@/components/dialog/tipSmallDialog.vue'
|
|
-
|
|
|
|
|
|
+ import tipMiddleDialog from '@/components/dialog/tipMiddleDialog.vue';
|
|
|
|
|
|
const $emit = defineEmits(['change-zhang'])
|
|
const $emit = defineEmits(['change-zhang'])
|
|
|
|
|
|
@@ -56,6 +57,13 @@
|
|
const activeCollapse = ref('');
|
|
const activeCollapse = ref('');
|
|
const Message = MESSAGE_BEFORE_PAY;
|
|
const Message = MESSAGE_BEFORE_PAY;
|
|
const AuthCode = getUserIdentity(); // 用户身份
|
|
const AuthCode = getUserIdentity(); // 用户身份
|
|
|
|
+ const youkeDialogRef = ref(null);
|
|
|
|
+
|
|
|
|
+ function ykConfirm() {
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages/login/index'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* @summary 展示弹窗 暴露函数
|
|
* @summary 展示弹窗 暴露函数
|
|
@@ -97,10 +105,7 @@
|
|
function handleSelectZhang(data,index) {
|
|
function handleSelectZhang(data,index) {
|
|
if(index !=0 && AuthCode == 'Visitor'){
|
|
if(index !=0 && AuthCode == 'Visitor'){
|
|
// 游客
|
|
// 游客
|
|
- toast(MESSAGE_VISITER_TO_LOGIN)
|
|
|
|
- uni.redirectTo({
|
|
|
|
- url: '/pages/login/index'
|
|
|
|
- })
|
|
|
|
|
|
+ youkeDialogRef.value.handleShow();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|