Commit 04b4f507 by 张立顺

第一轮bug修复

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