Commit 04b4f507 by 张立顺

第一轮bug修复

1 parent 5b242f46
......@@ -12,9 +12,9 @@ const plugins = [
]
]
// 去除 console.log 先打开调试
// if (IS_PROD) {
// plugins.push('transform-remove-console')
// }
if (IS_PROD) {
plugins.push('transform-remove-console')
}
module.exports = {
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'usage', corejs: 3 }]],
......
No preview for this file type
{
"name": "gh-hall",
"name": "dj-car-alipay",
"version": "1.0.0",
"description": "GH Hall By Work WeChat",
"description": "dj-car-alipay By h5",
"author": "limin <limin.mail@qq.com>",
"private": true,
"scripts": {
......@@ -37,8 +37,10 @@
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"babel-plugin-import": "^1.13.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"file-loader": "^4.0.0",
"postcss-px-to-viewport": "^1.1.1",
"postcss-pxtorem": "^5.1.1",
"sass-loader": "^8.0.2",
......
......@@ -37,7 +37,7 @@ router.beforeEach((to, from, next) => {
// // 判断当前浏览器环境 不是支付宝就跳转提示页面
const AlipayClient = /AlipayClient/.test(window.navigator.userAgent)
// console.log(AlipayClient)
// if (!AlipayClient && to.path !== '/tipsPage') return next('/tipsPage')
if (!AlipayClient && to.path !== '/tipsPage') return next('/tipsPage')
// if (/MicroMessenger/.test(window.navigator.userAgent)) {
// alert('微信客户端')
......
......@@ -131,7 +131,7 @@ export default {
this.merchantName = merchantName
console.log(appId, 'appId')
// console.log('ap.getAuthCode', ap.getAuthCode)
alert(appId)
// ap.alert(appId)
// 请求用户授权
ap.getAuthCode({
// appId: '${appId}',
......@@ -140,7 +140,7 @@ export default {
// 主动授权:auth_user,静默授权:auth_base。或者其它scope
scopes: ['auth_base']
}, function (res) {
alert(JSON.stringify(res))
// ap.alert(JSON.stringify(res))
console.log(JSON.stringify(res))
res.authCode && that.getOpenId(res.authCode)
}, function (res) {
......@@ -364,6 +364,13 @@ export default {
</script>
<style scoped>
* {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.clearfix::after {
content: '';
display: table;
......@@ -460,6 +467,8 @@ export default {
}
.deletIcon {
/* 禁用图片保存事件 */
pointer-events: none;
width: 54px;
height: 42px;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!