| | |
| | | }, |
| | | }, |
| | | }, |
| | | // htmlPluginOption: { |
| | | // favicon: './logo-v.png', |
| | | // }, |
| | | webpackChain(chain, webpack) { |
| | | chain.plugin('unplugin-auto-import').use( |
| | | AutoImport({ |
| | |
| | | const path = require('path'); |
| | | |
| | | module.exports = { |
| | | env: { |
| | | NODE_ENV: '"production"', |
| | | BASE_URL: '"https://api.81812333.com"', |
| | | BASE_URL_H5: '"/"', |
| | | BASE_URL_H5: '"https://api.81812333.com"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://parkmanagement.oss-cn-hangzhou.aliyuncs.com"', |
| | |
| | | defineConstants: {}, |
| | | mini: {}, |
| | | h5: { |
| | | output: { |
| | | path: path.resolve(__dirname, '..', `dist/h5-prod`), |
| | | }, |
| | | /** |
| | | * WebpackChain 插件配置 |
| | | * @docs https://github.com/neutrinojs/webpack-chain |
| | |
| | | const path = require('path'); |
| | | |
| | | module.exports = { |
| | | env: { |
| | | // BASE_URL: '"https://testrlywx.boleyuma.com"', |
| | | BASE_URL: '"https://api.81812333.com"', |
| | | BASE_URL_H5: '"/"', |
| | | BASE_URL_H5: '"http://118.178.252.28:8743"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/"', |
| | |
| | | |
| | | WEMAP_KEY: 'T2UBZ-N563J-ZCHFF-XDOXN-VCH7S-CJB2T', |
| | | }, |
| | | h5: { |
| | | output: { |
| | | path: path.resolve(__dirname, '..', `dist/h5-staging`), |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | "build:alipay": "taro build --type alipay", |
| | | "build:tt": "taro build --type tt", |
| | | "build:h5": "taro build --type h5", |
| | | "build:h5:staging": "cross-env APP_ENV=staging npm run build:h5 --", |
| | | "build:rn": "taro build --type rn", |
| | | "build:qq": "taro build --type qq", |
| | | "build:jd": "taro build --type jd", |
| | |
| | | :orderNo="orderNo" |
| | | :lifePayOrderType="lifePayOrderType" |
| | | @paySuccess="handePaySuccess" |
| | | :showAliPay="!isInWeChat" |
| | | :showWeixinPay="!isInAlipay" |
| | | /> |
| | | </ContentScrollView> |
| | | </template> |
| | |
| | | import { SelectPayTypeView } from '@life-payment/components'; |
| | | import { LifeRechargeConstants } from '@life-payment/core-vue'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { isInAlipay, isInWeChat } from '@/utils/env'; |
| | | |
| | | defineOptions({ |
| | | name: 'selectPayType', |
| | |
| | | import qs from 'qs'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { getToken, Message } from '@/utils'; |
| | | import { isWeb } from '@/utils/env'; |
| | | import { isWeb, isWeChat } from '@/utils/env'; |
| | | import { tokenIsExpired, SensitiveManage } from '@life-payment/utils'; |
| | | import { useUserStoreWithOut } from '@/stores/modules/user'; |
| | | |
| | |
| | | } |
| | | |
| | | export function endLoading() { |
| | | if (isWeChat) { |
| | | Taro.hideNavigationBarLoading(); |
| | | } |
| | | Taro.hideLoading(); |
| | | } |
| | | |
| | |
| | | }, |
| | | "include": [ |
| | | "./src/**/*", |
| | | "./src/utils/universal-api/index.js", |
| | | "./types/**/*.d.ts", |
| | | "./components.d.ts", |
| | | "./auto-imports.d.ts", |
| | |
| | | @use 'sass:map'; |
| | | @use './var.scss' as *; |
| | | @use './function.scss' as *; |
| | | @use './orderCard.scss' as *; |
| | | @use './nut.scss' as *; |
| | | @use './layout.scss' as *; |
| | | @use './rechargeGrid.scss' as *; |
| | | @use './components.scss' as *; |
| | | @use './loading.scss' as *; |
| | | @use './orderCard.scss' as *; |
| | | |
| | | :root, |
| | | page { |
| | |
| | | border: 1px solid #e8e8e8; |
| | | border-radius: 12px; |
| | | padding: 20px; |
| | | margin-bottom: 20px; |
| | | |
| | | &:last-child { |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .order-card-title { |
| | | display: flex; |
| | |
| | | <template> |
| | | <div class="select-pay-type-view"> |
| | | <div class="select-pay-type-view-item" @click="handleAliPay"> |
| | | <div class="select-pay-type-view-item" v-if="showAliPay" @click="handleAliPay"> |
| | | <img class="select-pay-type-view-item-icon" :src="IconAliPay" /> |
| | | <div class="select-pay-type-view-item-text">支付宝支付</div> |
| | | </div> |
| | | <div class="select-pay-type-view-item" @click="handleWeixinPay"> |
| | | <div class="select-pay-type-view-item" v-if="showWeixinPay" @click="handleWeixinPay"> |
| | | <img class="select-pay-type-view-item-icon" :src="IconWeixin" /> |
| | | <div class="select-pay-type-view-item-text">微信支付</div> |
| | | </div> |
| | |
| | | type Props = { |
| | | orderNo?: string; |
| | | lifePayOrderType?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | showAliPay?: boolean; |
| | | showWeixinPay?: boolean; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | showAliPay: true, |
| | | showWeixinPay: true, |
| | | }); |
| | | |
| | | const emit = defineEmits<{ |
| | | ( |
| | |
| | | type="text" |
| | | /> |
| | | </FormItem> |
| | | <FormItem label="选择充值金额" class="bole-form-item" prop="parValue" required> |
| | | <FormItem |
| | | v-if="!!form.province" |
| | | label="选择充值金额" |
| | | class="bole-form-item" |
| | | prop="parValue" |
| | | required |
| | | > |
| | | <RadioGroup v-model="form.parValue" direction="horizontal" class="parValue-radio-group"> |
| | | <Radio |
| | | :label="Number(item)" |
| | |
| | | } |
| | | |
| | | async login(body: PhoneMesssageCodeLoginInput, options?: RequestConfig) { |
| | | try { |
| | | let res = await this.services.lifePayPhoneMesssageCodeLogin(body, options); |
| | | this.accountModel.setUserId(res); |
| | | this.accountModel.setPhoneNumber(body.phoneNumber); |
| | | return res; |
| | | } catch (error) { |
| | | throw new Error(error); |
| | | } |
| | | } |
| | | |
| | | loginout() { |