2 Komitmen 9002694d6c ... 18dd56a309

Pembuat SHA1 Pesan Tanggal
  tanxue 18dd56a309 Merge remote-tracking branch 'origin/2025鹅状元数学' into 2025鹅状元数学 5 hari lalu
  tanxue 756ba5bb00 资料 5 hari lalu
2 mengubah file dengan 93 tambahan dan 0 penghapusan
  1. 39 0
      api/ziliao.js
  2. 54 0
      pages/chanpinZiliao/shuxue/jstxDownDialog.vue

+ 39 - 0
api/ziliao.js

@@ -0,0 +1,39 @@
+import request from '@/utils/request'
+/***** 资料 *****/
+export function ziliaoIndex(data = {}) {
+  return request({
+    'url': '/app/ziliao/index',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+/***** 数学---计算特训 *****/
+// 计算特训 info
+export function jisuanInfo(data = {}) {
+  return request({
+    'url': '/app/ziliao/jisuan/info',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+
+// 计算特训 Pdf下载
+export function jisuanPdf(data = {}) {
+  return request({
+    'url': '/app/ziliao/jisuan/tiku/pdf',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}

+ 54 - 0
pages/chanpinZiliao/shuxue/jstxDownDialog.vue

@@ -0,0 +1,54 @@
+<!-- 生成题库弹窗 -->
+<template>
+ <uni-popup ref="tipBigPopup" :animation="false" :is-mask-click="false"
+  mask-background-color="rgba(255, 255, 255, 0.6);">
+  <view class="phone-tip-dialog sxtk-sc-dialog">
+  <view class="tip-content-box">
+   <view class="tip-title">{{title}}</view>
+   <view class="tip-content sxtk-content" v-if="content">
+	<view class="content-text">{{content}}</view>
+   </view>
+   <view class="tip-btn-box sxtk-btn-box">
+    <view class="confirm-btn down-btn" @click="confirmBtn">下载到手机</view>
+    <view class="not-confirm-btn cancel-btn" @click="handleClose">取消</view>
+   </view>
+  </view>
+  </view>
+ </uni-popup>
+</template>
+
+<script setup>
+ import { ref } from 'vue';
+ const props = defineProps({
+   title: {
+     type: String,
+     default: '温馨提示'
+   },
+   content: {
+     type: String,
+     default: ''
+   },
+ });
+ const tipBigPopup = ref(null); // 索引
+ const $emit = defineEmits(['confirm-btn'])
+ // 打开弹窗
+ function handleShow() {
+  tipBigPopup.value.open();
+ }
+ // 取消
+ function handleClose() {
+  tipBigPopup.value.close();
+ }
+ // 确认
+ function confirmBtn(){
+  $emit('confirm-btn');
+  tipBigPopup.value.close();
+ }
+ defineExpose({
+   handleShow,
+   handleClose
+  })
+</script>
+
+<style>
+</style>