瀏覽代碼

强势池价格配置删除

Zhangbw 2 月之前
父節點
當前提交
4497c40f5d
共有 4 個文件被更改,包括 11 次插入20 次删除
  1. 7 0
      src/views/login.vue
  2. 1 10
      src/views/settings/paymentConfig/index.vue
  3. 2 10
      src/views/settings/paymentConfig/subscription.vue
  4. 1 0
      vite.config.ts

+ 7 - 0
src/views/login.vue

@@ -86,6 +86,7 @@ import { LoginData, TenantVO } from '@/api/types';
 import { to } from 'await-to-js';
 import { HttpStatus } from '@/enums/RespEnum';
 import { useI18n } from 'vue-i18n';
+import axios from 'axios';
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 
@@ -226,6 +227,12 @@ const doSocialLogin = (type: string) => {
 };
 
 onMounted(() => {
+
+  axios.get("http://push2.eastmoney.com/api/qt/stock/get?invt=2&fltt=2&fields=f58,f43,f169,f170&secid=1.600519")
+  .then((response) => {
+    console.log("Axios GET Response:", response.data);
+  });
+
   getCode();
   initTenantList();
   getLoginData();

+ 1 - 10
src/views/settings/paymentConfig/index.vue

@@ -51,12 +51,6 @@
           <el-input-number v-model="form.shortPrice" :min="0" :precision="2" :step="1" />
           <span class="ml-2 tip-text">有效期:当日24:00</span>
         </el-form-item>
-
-        <el-divider content-position="left">强势池配置</el-divider>
-        <el-form-item label="订阅价格(元)">
-          <el-input-number v-model="form.strongPrice" :min="0" :precision="2" :step="1" />
-          <span class="ml-2 tip-text">有效期:1年</span>
-        </el-form-item>
       </el-form>
     </el-card>
   </div>
@@ -77,7 +71,6 @@ const form = ref({
   mchSerialNo: '',
   notifyUrl: '',
   shortPrice: 18,
-  strongPrice: 998,
   privateKeyUploaded: false
 })
 
@@ -98,7 +91,6 @@ const getConfig = async () => {
       form.value.mchSerialNo = res.data.mchSerialNo || ''
       form.value.notifyUrl = res.data.notifyUrl || ''
       form.value.shortPrice = res.data.shortPrice || 18
-      form.value.strongPrice = res.data.strongPrice || 998
       form.value.privateKeyUploaded = res.data.privateKeyUploaded || false
     }
   } catch (e) {
@@ -134,8 +126,7 @@ const handleSave = async () => {
       apiV3Key: form.value.apiV3Key,
       mchSerialNo: form.value.mchSerialNo,
       notifyUrl: form.value.notifyUrl,
-      shortPrice: form.value.shortPrice,
-      strongPrice: form.value.strongPrice
+      shortPrice: form.value.shortPrice
     })
     if (res.code === 200) {
       ElMessage.success('保存成功')

+ 2 - 10
src/views/settings/paymentConfig/subscription.vue

@@ -13,11 +13,6 @@
         <el-form-item label="打赏价格(元)">
           <el-input-number v-model="form.shortPrice" :min="0" :precision="2" :step="1" />
         </el-form-item>
-
-        <el-divider content-position="left">强势池配置</el-divider>
-        <el-form-item label="打赏价格/年(元)">
-          <el-input-number v-model="form.strongPrice" :min="0" :precision="2" :step="1" />
-        </el-form-item>
       </el-form>
     </el-card>
   </div>
@@ -32,8 +27,7 @@ const loading = ref(false)
 const saving = ref(false)
 
 const form = ref({
-  shortPrice: 1,
-  strongPrice: 100
+  shortPrice: 1
 })
 
 const getConfig = async () => {
@@ -42,7 +36,6 @@ const getConfig = async () => {
     const res = await request.get('/miniapp/paymentConfig/list')
     if (res.code === 200 && res.data) {
       form.value.shortPrice = res.data.shortPrice || 1
-      form.value.strongPrice = res.data.strongPrice || 100
     }
   } catch (e) {
     console.error('获取配置失败', e)
@@ -55,8 +48,7 @@ const handleSave = async () => {
   saving.value = true
   try {
     const res = await request.put('/miniapp/paymentConfig/subscription', {
-      shortPrice: form.value.shortPrice,
-      strongPrice: form.value.strongPrice
+      shortPrice: form.value.shortPrice
     })
     if (res.code === 200) {
       ElMessage.success('保存成功')

+ 1 - 0
vite.config.ts

@@ -25,6 +25,7 @@ export default defineConfig(({ mode, command }) => {
       proxy: {
         [env.VITE_APP_BASE_API]: {
           target: 'http://localhost:8080',
+          // target: 'https://www.whzhangsheng.cn/admin-api/',
           changeOrigin: true,
           ws: true,
           rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')