mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 19:06:46 +08:00
内网环境判断
This commit is contained in:
@@ -415,16 +415,20 @@
|
||||
</u-popup>
|
||||
<interact-share ref="comShare" :data="courseInfo":type="1"></interact-share>
|
||||
</view>
|
||||
<view v-if="protocolDialogVisible" class="protocol-dialog" style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30%; background-color: #fff; border-radius: 8px; z-index: 9999;">
|
||||
<view class="protocol-title" style="padding: 15px; border-bottom: 1px solid #eee; font-weight: bold;">{{warnTitle}}</view>
|
||||
<view class="protocol-content" style="padding: 20px;">
|
||||
  {{warn}}
|
||||
</view>
|
||||
<view class="dialog-footer" style="padding: 15px; text-align: center; border-top: 1px solid #eee;">
|
||||
<view class="button-primary" @click="protocolDialogVisible = false" style="display: inline-block; padding: 8px 16px; background-color: #409EFF; color: #fff; border-radius: 4px; cursor: pointer;">确定</view>
|
||||
<u-popup :show="protocolDialogVisible" mode="center" :closeable="false" :closeOnClickOverlay="false" :round="14" @close="closeDialog">
|
||||
<view class="dlgscore">
|
||||
<view class="dlgscore-top">
|
||||
<view class="dlgscore-title">{{warnTitle}}</view>
|
||||
<view class="dlgscore-desc">{{warn}}</view>
|
||||
</view>
|
||||
<view class="dlgscore-btns">
|
||||
<view class="dlgscore-submit">
|
||||
<text @click="addScore()">确认</text>
|
||||
</view>
|
||||
<!-- <u-button type="primary" @click="addScore()" text="提交评分"></u-button> -->
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="protocolDialogVisible" class="dialog-mask" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 9998;"></view>
|
||||
</u-popup>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -1163,6 +1167,9 @@
|
||||
closeScore(){
|
||||
this.scoreInfo.dlgShow=false;
|
||||
},
|
||||
closeDialog(){
|
||||
this.protocolDialogVisible=false;
|
||||
},
|
||||
addScore(){
|
||||
if(this.scoreInfo.has){
|
||||
this.$refs.messager.show({message:'您已评过分',type:'error'});
|
||||
|
||||
Reference in New Issue
Block a user