Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jwhx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
jwhx
Commits
47ce31de
Commit
47ce31de
authored
Jan 13, 2025
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~~~~
parent
8f1f1351
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
216 additions
and
47 deletions
+216
-47
resources/admin/package.json
resources/admin/package.json
+27
-26
resources/admin/src/api/module/cashier.js
resources/admin/src/api/module/cashier.js
+8
-1
resources/admin/src/components/qrcode/qrcode.vue
resources/admin/src/components/qrcode/qrcode.vue
+87
-0
resources/admin/src/config/index.js
resources/admin/src/config/index.js
+2
-0
resources/admin/src/pages/cashierhome/cashierhome.scss
resources/admin/src/pages/cashierhome/cashierhome.scss
+4
-0
resources/admin/src/pages/cashierhome/cashierhome.vue
resources/admin/src/pages/cashierhome/cashierhome.vue
+88
-20
No files found.
resources/admin/package.json
View file @
47ce31de
...
...
@@ -9,33 +9,34 @@
"preview"
:
"vite preview"
},
"dependencies"
:
{
"@ckeditor/ckeditor5-vue"
:
"^7.2.0"
,
"@element-plus/icons-vue"
:
"^2.3.1"
,
"axios"
:
"^1.7.2"
,
"ckeditor5"
:
"^43.2.0"
,
"codemirror"
:
"5.65.5"
,
"core-js"
:
"3.29.0"
,
"cropperjs"
:
"1.5.13"
,
"crypto-js"
:
"4.1.1"
,
"echarts"
:
"5.4.1"
,
"element-plus"
:
"2.8.4"
,
"nprogress"
:
"0.2.0"
,
"pinyin-match"
:
"^1.2.4"
,
"qrcodejs2"
:
"0.0.2"
,
"sortablejs"
:
"1.15.0"
,
"vue"
:
"^3.4.21"
,
"vue-i18n"
:
"^9.13.1"
,
"vue-router"
:
"^4.3.2"
,
"vuedraggable"
:
"^4.0.3"
,
"vuex"
:
"^4.1.0"
,
"xgplayer"
:
"2.32.2"
,
"xgplayer-hls"
:
"2.5.2"
,
"xlsx"
:
"^0.18.5"
"@ckeditor/ckeditor5-vue"
:
"^7.2.0"
,
"@element-plus/icons-vue"
:
"^2.3.1"
,
"axios"
:
"^1.7.2"
,
"ckeditor5"
:
"^43.2.0"
,
"codemirror"
:
"5.65.5"
,
"core-js"
:
"3.29.0"
,
"cropperjs"
:
"1.5.13"
,
"crypto-js"
:
"4.1.1"
,
"echarts"
:
"5.4.1"
,
"element-plus"
:
"2.8.4"
,
"nprogress"
:
"0.2.0"
,
"pinyin-match"
:
"^1.2.4"
,
"qr-code-styling"
:
"^1.9.1"
,
"qrcodejs2"
:
"0.0.2"
,
"sortablejs"
:
"1.15.0"
,
"vue"
:
"^3.4.21"
,
"vue-i18n"
:
"^9.13.1"
,
"vue-router"
:
"^4.3.2"
,
"vuedraggable"
:
"^4.0.3"
,
"vuex"
:
"^4.1.0"
,
"xgplayer"
:
"2.32.2"
,
"xgplayer-hls"
:
"2.5.2"
,
"xlsx"
:
"^0.18.5"
},
"devDependencies"
:
{
"@vitejs/plugin-vue"
:
"^5.0.4"
,
"sass"
:
"1.77.2"
,
"terser"
:
"^5.31.0"
,
"vite"
:
"^5.2.0"
"@vitejs/plugin-vue"
:
"^5.0.4"
,
"sass"
:
"1.77.2"
,
"terser"
:
"^5.31.0"
,
"vite"
:
"^5.2.0"
}
}
resources/admin/src/api/module/cashier.js
View file @
47ce31de
...
...
@@ -37,6 +37,13 @@ export default {
post
:
async
function
(
params
){
return
await
http
.
post
(
this
.
url
,
params
);
}
}
},
nativepc
:{
url
:
`
${
config
.
API_URL_TWO
}
wechat/pay/nativepc`
,
name
:
"
支付订单
"
,
post
:
async
function
(
params
){
return
await
http
.
post
(
this
.
url
,
params
);
}
},
}
}
\ No newline at end of file
resources/admin/src/components/qrcode/qrcode.vue
0 → 100644
View file @
47ce31de
<
template
>
<div
ref=
"qrcode"
class=
"qrcodetags"
>
</div>
</
template
>
<
script
>
import
QRCodeStyling
from
"
qr-code-styling
"
;
export
default
{
name
:
"
QrCode
"
,
props
:
{
value
:
{
type
:
String
,
required
:
true
},
width
:
{
type
:
Number
,
default
:
200
}
},
data
()
{
return
{
qrCode
:
null
// 用于存储二维码实例
};
},
mounted
()
{
// this.initQRCode();
},
methods
:
{
initQRCode
()
{
console
.
info
(
"
initQRCode
"
);
if
(
this
.
qrCode
)
{
this
.
qrCode
.
clear
();
// 清除已存在的二维码
}
this
.
qrCode
=
new
QRCodeStyling
({
width
:
this
.
width
,
data
:
this
.
value
,
image
:
""
,
// 如果你想添加logo到二维码中间,可以在这里提供图片URL
dotsOptions
:
{
color
:
"
#000000
"
},
backgroundOptions
:
{
color
:
"
#ffffff
"
},
imageOptions
:
{
crossOrigin
:
"
anonymous
"
,
margin
:
10
}
});
this
.
qrCode
.
append
(
this
.
$refs
.
qrcode
);
},
updateQRCode
(
newValue
)
{
if
(
this
.
qrCode
)
{
this
.
qrCode
.
update
({
data
:
newValue
});
// 更新二维码的数据
}
else
{
this
.
initQRCode
();
// 如果还没有初始化,则初始化
}
}
},
watch
:
{
value
(
newVal
,
oldVal
)
{
if
(
newVal
!==
oldVal
)
{
this
.
updateQRCode
(
newVal
);
}
}
},
beforeDestroy
()
{
if
(
this
.
qrCode
)
{
this
.
qrCode
.
clear
();
// 在组件销毁前清除二维码
}
}
};
</
script
>
<
style
scoped
>
.qrcodetags
{
margin
:
0
auto
;
width
:
200px
;
/* height: 200px; */
}
</
style
>
\ No newline at end of file
resources/admin/src/config/index.js
View file @
47ce31de
...
...
@@ -14,6 +14,8 @@ const DEFAULT_CONFIG = {
//接口地址
API_URL
:
"
https://juwu.xicheda.cn/admin/
"
,
API_URL_TWO
:
"
https://juwu.xicheda.cn/api/
"
,
//请求超时
TIMEOUT
:
50000
,
...
...
resources/admin/src/pages/cashierhome/cashierhome.scss
View file @
47ce31de
...
...
@@ -311,4 +311,8 @@ text-align: center;
}
}
}
}
.qrcodepup
{
text-align
:
center
;
}
\ No newline at end of file
resources/admin/src/pages/cashierhome/cashierhome.vue
View file @
47ce31de
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment