Commit 8a865fd2 by liuliufashi

update

parent 94304c18
...@@ -31,14 +31,6 @@ const routes: Array<RouteRecordRaw> = [ ...@@ -31,14 +31,6 @@ const routes: Array<RouteRecordRaw> = [
component: ()=>import('@/views/pay-bind/index.vue') component: ()=>import('@/views/pay-bind/index.vue')
}, },
{ {
path: '/home/payconfig',
name: '支付配置',
meta:{
icon:'icon-fencengpeizhi'
},
component: ()=>import('@/views/pay-config/index.vue')
},
{
path: '/home/goodscabinet', path: '/home/goodscabinet',
name: '商品橱柜', name: '商品橱柜',
meta:{ meta:{
...@@ -54,6 +46,14 @@ const routes: Array<RouteRecordRaw> = [ ...@@ -54,6 +46,14 @@ const routes: Array<RouteRecordRaw> = [
}, },
component: ()=>import('@/views/pay-list/index.vue') component: ()=>import('@/views/pay-list/index.vue')
}, },
{
path: '/home/payconfig',
name: '支付配置',
meta:{
icon:'icon-fencengpeizhi'
},
component: ()=>import('@/views/pay-config/index.vue')
},
] ]
}, },
{ {
...@@ -66,12 +66,12 @@ const router = createRouter({ ...@@ -66,12 +66,12 @@ const router = createRouter({
history: createWebHistory(), history: createWebHistory(),
routes routes
}) })
router.beforeEach((to,from,next)=>{ // router.beforeEach((to,from,next)=>{
const token:any = getToken // const token:any = getToken
if(token){ // if(token){
next() // next()
}else{ // }else{
router.push('/login') // router.push('/login')
} // }
}) // })
export default router export default router
...@@ -301,8 +301,8 @@ const onSetShowTable = async (data: any) => { ...@@ -301,8 +301,8 @@ const onSetShowTable = async (data: any) => {
if(query.value.paytype == 1){ if(query.value.paytype == 1){
const { mchid, mchkey, appid, name } = data const { mchid, mchkey, appid, name } = data
const uid: any = getUid() const uid: any = getUid()
modelRef.mchid = mchid modelRef.privatekey = mchid
modelRef.mchkey = mchkey modelRef.alipaypublickey = mchkey
modelRef.appid = appid modelRef.appid = appid
modelRef.name = name modelRef.name = name
// modelRef.server_url =server_url // modelRef.server_url =server_url
......
...@@ -97,9 +97,9 @@ ...@@ -97,9 +97,9 @@
</div> </div>
</a-checkbox-group> </a-checkbox-group>
</a-form-item> --> </a-form-item> -->
<a-form-item label="支付前填写手机号" name="price" :label-col="{ span: 2 }" labelAlign="left"> <a-form-item label="支付前填写手机号" name="price" :label-col="{ span: 3 }" labelAlign="left">
<div style="display: flex;"> <div style="display: flex;">
<a-switch v-model:checked="formState.fullphone" /> <a-switch :checked="formState.fullphone === '0'" />
</div> </div>
</a-form-item> </a-form-item>
<a-form-item label="开始时间" name="price" :label-col="{ span: 2 }" labelAlign="left"> <a-form-item label="开始时间" name="price" :label-col="{ span: 2 }" labelAlign="left">
...@@ -147,6 +147,7 @@ const disabledDate = (current: any) => { ...@@ -147,6 +147,7 @@ const disabledDate = (current: any) => {
const popupScroll = () => { const popupScroll = () => {
console.log('popupScroll'); console.log('popupScroll');
}; };
const uid =getUid()
const value = ref<string>(''); const value = ref<string>('');
const checkboxValue = ref<any>([]) const checkboxValue = ref<any>([])
const optionss = ref<Array<Object>>([]) const optionss = ref<Array<Object>>([])
...@@ -271,7 +272,7 @@ const onCopy = async(e:any) => { ...@@ -271,7 +272,7 @@ const onCopy = async(e:any) => {
// ?ditch=1&goodsid=1&phone=1&studentid=1 // ?ditch=1&goodsid=1&phone=1&studentid=1
const value = localStorage.getItem('url') || '' const value = localStorage.getItem('url') || ''
try { try {
await toClipboard(`${value}?ditch=${e.goodspayditch[0].appointpay}&goodsid=${e.goodspayditch[0].goodsid}&phone=${e.fullphone}`) await toClipboard(`${value}?ditch=${uid}&goodsid=${e.goodsid}&phone=${e.fullphone}`)
message.success('复制成功') message.success('复制成功')
} catch (e) { } catch (e) {
console.error(e) console.error(e)
...@@ -339,6 +340,7 @@ defineExpose({ ...@@ -339,6 +340,7 @@ defineExpose({
value3, value3,
value4, value4,
value5, value5,
uid,
onSet, onSet,
onSearch, onSearch,
columns, columns,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment