邮储奶茶支付商户号区分测试和生产环境

This commit is contained in:
xiaogang 2024-08-05 09:18:19 +08:00
parent 6affbac192
commit a28028c8fc
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
# 邮储奶茶活动(测试环境) # 邮储奶茶活动(测试环境)
# VITE_BASE_URL = 'http://milk.api.test.86698.cn' # VITE_BASE_URL = 'http://milk.api.test.86698.cn'
# VITE_MERCH_CODE = '100610100019029' # VITE_YCNC_MERCH_CODE = '100610100019029'
# 邮储奶茶活动(正式环境) # 邮储奶茶活动(正式环境)
VITE_BASE_URL = 'https://milk.api.cdlsxd.cn' VITE_BASE_URL = 'https://milk.api.cdlsxd.cn'
VITE_MERCH_CODE = '100510102210712' VITE_YCNC_MERCH_CODE = '100510102210712'

View File

@ -20,7 +20,7 @@ export default function usePay(){
BackLink:encodeURIComponent(`${window.location.origin}/#/pages/ycnc/orderDetail?order_no=${order_no}`), BackLink:encodeURIComponent(`${window.location.origin}/#/pages/ycnc/orderDetail?order_no=${order_no}`),
psbcmcc:'LSXD', psbcmcc:'LSXD',
TxnDt:dayjs(Date.now()).format('YYYY-MM-DD'), TxnDt:dayjs(Date.now()).format('YYYY-MM-DD'),
MercCode:import.meta.env.VITE_MERCH_CODE MercCode:import.meta.env.VITE_YCNC_MERCH_CODE
} }
const params = { const params = {
Plain:handleParams(Plain), Plain:handleParams(Plain),

View File

@ -40,7 +40,7 @@
<view class="btns"> <view class="btns">
<view class="btn pwd" @click="viewPwd(orderDetail)" v-if="[3].includes(orderDetail.state) && !!orderDetail.voucher_link">查看卡密</view> <view class="btn pwd" @click="viewPwd(orderDetail)" v-if="[3].includes(orderDetail.state) && !!orderDetail.voucher_link">查看卡密</view>
<view class="btn pwd" @click="pay(orderDetail)" v-if="[1].includes(orderDetail.state)">立即付款</view> <view class="btn pwd" @click="pay(orderDetail)" v-if="[1].includes(orderDetail.state)">立即付款</view>
<view class="btn pwd" v-if="[4].includes(orderDetail.state) && !orderDetail.voucher_link" @click="goRefund">申请退款</view> <view class="btn pwd" v-if="[4].includes(orderDetail.state)" @click="goRefund">申请退款</view>
<view class="btn back" @click="backIndex">返回首页</view> <view class="btn back" @click="backIndex">返回首页</view>
</view> </view>
</view> </view>