mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
内网环境判断
This commit is contained in:
@@ -415,16 +415,20 @@
|
|||||||
</u-popup>
|
</u-popup>
|
||||||
<interact-share ref="comShare" :data="courseInfo":type="1"></interact-share>
|
<interact-share ref="comShare" :data="courseInfo":type="1"></interact-share>
|
||||||
</view>
|
</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;">
|
<u-popup :show="protocolDialogVisible" mode="center" :closeable="false" :closeOnClickOverlay="false" :round="14" @close="closeDialog">
|
||||||
<view class="protocol-title" style="padding: 15px; border-bottom: 1px solid #eee; font-weight: bold;">{{warnTitle}}</view>
|
<view class="dlgscore">
|
||||||
<view class="protocol-content" style="padding: 20px;">
|
<view class="dlgscore-top">
|
||||||
  {{warn}}
|
<view class="dlgscore-title">{{warnTitle}}</view>
|
||||||
</view>
|
<view class="dlgscore-desc">{{warn}}</view>
|
||||||
<view class="dialog-footer" style="padding: 15px; text-align: center; border-top: 1px solid #eee;">
|
</view>
|
||||||
<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>
|
<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>
|
</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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -1163,6 +1167,9 @@
|
|||||||
closeScore(){
|
closeScore(){
|
||||||
this.scoreInfo.dlgShow=false;
|
this.scoreInfo.dlgShow=false;
|
||||||
},
|
},
|
||||||
|
closeDialog(){
|
||||||
|
this.protocolDialogVisible=false;
|
||||||
|
},
|
||||||
addScore(){
|
addScore(){
|
||||||
if(this.scoreInfo.has){
|
if(this.scoreInfo.has){
|
||||||
this.$refs.messager.show({message:'您已评过分',type:'error'});
|
this.$refs.messager.show({message:'您已评过分',type:'error'});
|
||||||
|
|||||||
Reference in New Issue
Block a user