Browse Source

fix: 更新环境配置为prod并移除废弃的充值代码

- 将config.js中的环境变量从dev改为prod
- 清理recharge.vue中已注释掉的废弃代码和未使用的字段
master
前端-胡立永 2 months ago
parent
commit
a58dc275b7
2 changed files with 1 additions and 34 deletions
  1. +1
    -1
      config.js
  2. +0
    -33
      pages_order/mine/recharge.vue

+ 1
- 1
config.js View File

@ -8,7 +8,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
const type = 'dev'
const type = 'prod'
// 环境配置


+ 0
- 33
pages_order/mine/recharge.vue View File

@ -30,30 +30,6 @@
</view>
</view>
<!-- 自定义充值 -->
<!-- <view class="card custom-card">
<view class="card-title">自定义充值</view>
<view class="form-row">
<view class="form-label required">
<text class="star">*</text> 充值金额
</view>
<input
class="form-input"
placeholder="请输入充值金额"
v-model="customAmount"
type="number"
:placeholder-style="'color:#bbb;'"
:style="customAmount ? 'color:#222;' : ''"
@input="onCustomAmountChange"
/>
</view>
<view class="divider"></view>
<view class="form-row">
<view class="form-label">可获得豆豆</view>
<view class="form-value">{{ customBeans }}豆豆</view>
</view>
</view> -->
<!-- 订单信息卡片 -->
<view class="card order-card" v-if="totalPrice > 0">
<view class="order-title">订单信息</view>
@ -117,12 +93,6 @@
customAmount: '',
selectedPayment: 0,
rechargePackages: [
// { beans: 100, price: 10, bonus: 0 },
// { beans: 300, price: 30, bonus: 20 },
// { beans: 680, price: 68, bonus: 50 },
// { beans: 1280, price: 128, bonus: 120 },
// { beans: 3280, price: 328, bonus: 320 },
// { beans: 6480, price: 648, bonus: 680 }
],
paymentMethods: [
{ name: '微信支付', icon: 'weixin-fill' },
@ -211,9 +181,6 @@
try {
//
const result = await this.$fetch('createPayPackageOrder', {
// amount: this.totalPrice,
// beans: this.totalBeans,
// paymentMethod: this.paymentMethods[this.selectedPayment].name
packageId : this.rechargePackages[this.selectedPackage].id
})


Loading…
Cancel
Save