appid增加

This commit is contained in:
zmj 2023-11-11 16:14:19 +08:00
parent 750922c987
commit db29cb5f8d
2 changed files with 19 additions and 46 deletions

View File

@ -2,7 +2,7 @@ const config = {
terminal: 1, //终端
title: '后台管理系统', //网站默认标题
version: '1.6.0', //版本号
baseUrl: `${import.meta.env.VITE_APP_BASE_URL || 'http://192.168.1.16:8081'}/`, //请求接口域名
baseUrl: `${import.meta.env.VITE_APP_BASE_URL || 'http://192.168.1.19:8000/'}/`, //请求接口域名
urlPrefix: 'adminapi', //请求默认前缀
timeout: 10 * 1000 //请求超时时长
}

View File

@ -1,13 +1,6 @@
<template>
<div class="edit-popup">
<popup
ref="popupRef"
:title="popupTitle"
:async="true"
width="550px"
@confirm="handleSubmit"
@close="handleClose"
>
<popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit" @close="handleClose">
<el-form ref="formRef" :model="formData" label-width="84px" :rules="formRules">
<el-form-item label="支付方式">
<el-radio :label="popupTitle" :model-value="popupTitle" />
@ -41,32 +34,27 @@
</div>
</div>
</el-form-item>
<el-form-item label="APPID" prop="config.app_id">
<div class="flex-1">
<el-input v-model="formData.config.app_id" placeholder="请输入APPID" />
<div class="form-tips">APPID</div>
</div>
</el-form-item>
<el-form-item label="微信支付商户号" prop="config.mch_id">
<div class="flex-1">
<el-input
v-model="formData.config.mch_id"
placeholder="请输入微信支付商户号"
/>
<el-input v-model="formData.config.mch_id" placeholder="请输入微信支付商户号" />
<div class="form-tips">微信支付商户号MCHID</div>
</div>
</el-form-item>
<el-form-item label="商户API密钥" prop="config.pay_sign_key">
<el-input
v-model="formData.config.pay_sign_key"
placeholder="请输入微信支付商户API密钥"
/>
<el-input v-model="formData.config.pay_sign_key" placeholder="请输入微信支付商户API密钥" />
<span class="form-tips">微信支付商户API密钥paySignKey</span>
</el-form-item>
<el-form-item label="微信支付证书" prop="config.apiclient_cert">
<el-input
type="textarea"
rows="3"
v-model="formData.config.apiclient_cert"
placeholder="请输入微信支付证书"
/>
<el-input type="textarea" rows="3" v-model="formData.config.apiclient_cert"
placeholder="请输入微信支付证书" />
<span class="form-tips">
微信支付证书apiclient_cert.pem前往微信商家平台生成并黏贴至此处
@ -74,12 +62,8 @@
</el-form-item>
<el-form-item label="微信支付证书密钥" prop="config.apiclient_key">
<el-input
type="textarea"
rows="3"
v-model="formData.config.apiclient_key"
placeholder="请输入微信支付证书密钥"
/>
<el-input type="textarea" rows="3" v-model="formData.config.apiclient_key"
placeholder="请输入微信支付证书密钥" />
<span class="form-tips">
微信支付证书密钥apiclient_key.pem前往微信商家平台生成并黏贴至此处
</span>
@ -122,34 +106,23 @@
<el-form-item label="应用ID" prop="config.app_id">
<div class="flex-1">
<el-input
v-model="formData.config.app_id"
placeholder="请输入支付宝应用ID"
/>
<el-input v-model="formData.config.app_id" placeholder="请输入支付宝应用ID" />
<span class="form-tips"> 支付宝应用APP_ID </span>
</div>
</el-form-item>
<el-form-item label="应用私钥" prop="config.private_key">
<div class="flex-1">
<el-input
type="textarea"
rows="3"
v-model="formData.config.private_key"
placeholder="请输入支付宝应用私钥"
/>
<el-input type="textarea" rows="3" v-model="formData.config.private_key"
placeholder="请输入支付宝应用私钥" />
<span class="form-tips">支付宝应用私钥private_key </span>
</div>
</el-form-item>
<el-form-item label="支付宝公钥" prop="config.ali_public_key">
<div class="flex-1">
<el-input
type="textarea"
rows="3"
v-model="formData.config.ali_public_key"
placeholder="请输入支付宝公钥"
/>
<el-input type="textarea" rows="3" v-model="formData.config.ali_public_key"
placeholder="请输入支付宝公钥" />
<span class="form-tips">支付宝公钥ali_public_key </span>
</div>
</el-form-item>