|
@@ -36,7 +36,14 @@
|
|
|
<a class="text-[#ff4f4f] no-underline leading-normal">充值</a>
|
|
|
</span>
|
|
|
<div class="need-volume float-right right-48px text-16px text-[#666] leading-48px mr-20px">
|
|
|
- 所需券:<span class="text-[#0dd299] text-16px" :class="{'text-red-500': requiredCoupon > userInfo?.points}">{{ requiredCoupon }}券</span> / 剩余券:<span class="text-[#0dd299] text-16px">{{ Object.keys(this.userInfo).length === 0 ? 0 : userInfo.points }}券</span>
|
|
|
+ 所需券:
|
|
|
+ <span class="text-[#0dd299] text-16px" :class="{'text-red-500': requiredCoupon > userInfo?.points}">
|
|
|
+ {{ requiredCoupon }}券
|
|
|
+ </span>
|
|
|
+ / 剩余券:
|
|
|
+ <span class="text-[#0dd299] text-16px">
|
|
|
+ {{ Object.keys(this.userInfo).length === 0 ? 0 : userInfo.points }}券
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="transfer-panel">
|
|
@@ -302,13 +309,23 @@
|
|
|
<span class="text-$btn-color-primary cursor-pointer" @click="register">注册</span>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog :visible.sync="noMia" width="480px" append-to-body center top = "25vh" >
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="less-tittle w-full h-64px leading-64px text-[20px] text-[#ff4f4f] text-center mt-[-50px] mb-30px">劵不足</div>
|
|
|
+ <div class="less-content text-center mb-30px">
|
|
|
+ <img src="http://cn-file.17pdf.com/website/converter/kongjianbuzu_ic.png" class="mb-26px mx-auto">
|
|
|
+ <p class="text-[14px] text-[#c3c3c3]">您的劵不足,我们背不住了</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</client-only>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { client } from 'process'
|
|
|
import { mapState } from 'vuex'
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -320,7 +337,8 @@ export default {
|
|
|
getFileStatusTimer: null,
|
|
|
changeSucesssNumTotal: 0,
|
|
|
changeSucesssFileList: [],
|
|
|
- visiable: false
|
|
|
+ visiable: false,
|
|
|
+ noMia:false
|
|
|
};
|
|
|
},
|
|
|
middleware: "user",
|
|
@@ -528,7 +546,8 @@ export default {
|
|
|
// if (this.fileList.length === 0) return
|
|
|
const points = this.userInfo.points;
|
|
|
if (this.requiredCoupon > points) {
|
|
|
- alert("券数不足,请充值");
|
|
|
+ // alert("券数不足,请充值");
|
|
|
+ this.noMia = true
|
|
|
return;
|
|
|
}
|
|
|
const filterFileList = this.fileList.filter(function (item) {
|
|
@@ -716,7 +735,6 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- components: { client }
|
|
|
}
|
|
|
</script>
|
|
|
|