12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <template>
- <dmDialog ref='popView' :isShowTitle="true" title="登录提醒" :isShowClose="true" :isShowConfirm="false" >
- <view class="content">
- <text class="desc">您还未进行登录,点此登录\n查看及使用完整功能</text>
- <view class="confirm" @click="toLogin">
- 去登录
- </view>
- </view>
- </dmDialog>
- </template>
- <script>
- import dmDialog from "./dmDialog.vue"
- export default{
-
- data(){
- return {
-
- }
- },
- methods:{
- show() {
- this.$refs.popView.show()
- },
- knowAction(){
- this.$refs.popView.hide()
- },
- hide(){
- this.knowAction();
- },
- toLogin(){
- this.$refs.popView.hide()
- uni.$emit('login');
- }
- },
- mounted() {
- uni.$on('unLogin',()=>{
- this.show();
- })
- uni.$on('request',()=>{
- this.hide();
- })
- },
- components:{
- dmDialog
- }
-
- }
- </script>
- <style scoped lang="scss">
- .content{
- width: 100%;
- height: 270rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
-
- .desc{
- font-size: 28rpx;
- font-family: Verdana, Verdana-Regular;
- font-weight: 400;
- text-align: center;
- color: #666666;
- margin-top: 30rpx;
- }
- .confirm{
- width: 410rpx;
- height: 80rpx;
- line-height: 80rpx;
- background: #f07423;
- border-radius: 40rpx;
- box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(240,116,35,0.37);
- font-size: 28rpx;
- font-family: Verdana, Verdana-Bold;
- font-weight: 700;
- text-align: center;
- color: #ffffff;
- margin-top: 50rpx;
- }
- }
- </style>
|