Commit 61fd8827 authored by 5359's avatar 5359

历史更新提交

parent d9d5877e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV), CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: false, debug: true,
isMobilePlatform: false, isMobilePlatform: false,
appCode: '"HLS_APP"', appCode: '"HLS_APP"',
clearTable: true, clearTable: true,
......
...@@ -41,11 +41,10 @@ import { post, get } from './scripts/hlsHttp' ...@@ -41,11 +41,10 @@ import { post, get } from './scripts/hlsHttp'
/** 全局函数hlsUtil**/ /** 全局函数hlsUtil**/
import hlsUtil from './scripts/hlsUtil' import hlsUtil from './scripts/hlsUtil'
if (process.env.CONFIG_ENV === 'prod') {
// if (process.env.CONFIG_ENV === 'prod') { const VConsole = require('vconsole')
// const VConsole = require('vconsole') new VConsole() // eslint-disable-line
// new VConsole() // eslint-disable-line }
// }
Vue.use(directives) Vue.use(directives)
......
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
hlsHttp.post(url, param).then(function(res) { hlsHttp.post(url, param).then(function(res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
hlsHttp.post(url, param).then(function(res) { hlsHttp.post(url, param).then(function(res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
hlsHttp.post(url, param).then(function(res) { hlsHttp.post(url, param).then(function(res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div>{{item.file_sign_name}}</div> <div>{{item.file_sign_name}}</div>
<p style="color:red;margin-top:3px"></p> <p style="color:red;margin-top:3px"></p>
</div> </div>
</div> </div>
</div> </div>
<div class="footer" @click="createSign()">签约</div> <div class="footer" @click="createSign()">签约</div>
...@@ -60,13 +60,13 @@ export default { ...@@ -60,13 +60,13 @@ export default {
createSign() { createSign() {
let goUrl = this.data[0].sign_url let goUrl = this.data[0].sign_url
if (goUrl) { if (goUrl) {
// //
// this.hlsPopup.showLoading("请稍等"); // this.hlsPopup.showLoading("请稍等");
window.open(goUrl, "_self"); window.open(goUrl, "_self");
// let url = window.open('http://www.baidu.com','_self'); // let url = window.open('http://www.baidu.com','_self');
// if(url == null){ // if(url == null){
// } // }
} }
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
hlsHttp.post(url, param).then(function(res) { hlsHttp.post(url, param).then(function(res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -274,8 +274,8 @@ ...@@ -274,8 +274,8 @@
} }
hlsPopup.showConfirm({ hlsPopup.showConfirm({
title: '“授权”须知', title: '“授权管理转移”须知:',
content: '您即将授权“未授权”的经办人员作为贵司的签约授权代表,一旦您点击了“授权”按钮,相应的授权经办人员即完全取得代表贵司签约的权利,其所有签约操作行为都完全代表贵司。请您作为贵司签约授权管理人,在完全理解和明白前述点击“授权”按钮的法律后果并确保贵司愿意接受该种法律后果的情况下点击“授权”按钮。如您因误操作点击了“授权”按钮,请您立即进行取消授权的操作,否则贵司也将承担因误操作所引发的一切法律后果。', content: '您即将转移您的管理员权限,一旦您点击了“管理转移”按钮,相应的授权经办人员应该在获得贵司线下授权函的前提下,即获得贵司管理员的身份。请您作为贵司的管理员,在完全理解和明白前述点击“管理转移”按钮的法律后果并确保贵司愿意接受该种法律后果的情况下点击“管理转移”按钮。如您因误操作点击了“管理转移”按钮,请您立即进行取消转移的操作,否则贵司也将承担因误操作所引发的一切法律后果。',
onConfirm: function (index) { onConfirm: function (index) {
if (index === 1) { if (index === 1) {
vm.hlsPopup.showLoading('请稍等') vm.hlsPopup.showLoading('请稍等')
...@@ -328,18 +328,41 @@ ...@@ -328,18 +328,41 @@
if (vm.choosedList.length > 0) { if (vm.choosedList.length > 0) {
let url = process.env.rootPath + '/auth/api/individual/authorize' let url = process.env.rootPath + '/auth/api/individual/authorize'
let param = vm.choosedList let param = vm.choosedList
vm.hlsPopup.showLoading('请稍等') if (flag == 'Y') {
vm.$post(url, param).then(function (res) { hlsPopup.showConfirm({
vm.hlsPopup.hideLoading() title: '“授权”须知',
if (res.code == '000000') { content: '您即将授权“未授权”的经办人员作为贵司的签约授权代表,一旦您点击了“授权”按钮,相应的授权经办人员即完全取得代表贵司签约的权利,其所有签约操作行为都完全代表贵司。请您作为贵司签约授权管理人,在完全理解和明白前述点击“授权”按钮的法律后果并确保贵司愿意接受该种法律后果的情况下点击“授权”按钮。如您因误操作点击了“授权”按钮,请您立即进行取消授权的操作,否则贵司也将承担因误操作所引发的一切法律后果。',
hlsPopup.showLongCenter('操作成功!') onConfirm: function (index) {
vm.obj = {} if (index === 1) {
vm.choosedList = [] vm.hlsPopup.showLoading('请稍等')
vm.init() vm.$post(url, param).then(function (res) {
} else { vm.hlsPopup.hideLoading()
hlsPopup.showLongCenter(res.message) if (res.code == '000000') {
} hlsPopup.showLongCenter('操作成功!')
}) vm.obj = {}
vm.choosedList = []
vm.init()
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
},
})
} else if (flag == 'N') {
vm.hlsPopup.showLoading('请稍等')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.code == '000000') {
hlsPopup.showLongCenter('操作成功!')
vm.obj = {}
vm.choosedList = []
vm.init()
} else {
hlsPopup.showLongCenter(res.message)
}
})
}
} else { } else {
hlsPopup.showLongCenter('请选择经办人!') hlsPopup.showLongCenter('请选择经办人!')
} }
......
...@@ -842,7 +842,7 @@ ...@@ -842,7 +842,7 @@
hlsHttp.post(url, param).then(function (res) { hlsHttp.post(url, param).then(function (res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
hlsHttp.post(url, param).then(function (res) { hlsHttp.post(url, param).then(function (res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -435,7 +435,7 @@ export default { ...@@ -435,7 +435,7 @@ export default {
hlsHttp.post(url, param).then(function(res) { hlsHttp.post(url, param).then(function(res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
hlsHttp.post(url, param).then(function(res) { hlsHttp.post(url, param).then(function(res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
"hideOptionMenu" "hideOptionMenu"
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2 ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
}); });
wx.ready(function () { wx.ready(function () {
wx.hideOptionMenu(); wx.hideOptionMenu();
}) })
}); });
......
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
hlsHttp.post(url, param).then(function (res) { hlsHttp.post(url, param).then(function (res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
hlsHttp.post(url, param).then(function (res) { hlsHttp.post(url, param).then(function (res) {
wx.config({ wx.config({
beta: true, beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识 appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳 timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串 nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
......
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