| | |
| | | }, |
| | | }, |
| | | }, |
| | | // htmlPluginOption: { |
| | | // favicon: './logo-v.png', |
| | | // }, |
| | | htmlPluginOption: { |
| | | favicon: './public/logo-v.png', |
| | | }, |
| | | webpackChain(chain, webpack) { |
| | | chain.plugin('unplugin-auto-import').use( |
| | | AutoImport({ |
| | |
| | | env: { |
| | | // BASE_URL: '"https://testrlywx.boleyuma.com"', |
| | | BASE_URL: '"https://api.81812333.com"', |
| | | BASE_URL_H5: '"http://118.178.252.28:8743"', |
| | | BASE_URL_H5: '"http://118.178.252.28:8742"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/"', |
| | |
| | | const titles: Ref<Title[]> = ref([]); |
| | | const renderTitles = (vnodes: VNode[]) => { |
| | | vnodes.forEach((vnode: VNode, index: number) => { |
| | | let type = vnode.type; |
| | | let type = vnode?.type; |
| | | type = (type as any).name || type; |
| | | if (type === 'nut-tab-pane' || type === 'ProTabPane') { |
| | | let title = new Title(); |
| | |
| | | export default definePageConfig({ |
| | | navigationStyle: 'custom', |
| | | disableScroll: true, |
| | | navigationBarTextStyle: 'white', |
| | | }); |
| | |
| | | export default definePageConfig({ |
| | | navigationBarTitleText: 'Mine', |
| | | usingComponents: {}, |
| | | disableScroll: true, |
| | | navigationBarTextStyle: 'white', |
| | | enableShareAppMessage: true, |
| | | }); |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { Dialog as NutDialog } from '@nutui/nutui-taro'; |
| | | |
| | | defineOptions({ |
| | | name: 'ConfirmDialog', |
| | | }); |
| | |
| | | <template> |
| | | <Radio class="bl-radio"> |
| | | <NutRadio class="bl-radio"> |
| | | <template #default><slot /> </template> |
| | | <template #checkedIcon> |
| | | <IconFont name="checked" color="var(--bole-color-primary)" /> |
| | | </template> |
| | | </Radio> |
| | | </NutRadio> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { IconFont } from '@nutui/icons-vue-taro'; |
| | | import { Radio } from '@nutui/nutui-taro'; |
| | | import { Radio as NutRadio } from '@nutui/nutui-taro'; |
| | | |
| | | defineOptions({ |
| | | name: 'bl-radio', |
| | |
| | | <template> |
| | | <Form |
| | | <NutForm |
| | | :model-value="form" |
| | | ref="formRef" |
| | | :rules="rules" |
| | | label-position="top" |
| | | class="order-bill-recharge phone" |
| | | > |
| | | <FormItem label="选择运营商:" class="bole-form-item" prop="ispCode" required> |
| | | <RadioGroup v-model="form.ispCode" direction="horizontal" @change="changeIspCode"> |
| | | <NutFormItem label="选择运营商:" class="bole-form-item" prop="ispCode" required> |
| | | <NutRadioGroup v-model="form.ispCode" direction="horizontal" @change="changeIspCode"> |
| | | <BlRadio |
| | | :label="key" |
| | | v-for="(val, key) in BlLifeRecharge.constants.IspCodeText" |
| | | :key="key" |
| | | >{{ val }}</BlRadio |
| | | > |
| | | </RadioGroup> |
| | | </FormItem> |
| | | <FormItem label="充值手机号" class="bole-form-item" prop="phone" required> |
| | | <Input |
| | | </NutRadioGroup> |
| | | </NutFormItem> |
| | | <NutFormItem label="充值手机号" class="bole-form-item" prop="phone" required> |
| | | <NutInput |
| | | v-model.trim="form.phone" |
| | | class="bole-input-text" |
| | | placeholder="请填写您需要充值的手机号码" |
| | | type="text" |
| | | /> |
| | | </FormItem> |
| | | <FormItem |
| | | </NutFormItem> |
| | | <NutFormItem |
| | | label="姓名" |
| | | class="bole-form-item" |
| | | prop="name" |
| | | required |
| | | v-if="form.ispCode === BlLifeRecharge.constants.IspCode.dianxin" |
| | | > |
| | | <Input |
| | | <NutInput |
| | | v-model.trim="form.name" |
| | | class="bole-input-text" |
| | | placeholder="请填写您的姓名" |
| | | type="text" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="选择充值金额" class="bole-form-item" prop="parValue" required> |
| | | <RadioGroup v-model="form.parValue" direction="horizontal" class="parValue-radio-group"> |
| | | <Radio |
| | | </NutFormItem> |
| | | <NutFormItem label="选择充值金额" class="bole-form-item" prop="parValue" required> |
| | | <NutRadioGroup v-model="form.parValue" direction="horizontal" class="parValue-radio-group"> |
| | | <NutRadio |
| | | :label="Number(item)" |
| | | :key="item" |
| | | shape="button" |
| | |
| | | </div> |
| | | <div class="discountTag">{{ lifePayPhoneRate * 100 }}折</div> |
| | | </div> |
| | | </Radio> |
| | | </RadioGroup> |
| | | </FormItem> |
| | | </NutRadio> |
| | | </NutRadioGroup> |
| | | </NutFormItem> |
| | | <div class="common-content"> |
| | | <nut-button class="recharge-button" type="primary" @click="handleSubmit"> |
| | | <div class="recharge-button-inner"> |
| | |
| | | <ConfirmDialogInfoItem label="实付金额" :content="`¥${realParValue}`" danger /> |
| | | </template> |
| | | </ConfirmDialog> |
| | | </Form> |
| | | </NutForm> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { Form, FormItem, RadioGroup, Radio, Input, Button as NutButton } from '@nutui/nutui-taro'; |
| | | import { |
| | | Form as NutForm, |
| | | FormItem as NutFormItem, |
| | | RadioGroup as NutRadioGroup, |
| | | Radio as NutRadio, |
| | | Input as NutInput, |
| | | Button as NutButton, |
| | | } from '@nutui/nutui-taro'; |
| | | import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; |
| | | import { reactive, ref, computed } from 'vue'; |
| | | import BlRadio from '../../components/Radio/Radio.vue'; |
| | |
| | | }); |
| | | |
| | | const form = reactive({ |
| | | ispCode: BlLifeRecharge.constants.IspCode.yidong, |
| | | ispCode: '', |
| | | phone: '', |
| | | parValue: 0, |
| | | name: '', |
| | |
| | | <script setup lang="ts"> |
| | | import MainCell from '../../components/Layout/MainCell.vue'; |
| | | import { Grid, GridItem } from '@nutui/nutui-taro'; |
| | | import { Dongdong } from '@nutui/icons-vue-taro'; |
| | | import IconFreePhone from '../../../assets/icon-free-phone.png'; |
| | | import IconFreeDian from '../../../assets/icon-free-dian.png'; |
| | | |
| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { LifeRechargeConstants } from '../../utils'; |
| | | import { LifeRechargeConstants } from '@life-payment/core-vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'RechargeResultView', |
| | |
| | | <template> |
| | | <Form |
| | | <NutForm |
| | | :model-value="form" |
| | | ref="formRef" |
| | | :rules="rules" |
| | |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="电网户号" class="bole-form-item" prop="electricAccount" required> |
| | | <Input |
| | | <NutInput |
| | | v-model.trim="form.electricAccount" |
| | | class="bole-input-text" |
| | | placeholder="请输入13位数字编号" |
| | |
| | | prop="sixID" |
| | | required |
| | | > |
| | | <Input |
| | | <NutInput |
| | | v-model.trim="form.sixID" |
| | | class="bole-input-text" |
| | | placeholder="请输入身份证后六位" |
| | |
| | | prop="parValue" |
| | | required |
| | | > |
| | | <RadioGroup v-model="form.parValue" direction="horizontal" class="parValue-radio-group"> |
| | | <Radio |
| | | <NutRadioGroup v-model="form.parValue" direction="horizontal" class="parValue-radio-group"> |
| | | <NutRadio |
| | | :label="Number(item)" |
| | | :key="item" |
| | | shape="button" |
| | |
| | | </div> |
| | | <div class="discountTag">{{ lifePayElectricRate * 100 }}折</div> |
| | | </div> |
| | | </Radio> |
| | | </RadioGroup> |
| | | </NutRadio> |
| | | </NutRadioGroup> |
| | | </FormItem> |
| | | <div class="common-content"> |
| | | <nut-button class="recharge-button" type="primary" @click="handleSubmit"> |
| | |
| | | 同一电费账户在充值期间,未到账前切勿在其他任何平台再次充值。因此造成的资金损失须用户自行承担!!! |
| | | </template> |
| | | </ConfirmDialog> |
| | | </Form> |
| | | </NutForm> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { Form, FormItem, RadioGroup, Radio, Input, Button as NutButton } from '@nutui/nutui-taro'; |
| | | import { |
| | | Form as NutForm, |
| | | FormItem, |
| | | RadioGroup as NutRadioGroup, |
| | | Radio as NutRadio, |
| | | Input as NutInput, |
| | | Button as NutButton, |
| | | } from '@nutui/nutui-taro'; |
| | | import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; |
| | | import { reactive, ref, computed, watch } from 'vue'; |
| | | import { |
| | |
| | | const { blLifeRecharge } = useLifeRechargeContext(); |
| | | |
| | | const rules = reactive<FormRules>({ |
| | | province: [{ required: true, message: '请选择所在城市' }], |
| | | electricAccountType: [{ required: true, message: '请选择电费类型' }], |
| | | electricAccount: [{ required: true, message: '请输入电网户号' }], |
| | | sixID: [{ required: true, message: '请输入身份证后六位' }], |