This commit is contained in:
@@ -56,5 +56,7 @@ export default {
|
|||||||
userttwechat(data) { //开票人列表
|
userttwechat(data) { //开票人列表
|
||||||
return uni.api.post("user/ttwechat", data);
|
return uni.api.post("user/ttwechat", data);
|
||||||
},
|
},
|
||||||
|
storepaidkeywordsearch(data) { //企业关键词搜索Paid
|
||||||
|
return uni.api.post("store/paidkeywordsearch", data);
|
||||||
|
},
|
||||||
}
|
}
|
||||||
@@ -7,9 +7,9 @@ const baseUrl = 'https://invoice.sxczgkj.cn/api/' //正式
|
|||||||
// const baseUrl = 'http://192.168.2.23:8888/api/'//正式
|
// const baseUrl = 'http://192.168.2.23:8888/api/'//正式
|
||||||
// const baseUrl = 'http://test.invoice.sxczgkj.cn/api/'//测试
|
// const baseUrl = 'http://test.invoice.sxczgkj.cn/api/'//测试
|
||||||
// #endif
|
// #endif
|
||||||
// import VConsole from "./vConsole.js"
|
import VConsole from "./vConsole.js"
|
||||||
// if (debug) {
|
// if (debug) {
|
||||||
// // new VConsole()
|
// new VConsole()
|
||||||
// }
|
// }
|
||||||
const version = '120'
|
const version = '120'
|
||||||
const autoRemoveCache = {
|
const autoRemoveCache = {
|
||||||
|
|||||||
44
index.html
44
index.html
@@ -6,11 +6,6 @@
|
|||||||
<title>
|
<title>
|
||||||
<%= htmlWebpackPlugin.options.title %>
|
<%= htmlWebpackPlugin.options.title %>
|
||||||
</title>
|
</title>
|
||||||
<!-- Open Graph data -->
|
|
||||||
<!-- <meta property="og:title" content="Title Here" /> -->
|
|
||||||
<!-- <meta property="og:url" content="http://www.example.com/" /> -->
|
|
||||||
<!-- <meta property="og:image" content="http://example.com/image.jpg" /> -->
|
|
||||||
<!-- <meta property="og:description" content="Description Here" /> -->
|
|
||||||
<script>
|
<script>
|
||||||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS
|
||||||
.supports('top: constant(a)'))
|
.supports('top: constant(a)'))
|
||||||
@@ -19,7 +14,6 @@
|
|||||||
(coverSupport ? ', viewport-fit=cover' : '') +
|
(coverSupport ? ', viewport-fit=cover' : '') +
|
||||||
'" />')
|
'" />')
|
||||||
</script>
|
</script>
|
||||||
<!-- <script src="https://qzs.gdtimg.com/union/res/union_sdk/page/h5_sdk/i.js"></script> -->
|
|
||||||
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
|
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -27,43 +21,5 @@
|
|||||||
<strong>Please enable JavaScript to continue.</strong>
|
<strong>Please enable JavaScript to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<!-- <script type="text/javascript">
|
|
||||||
// H5 SDK 在线文档地址:http://developers.adnet.qq.com/doc/web/js_develop
|
|
||||||
// 全局命名空间申明TencentGDT对象
|
|
||||||
window.TencentGDT = window.TencentGDT || [];
|
|
||||||
|
|
||||||
// 广告初始化
|
|
||||||
window.TencentGDT.push({
|
|
||||||
app_id: '1206941502', // {String} - appid - 必填
|
|
||||||
placement_id: '9019288881405424', // {String} - 广告位id - 必填
|
|
||||||
type: 'interstitial', // {String} - 原生广告类型 - 必填
|
|
||||||
muid_type: '1', // {String} - 移动终端标识类型,1:imei,2:idfa,3:mac号 - 选填
|
|
||||||
muid: '******', // {String} - 加密终端标识,详细加密算法见API说明 - 选填
|
|
||||||
count: 1, // {Number} - 拉取广告的数量,默认是3,最高支持10 - 选填
|
|
||||||
onComplete: function(res) {
|
|
||||||
if (res && res.ret === 0) {
|
|
||||||
// 原生模板广告位调用 window.TencentGDT.NATIVE.renderAd(res[0], 'containerId') 进行模板广告的渲染
|
|
||||||
// res[0] 代表取广告数组第一个数据
|
|
||||||
TencentGDT.NATIVE.renderAd(res.data[0]);
|
|
||||||
} else {
|
|
||||||
// 加载广告API,如广告回调无广告,可使用loadAd再次拉取广告
|
|
||||||
// 注意:拉取广告频率每分钟不要超过20次,否则会被广告接口过滤,影响广告位填充率
|
|
||||||
setTimeout(function() {
|
|
||||||
window.TencentGDT.NATIVE.loadAd(placement_id)
|
|
||||||
}, 3000)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// H5 SDK接入全局只需运行一次
|
|
||||||
(function() {
|
|
||||||
var doc = document,
|
|
||||||
h = doc.getElementsByTagName('head')[0],
|
|
||||||
s = doc.createElement('script');
|
|
||||||
s.async = true;
|
|
||||||
s.src = '//qzs.qq.com/qzone/biz/res/i.js';
|
|
||||||
h && h.insertBefore(s, h.firstChild);
|
|
||||||
})();
|
|
||||||
</script> -->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
205
npminstall-debug.log
Normal file
205
npminstall-debug.log
Normal file
@@ -0,0 +1,205 @@
|
|||||||
|
{
|
||||||
|
root: 'D:\\w\\CZG\\Hfive',
|
||||||
|
registry: 'https://registry.npmmirror.com',
|
||||||
|
pkgs: [
|
||||||
|
{
|
||||||
|
name: '@dcloudio/uni-pdf',
|
||||||
|
version: 'latest',
|
||||||
|
type: 'tag',
|
||||||
|
alias: undefined,
|
||||||
|
arg: [Result]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
production: false,
|
||||||
|
cacheStrict: false,
|
||||||
|
cacheDir: 'C:\\Users\\小啾\\.npminstall_tarball',
|
||||||
|
env: {
|
||||||
|
npm_config_registry: 'https://registry.npmmirror.com',
|
||||||
|
npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=C:\\\\Users\\\\小啾\\\\.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","@dcloudio/uni-pdf"],"original":["--fix-bug-versions","--china","--userconfig=C:\\\\Users\\\\小啾\\\\.cnpmrc","--disturl=https://cdn.npmmirror.com/binaries/node","--registry=https://registry.npmmirror.com","@dcloudio/uni-pdf"]}',
|
||||||
|
npm_config_user_agent: 'npminstall/7.12.0 npm/? node/v20.11.1 win32 x64',
|
||||||
|
npm_config_cache: 'C:\\Users\\小啾\\.npminstall_tarball',
|
||||||
|
NODE: 'F:\\xw-software\\安装包\\nodejs\\node.exe',
|
||||||
|
npm_node_execpath: 'F:\\xw-software\\安装包\\nodejs\\node.exe',
|
||||||
|
npm_execpath: 'C:\\Users\\小啾\\AppData\\Roaming\\npm\\node_modules\\cnpm\\node_modules\\npminstall\\bin\\install.js',
|
||||||
|
npm_config_userconfig: 'C:\\Users\\小啾\\.cnpmrc',
|
||||||
|
npm_config_disturl: 'https://cdn.npmmirror.com/binaries/node',
|
||||||
|
npm_config_r: 'https://registry.npmmirror.com',
|
||||||
|
COREPACK_NPM_REGISTRY: 'https://registry.npmmirror.com',
|
||||||
|
EDGEDRIVER_CDNURL: 'https://npmmirror.com/mirrors/edgedriver',
|
||||||
|
NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
|
||||||
|
NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
|
||||||
|
PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs',
|
||||||
|
CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver',
|
||||||
|
OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver',
|
||||||
|
CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip',
|
||||||
|
ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/',
|
||||||
|
ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/',
|
||||||
|
SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass',
|
||||||
|
SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc',
|
||||||
|
NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v',
|
||||||
|
PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
|
||||||
|
PUPPETEER_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
|
||||||
|
PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright',
|
||||||
|
SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli',
|
||||||
|
SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl',
|
||||||
|
RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2',
|
||||||
|
RE2_DOWNLOAD_SKIP_PATH: 'true',
|
||||||
|
PRISMA_ENGINES_MIRROR: 'https://cdn.npmmirror.com/binaries/prisma',
|
||||||
|
npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3',
|
||||||
|
npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar',
|
||||||
|
npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
|
||||||
|
npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
|
||||||
|
npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs',
|
||||||
|
npm_rootpath: 'D:\\w\\CZG\\Hfive',
|
||||||
|
INIT_CWD: 'D:\\w\\CZG\\Hfive'
|
||||||
|
},
|
||||||
|
binaryMirrors: {
|
||||||
|
ENVS: {
|
||||||
|
COREPACK_NPM_REGISTRY: 'https://registry.npmmirror.com',
|
||||||
|
EDGEDRIVER_CDNURL: 'https://npmmirror.com/mirrors/edgedriver',
|
||||||
|
NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
|
||||||
|
NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
|
||||||
|
PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs',
|
||||||
|
CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver',
|
||||||
|
OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver',
|
||||||
|
CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip',
|
||||||
|
ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/',
|
||||||
|
ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/',
|
||||||
|
SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass',
|
||||||
|
SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc',
|
||||||
|
NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v',
|
||||||
|
PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
|
||||||
|
PUPPETEER_DOWNLOAD_BASE_URL: 'https://cdn.npmmirror.com/binaries/chrome-for-testing',
|
||||||
|
PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright',
|
||||||
|
SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli',
|
||||||
|
SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl',
|
||||||
|
RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2',
|
||||||
|
RE2_DOWNLOAD_SKIP_PATH: 'true',
|
||||||
|
PRISMA_ENGINES_MIRROR: 'https://cdn.npmmirror.com/binaries/prisma',
|
||||||
|
npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3',
|
||||||
|
npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar',
|
||||||
|
npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
|
||||||
|
npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
|
||||||
|
npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs'
|
||||||
|
},
|
||||||
|
'@ali/s2': { host: 'https://cdn.npmmirror.com/binaries/looksgood-s2' },
|
||||||
|
sharp: { replaceHostFiles: [Array], replaceHostMap: [Object] },
|
||||||
|
'@tensorflow/tfjs-node': {
|
||||||
|
replaceHostFiles: [Array],
|
||||||
|
replaceHostRegExpMap: [Object],
|
||||||
|
replaceHostMap: [Object]
|
||||||
|
},
|
||||||
|
cypress: {
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/cypress',
|
||||||
|
newPlatforms: [Object]
|
||||||
|
},
|
||||||
|
'utf-8-validate': {
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/utf-8-validate/v{version}'
|
||||||
|
},
|
||||||
|
xprofiler: {
|
||||||
|
remote_path: './xprofiler/v{version}/',
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries'
|
||||||
|
},
|
||||||
|
leveldown: { host: 'https://cdn.npmmirror.com/binaries/leveldown/v{version}' },
|
||||||
|
couchbase: { host: 'https://cdn.npmmirror.com/binaries/couchbase/v{version}' },
|
||||||
|
gl: { host: 'https://cdn.npmmirror.com/binaries/gl/v{version}' },
|
||||||
|
sqlite3: {
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/sqlite3',
|
||||||
|
remote_path: 'v{version}'
|
||||||
|
},
|
||||||
|
'@journeyapps/sqlcipher': { host: 'https://cdn.npmmirror.com/binaries' },
|
||||||
|
grpc: {
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries',
|
||||||
|
remote_path: '{name}/v{version}'
|
||||||
|
},
|
||||||
|
'grpc-tools': { host: 'https://cdn.npmmirror.com/binaries' },
|
||||||
|
wrtc: {
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries',
|
||||||
|
remote_path: '{name}/v{version}'
|
||||||
|
},
|
||||||
|
fsevents: { host: 'https://cdn.npmmirror.com/binaries/fsevents' },
|
||||||
|
nodejieba: { host: 'https://cdn.npmmirror.com/binaries/nodejieba' },
|
||||||
|
canvas: { host: 'https://cdn.npmmirror.com/binaries/canvas' },
|
||||||
|
'skia-canvas': { host: 'https://cdn.npmmirror.com/binaries/skia-canvas' },
|
||||||
|
'flow-bin': {
|
||||||
|
replaceHost: 'https://github.com/facebook/flow/releases/download/v',
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/flow/v'
|
||||||
|
},
|
||||||
|
'jpegtran-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/jpegtran-bin'
|
||||||
|
},
|
||||||
|
'cwebp-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/cwebp-bin'
|
||||||
|
},
|
||||||
|
'zopflipng-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/zopflipng-bin'
|
||||||
|
},
|
||||||
|
'optipng-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/optipng-bin'
|
||||||
|
},
|
||||||
|
mozjpeg: {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/mozjpeg-bin'
|
||||||
|
},
|
||||||
|
gifsicle: {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/gifsicle-bin'
|
||||||
|
},
|
||||||
|
'pngquant-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/pngquant-bin',
|
||||||
|
replaceHostMap: [Object]
|
||||||
|
},
|
||||||
|
'pngcrush-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/pngcrush-bin'
|
||||||
|
},
|
||||||
|
'jpeg-recompress-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/jpeg-recompress-bin'
|
||||||
|
},
|
||||||
|
'advpng-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/advpng-bin'
|
||||||
|
},
|
||||||
|
'pngout-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/pngout-bin'
|
||||||
|
},
|
||||||
|
'jpegoptim-bin': {
|
||||||
|
replaceHost: [Array],
|
||||||
|
host: 'https://cdn.npmmirror.com/binaries/jpegoptim-bin'
|
||||||
|
},
|
||||||
|
argon2: { host: 'https://cdn.npmmirror.com/binaries/argon2' },
|
||||||
|
'ali-zeromq': { host: 'https://cdn.npmmirror.com/binaries/ali-zeromq' },
|
||||||
|
'ali-usb_ctl': { host: 'https://cdn.npmmirror.com/binaries/ali-usb_ctl' },
|
||||||
|
'gdal-async': { host: 'https://cdn.npmmirror.com/binaries/node-gdal-async' },
|
||||||
|
'libpg-query': { host: 'https://cdn.npmmirror.com/binaries' }
|
||||||
|
},
|
||||||
|
forbiddenLicenses: null,
|
||||||
|
flatten: false,
|
||||||
|
proxy: undefined,
|
||||||
|
prune: false,
|
||||||
|
disableFallbackStore: false,
|
||||||
|
workspacesMap: Map(0) {},
|
||||||
|
enableWorkspace: false,
|
||||||
|
workspaceRoot: 'D:\\w\\CZG\\Hfive',
|
||||||
|
isWorkspaceRoot: true,
|
||||||
|
isWorkspacePackage: false,
|
||||||
|
offline: false,
|
||||||
|
strictSSL: false,
|
||||||
|
ignoreScripts: false,
|
||||||
|
foregroundScripts: false,
|
||||||
|
ignoreOptionalDependencies: false,
|
||||||
|
detail: false,
|
||||||
|
forceLinkLatest: false,
|
||||||
|
trace: false,
|
||||||
|
engineStrict: false,
|
||||||
|
registryOnly: false,
|
||||||
|
client: false,
|
||||||
|
autoFixVersion: [Function: autoFixVersion]
|
||||||
|
}
|
||||||
4046
package-lock.json
generated
4046
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,7 @@
|
|||||||
"dayjs": "^1.11.11",
|
"dayjs": "^1.11.11",
|
||||||
"html2canvas": "^1.4.1",
|
"html2canvas": "^1.4.1",
|
||||||
"uview-ui": "^2.0.36",
|
"uview-ui": "^2.0.36",
|
||||||
|
"vue-pdf": "^4.3.0",
|
||||||
"weixin-js-sdk": "^1.6.5"
|
"weixin-js-sdk": "^1.6.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,40 +1,41 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content" @click.stop="stopPropagation">
|
||||||
<view class="content_top">
|
<view class="content_top">
|
||||||
<view :class="form.user_type == 1 ? 'content_topview' : ''" @click="clickakex(1)">个人</view>
|
<view :class="form.user_type == 1 ? 'content_topview' : ''" @click="clickakex(1)">个人</view>
|
||||||
<view :class="form.user_type == 2 ? 'content_topview' : ''" @click="clickakex(2)">企业</view>
|
<view :class="form.user_type == 2 ? 'content_topview' : ''" @click="clickakex(2)">企业</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content_item">
|
<view class="content_item">
|
||||||
<view class="Box_box flex-between" v-if="form.user_type == 1">
|
<view class="Box_box flex-between" v-if="form.user_type == 1">
|
||||||
<view>*姓名</view>
|
<view class="Box_boxone">*姓名</view>
|
||||||
<view><input type="text" v-model="form.user_name" placeholder="请填写名称" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.user_name" placeholder="请填写名称" /></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Box_box flex-between" v-if="form.user_type == 2">
|
<view class="Box_box flex-between" v-if="form.user_type == 2">
|
||||||
<view>*单位名称</view>
|
<view class="Box_boxone">*单位名称</view>
|
||||||
<view style="position: relative; width: 70%">
|
<view class="Box_boxtow" style="position: relative; width: 70%">
|
||||||
<input type="text" v-if="subCategoryList.length == 0" v-model="form.user_name" placeholder="请填写公司名称" @input="onInput" />
|
<input type="text" v-model="form.user_name" placeholder="请填写公司名称" @input="onInput" />
|
||||||
<view class="position" v-else>
|
<view class="position" v-if="subCategoryList.length != 0">
|
||||||
<view class="positionitem" v-for="(item, index) in subCategoryList" :key="index" @click="categorySubClick(item)">
|
<view class="positionitem" v-for="(item, index) in subCategoryList" :key="index"
|
||||||
|
@click="categorySubClick(item)">
|
||||||
{{ item.companyName }}
|
{{ item.companyName }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Box_box flex-between" v-if="form.user_type == 2">
|
<view class="Box_box flex-between" v-if="form.user_type == 2">
|
||||||
<view>*税号</view>
|
<view class="Box_boxone">*税号</view>
|
||||||
<view><input type="text" v-model="form.user_duty" placeholder="请填写公司税号" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.user_duty" placeholder="请填写公司税号" /></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Box_box flex-between">
|
<view class="Box_box flex-between">
|
||||||
<view>*邮箱</view>
|
<view class="Box_boxone">*邮箱</view>
|
||||||
<view><input type="text" v-model="form.email" placeholder="请填写邮箱" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.email" placeholder="请填写邮箱" /></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Box_box flex-between">
|
<view class="Box_box flex-between">
|
||||||
<view>*手机号</view>
|
<view class="Box_boxone">*手机号</view>
|
||||||
<view><input type="text" v-model="form.mobile" placeholder="请填写联系电话" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.mobile" placeholder="请填写联系电话" /></view>
|
||||||
</view>
|
</view>
|
||||||
<template v-if="form.user_type == 2">
|
<template v-if="form.user_type == 2">
|
||||||
<view class="Box_box flex-between" @click="showElse = !showElse">
|
<view class="Box_box flex-between" @click="showElse = !showElse">
|
||||||
<view>其他信息</view>
|
<view class="Box_boxone">其他信息</view>
|
||||||
<view class="arrow">
|
<view class="arrow">
|
||||||
<text class="t">地址、开户行</text>
|
<text class="t">地址、开户行</text>
|
||||||
<u-icon name="arrow-down" class="arrow-icon" :class="{ active: showElse }"></u-icon>
|
<u-icon name="arrow-down" class="arrow-icon" :class="{ active: showElse }"></u-icon>
|
||||||
@@ -42,20 +43,20 @@
|
|||||||
</view>
|
</view>
|
||||||
<template v-if="showElse">
|
<template v-if="showElse">
|
||||||
<view class="Box_box flex-between">
|
<view class="Box_box flex-between">
|
||||||
<view>公司地址</view>
|
<view class="Box_boxone">公司地址</view>
|
||||||
<view><input type="text" v-model="form.c_address" placeholder="请填写公司地址" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.c_address" placeholder="请填写公司地址" /></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Box_box flex-between">
|
<view class="Box_box flex-between">
|
||||||
<view>联系电话</view>
|
<view class="Box_boxone">联系电话</view>
|
||||||
<view><input type="text" v-model="form.c_phone" placeholder="请填写公司联系电话" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.c_phone" placeholder="请填写公司联系电话" /></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Box_box flex-between">
|
<view class="Box_box flex-between">
|
||||||
<view>开户行名称</view>
|
<view class="Box_boxone">开户行名称</view>
|
||||||
<view><input type="text" v-model="form.c_bank_name" placeholder="请填写公司开户行名称" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.c_bank_name" placeholder="请填写公司开户行名称" /></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="Box_box flex-between">
|
<view class="Box_box flex-between">
|
||||||
<view>开户行账号</view>
|
<view class="Box_boxone">开户行账号</view>
|
||||||
<view><input type="text" v-model="form.c_bank_account" placeholder="请填写公司开户行账号" /></view>
|
<view class="Box_boxtow"><input type="text" v-model="form.c_bank_account" placeholder="请填写公司开户行账号" /></view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
@@ -64,7 +65,7 @@
|
|||||||
<view><input type="text" v-model="form.notes" placeholder="请输入内容" /></view>
|
<view><input type="text" v-model="form.notes" placeholder="请输入内容" /></view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="Box_box flex-between">
|
<view class="Box_box flex-between">
|
||||||
<view>备注:</view>
|
<view class="Box_boxone">备注:</view>
|
||||||
<u--textarea v-model="form.notes" placeholder="请输入内容"></u--textarea>
|
<u--textarea v-model="form.notes" placeholder="请输入内容"></u--textarea>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="Box_boxbox" @click="upload">
|
<!-- <view class="Box_boxbox" @click="upload">
|
||||||
@@ -77,7 +78,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="preservation flex-colum">
|
<view class="preservation flex-colum">
|
||||||
<view v-if="form.status_note" style="width: 100%; color: #ff2b2b; padding: 28rpx 0; word-wrap: break-word">({{ form.status_note || '无' }})</view>
|
<view v-if="form.status_note"
|
||||||
|
style="width: 100%; color: #ff2b2b; padding: 28rpx 0; word-wrap: break-word">
|
||||||
|
({{ form.status_note || '无' }})</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content_bottom" @click="saveMerchantBaseInfo">确定</view>
|
<view class="content_bottom" @click="saveMerchantBaseInfo">确定</view>
|
||||||
@@ -85,423 +88,455 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import jWeixin from 'jweixin-module's
|
// import jWeixin from 'jweixin-module's
|
||||||
import wx from 'weixin-js-sdk';
|
import wx from 'weixin-js-sdk';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showtext: 0,
|
showtext: 0,
|
||||||
subCategoryList: [],
|
subCategoryList: [],
|
||||||
form: {
|
form: {
|
||||||
user_type: 2,
|
user_type: 2,
|
||||||
img: '',
|
img: '',
|
||||||
user_name: '',
|
user_name: '',
|
||||||
user_duty: '',
|
user_duty: '',
|
||||||
email: '',
|
email: '',
|
||||||
mobile: '',
|
mobile: '',
|
||||||
status_note: '',
|
status_note: '',
|
||||||
c_address: '',
|
c_address: '',
|
||||||
c_phone: '',
|
c_phone: '',
|
||||||
c_bank_name: '',
|
c_bank_name: '',
|
||||||
c_bank_account: ''
|
c_bank_account: ''
|
||||||
},
|
},
|
||||||
showElse: false
|
showElse: false
|
||||||
};
|
};
|
||||||
},
|
|
||||||
async onLoad(e) {
|
|
||||||
this.form.id = e.id;
|
|
||||||
this.form.open_id = e.open_id;
|
|
||||||
if (e.view_type == 'fail') {
|
|
||||||
this.form.view_type = e.view_type;
|
|
||||||
let res = await this.api.szzpyfailccho({
|
|
||||||
id: this.form.id,
|
|
||||||
view_type: this.form.view_type
|
|
||||||
});
|
|
||||||
try {
|
|
||||||
if (res.code == 1) {
|
|
||||||
this.form = res.data.data;
|
|
||||||
this.form.status_note = res.data.status_note;
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
//TODO handle the exception
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
wxInit() {
|
|
||||||
wx.config({
|
|
||||||
debug: false, // true:调试时候弹窗
|
|
||||||
appId: res.appId, // 微信appid
|
|
||||||
timestamp: res.timestamp, // 时间戳
|
|
||||||
nonceStr: res.nonceStr, // 随机字符串
|
|
||||||
signature: res.signature, // 签名
|
|
||||||
jsApiList: [
|
|
||||||
// 所有要调用的 API 都要加到这个列表中
|
|
||||||
'onMenuShareTimeline', // 分享到朋友圈接口
|
|
||||||
'onMenuShareAppMessage', // 分享到朋友接口
|
|
||||||
'onMenuShareQQ', // 分享到QQ接口
|
|
||||||
'onMenuShareWeibo' // 分享到微博接口
|
|
||||||
]
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
onInput(e) {
|
async onLoad(e) {
|
||||||
if (this.form.user_type == 2) {
|
this.form.id = e.id;
|
||||||
if ([...e.detail.value].length >= 6) {
|
this.form.open_id = e.open_id;
|
||||||
console.log(100000);
|
if (e.view_type == 'fail') {
|
||||||
this.handleClick();
|
this.form.view_type = e.view_type;
|
||||||
|
let res = await this.api.szzpyfailccho({
|
||||||
|
id: this.form.id,
|
||||||
|
view_type: this.form.view_type
|
||||||
|
});
|
||||||
|
try {
|
||||||
|
if (res.code == 1) {
|
||||||
|
this.form = res.data.data;
|
||||||
|
this.form.status_note = res.data.status_note;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
//TODO handle the exception
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
stopPropagation() {
|
||||||
|
console.log(1111)
|
||||||
|
this.subCategoryList = [];
|
||||||
|
},
|
||||||
|
wxInit() {
|
||||||
|
wx.config({
|
||||||
|
debug: false, // true:调试时候弹窗
|
||||||
|
appId: res.appId, // 微信appid
|
||||||
|
timestamp: res.timestamp, // 时间戳
|
||||||
|
nonceStr: res.nonceStr, // 随机字符串
|
||||||
|
signature: res.signature, // 签名
|
||||||
|
jsApiList: [
|
||||||
|
// 所有要调用的 API 都要加到这个列表中
|
||||||
|
'onMenuShareTimeline', // 分享到朋友圈接口
|
||||||
|
'onMenuShareAppMessage', // 分享到朋友接口
|
||||||
|
'onMenuShareQQ', // 分享到QQ接口
|
||||||
|
'onMenuShareWeibo' // 分享到微博接口
|
||||||
|
]
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onInput(e) {
|
||||||
|
if (this.form.user_type == 2) {
|
||||||
|
if ([...e.detail.value].length >= 6) {
|
||||||
|
console.log(100000);
|
||||||
|
this.handleClick();
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleClick: _.debounce(function() {
|
||||||
|
console.log(100000);
|
||||||
|
this.getOrder();
|
||||||
|
// 函数执行内容
|
||||||
|
}, 500),
|
||||||
|
async categorySubClick(category) {
|
||||||
|
if (category.companyName == '以上都不是') {
|
||||||
|
let res = await this.api.storepaidkeywordsearch({
|
||||||
|
sign: uni.utils.md5(this.form.user_name + 'd2e862a1-02b5-4405-8c69-c74ca871bcfe'),
|
||||||
|
like: this.form.user_name,
|
||||||
|
open_id: this.form.open_id
|
||||||
|
})
|
||||||
|
this.subCategoryList = res.data
|
||||||
} else {
|
} else {
|
||||||
|
this.form.user_name = category.companyName;
|
||||||
|
this.form.user_duty = category.creditCode;
|
||||||
this.subCategoryList = [];
|
this.subCategoryList = [];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
|
||||||
handleClick: _.debounce(function () {
|
},
|
||||||
console.log(100000);
|
upload() {
|
||||||
this.getOrder();
|
uni.chooseImage({
|
||||||
// 函数执行内容
|
success: (chooseImageRes) => {
|
||||||
}, 500),
|
uni.pro.showLoading({
|
||||||
categorySubClick(category) {
|
title: '上传中',
|
||||||
console.log(category, 86);
|
mask: true
|
||||||
this.form.user_name = category.companyName;
|
});
|
||||||
this.form.user_duty = category.creditCode;
|
const tempFilePaths = chooseImageRes.tempFilePaths;
|
||||||
this.subCategoryList = [];
|
uni.uploadFile({
|
||||||
},
|
url: 'https://cashieradmin.sxczgkj.cn' + '/api/qiNiuContent',
|
||||||
upload() {
|
filePath: tempFilePaths[0],
|
||||||
uni.chooseImage({
|
name: 'file',
|
||||||
success: (chooseImageRes) => {
|
formData: {
|
||||||
uni.pro.showLoading({
|
open_id: this.form.open_id
|
||||||
title: '上传中',
|
},
|
||||||
mask: true
|
success: (uploadFileRes) => {
|
||||||
});
|
uni.showToast({
|
||||||
const tempFilePaths = chooseImageRes.tempFilePaths;
|
title: '上传成功',
|
||||||
uni.uploadFile({
|
icon: 'none'
|
||||||
url: 'https://cashieradmin.sxczgkj.cn' + '/api/qiNiuContent',
|
});
|
||||||
filePath: tempFilePaths[0],
|
uni.pro.hideLoading();
|
||||||
name: 'file',
|
let data = JSON.parse(uploadFileRes.data);
|
||||||
formData: {
|
this.form.img = data.data[0];
|
||||||
open_id: this.form.open_id
|
console.log(this.form);
|
||||||
},
|
},
|
||||||
success: (uploadFileRes) => {
|
fail: () => {
|
||||||
uni.showToast({
|
uni.pro.hideLoading();
|
||||||
title: '上传成功',
|
}
|
||||||
icon: 'none'
|
});
|
||||||
});
|
},
|
||||||
uni.pro.hideLoading();
|
fail: () => {
|
||||||
let data = JSON.parse(uploadFileRes.data);
|
console.log(111);
|
||||||
this.form.img = data.data[0];
|
uni.pro.hideLoading();
|
||||||
console.log(this.form);
|
}
|
||||||
},
|
|
||||||
fail: () => {
|
|
||||||
uni.pro.hideLoading();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
fail: () => {
|
|
||||||
console.log(111);
|
|
||||||
uni.pro.hideLoading();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
async saveMerchantBaseInfo() {
|
|
||||||
if (this.form.user_name == null || this.form.user_name == '') {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入名称',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
});
|
||||||
return false;
|
},
|
||||||
}
|
async saveMerchantBaseInfo() {
|
||||||
if (this.form.user_type == 2) {
|
if (this.form.user_name == null || this.form.user_name == '') {
|
||||||
if (this.form.user_duty == null || this.form.user_duty == '') {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入税号',
|
title: '请输入名称',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
if (this.form.user_type == 2) {
|
||||||
if (this.form.email == null || this.form.email == '') {
|
if (this.form.user_duty == null || this.form.user_duty == '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请输入邮箱',
|
title: '请输入税号',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.form.mobile == null || this.form.mobile == '') {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请输入手机号',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
let res = await this.api.usersubopeninvoice({
|
|
||||||
id: this.form.id,
|
|
||||||
open_id: this.form.open_id,
|
|
||||||
...this.form
|
|
||||||
});
|
|
||||||
if (res.code == 1) {
|
|
||||||
uni.showToast({
|
|
||||||
title: res.msg,
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
console.log('t_type===', res.data.t_type);
|
|
||||||
switch (res.data.t_type) {
|
|
||||||
case '1':
|
|
||||||
console.log(1);
|
|
||||||
// 内链
|
|
||||||
setTimeout(() => {
|
|
||||||
window.location.href = res.data.n_url;
|
|
||||||
}, 1000);
|
|
||||||
break;
|
|
||||||
case '2':
|
|
||||||
console.log(2);
|
|
||||||
// 外链
|
|
||||||
setTimeout(() => {
|
|
||||||
window.location.href = res.data.url;
|
|
||||||
}, 1000);
|
|
||||||
break;
|
|
||||||
// case '3':
|
|
||||||
// console.log(3);
|
|
||||||
// // 小程序
|
|
||||||
// setTimeout(() => {
|
|
||||||
// plus.share.getServices(function (plusRes) {
|
|
||||||
// var sweixin = null;
|
|
||||||
// for (var i = 0; i < plusRes.length; i++) {
|
|
||||||
// var t = plusRes[i];
|
|
||||||
// if (t.id == 'weixin') {
|
|
||||||
// sweixin = t;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// if (sweixin) {
|
|
||||||
// sweixin.launchMiniProgram({ ...res.data.mini });
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }, 1000);
|
|
||||||
// break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
// window.location.href = "https://i.hangzhouyiyao.cn/activities?appKey=3f4ca8be626445e8b306c2badafd6f46&appEntrance=1&business=money"
|
if (this.form.email == null || this.form.email == '') {
|
||||||
}
|
uni.showToast({
|
||||||
// uni.request({
|
title: '请输入邮箱',
|
||||||
// url: 'https://invoice.sxczgkj.cn/api/' + 'user/subopeninvoice',
|
icon: 'none'
|
||||||
// data: {
|
});
|
||||||
// //参数
|
return false;
|
||||||
// id: this.form.id,
|
}
|
||||||
// open_id: this.form.open_id,
|
if (this.form.mobile == null || this.form.mobile == '') {
|
||||||
// user_name: this.form.user_name,
|
uni.showToast({
|
||||||
// user_type: this.form.user_type,
|
title: '请输入手机号',
|
||||||
// user_duty: this.form.user_duty,
|
icon: 'none'
|
||||||
// email: this.form.email,
|
});
|
||||||
// img: this.form.img,
|
return false;
|
||||||
// mobile: this.form.mobile,
|
}
|
||||||
// notes: this.form.notes
|
let res = await this.api.usersubopeninvoice({
|
||||||
// },
|
id: this.form.id,
|
||||||
// method: 'POST', //请求方式,必须为大写
|
open_id: this.form.open_id,
|
||||||
// success: res => {
|
...this.form
|
||||||
// uni.showToast({
|
});
|
||||||
// title: res.data.message || res.data.msg,
|
if (res.code == 1) {
|
||||||
// icon: "none",
|
uni.showToast({
|
||||||
// })
|
title: res.msg,
|
||||||
// if (res.data.code == 1) {
|
icon: 'none'
|
||||||
// setTimeout(() => {
|
});
|
||||||
// if (res.data.data.url) {
|
console.log('t_type===', res.data.t_type);
|
||||||
// window.location.href = res.data.data.url
|
switch (res.data.t_type) {
|
||||||
// }
|
case '1':
|
||||||
// // let data = encodeURIComponent(res.data.data.url);
|
console.log(1);
|
||||||
// // uni.navigateTo({
|
// 内链
|
||||||
// // url: '/pages/index/web?src=' + data
|
setTimeout(() => {
|
||||||
// // })
|
window.location.href = res.data.n_url;
|
||||||
// }, 1000);
|
}, 1000);
|
||||||
// // window.location.href = "https://i.hangzhouyiyao.cn/activities?appKey=3f4ca8be626445e8b306c2badafd6f46&appEntrance=1&business=money"
|
break;
|
||||||
// }
|
case '2':
|
||||||
|
console.log(2);
|
||||||
|
// 外链
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.href = res.data.url;
|
||||||
|
}, 1000);
|
||||||
|
break;
|
||||||
|
// case '3':
|
||||||
|
// console.log(3);
|
||||||
|
// // 小程序
|
||||||
|
// setTimeout(() => {
|
||||||
|
// plus.share.getServices(function (plusRes) {
|
||||||
|
// var sweixin = null;
|
||||||
|
// for (var i = 0; i < plusRes.length; i++) {
|
||||||
|
// var t = plusRes[i];
|
||||||
|
// if (t.id == 'weixin') {
|
||||||
|
// sweixin = t;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// if (sweixin) {
|
||||||
|
// sweixin.launchMiniProgram({ ...res.data.mini });
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// }, 1000);
|
||||||
|
// break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// window.location.href = "https://i.hangzhouyiyao.cn/activities?appKey=3f4ca8be626445e8b306c2badafd6f46&appEntrance=1&business=money"
|
||||||
|
}
|
||||||
|
// uni.request({
|
||||||
|
// url: 'https://invoice.sxczgkj.cn/api/' + 'user/subopeninvoice',
|
||||||
|
// data: {
|
||||||
|
// //参数
|
||||||
|
// id: this.form.id,
|
||||||
|
// open_id: this.form.open_id,
|
||||||
|
// user_name: this.form.user_name,
|
||||||
|
// user_type: this.form.user_type,
|
||||||
|
// user_duty: this.form.user_duty,
|
||||||
|
// email: this.form.email,
|
||||||
|
// img: this.form.img,
|
||||||
|
// mobile: this.form.mobile,
|
||||||
|
// notes: this.form.notes
|
||||||
|
// },
|
||||||
|
// method: 'POST', //请求方式,必须为大写
|
||||||
|
// success: res => {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: res.data.message || res.data.msg,
|
||||||
|
// icon: "none",
|
||||||
|
// })
|
||||||
|
// if (res.data.code == 1) {
|
||||||
|
// setTimeout(() => {
|
||||||
|
// if (res.data.data.url) {
|
||||||
|
// window.location.href = res.data.data.url
|
||||||
|
// }
|
||||||
|
// // let data = encodeURIComponent(res.data.data.url);
|
||||||
|
// // uni.navigateTo({
|
||||||
|
// // url: '/pages/index/web?src=' + data
|
||||||
|
// // })
|
||||||
|
// }, 1000);
|
||||||
|
// // window.location.href = "https://i.hangzhouyiyao.cn/activities?appKey=3f4ca8be626445e8b306c2badafd6f46&appEntrance=1&business=money"
|
||||||
|
// }
|
||||||
|
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
},
|
},
|
||||||
clickakex(e) {
|
clickakex(e) {
|
||||||
this.form.user_type = e;
|
this.form.user_type = e;
|
||||||
this.form.user_name = '';
|
this.form.user_name = '';
|
||||||
this.form.img = '';
|
this.form.img = '';
|
||||||
this.form.user_duty = '';
|
this.form.user_duty = '';
|
||||||
this.form.email = '';
|
this.form.email = '';
|
||||||
this.form.mobile = '';
|
this.form.mobile = '';
|
||||||
},
|
},
|
||||||
async getOrder() {
|
async getOrder() {
|
||||||
//搜索值
|
//搜索值
|
||||||
uni.request({
|
uni.request({
|
||||||
url: 'https://invoice.sxczgkj.cn/api/' + 'store/enterprise',
|
url: 'https://invoice.sxczgkj.cn/api/' + 'store/enterprise',
|
||||||
data: {
|
data: {
|
||||||
//参数
|
//参数
|
||||||
like: this.form.user_name,
|
sign: uni.utils.md5(this.form.user_name + 'd2e862a1-02b5-4405-8c69-c74ca871bcfe'),
|
||||||
open_id: this.form.open_id
|
like: this.form.user_name,
|
||||||
},
|
open_id: this.form.open_id
|
||||||
method: 'POST', //请求方式,必须为大写
|
},
|
||||||
success: (res) => {
|
method: 'POST', //请求方式,必须为大写
|
||||||
console.log('接口返回------', res);
|
success: async (res) => {
|
||||||
setTimeout(() => {
|
console.log('接口返回------', res);
|
||||||
if (this.page == 1) {
|
setTimeout(() => {
|
||||||
this.subCategoryList = res.data.data;
|
// if (this.page == 1) {
|
||||||
} else {
|
// if (res.data.data.length != 0) {
|
||||||
this.subCategoryList.push(...res.data.data);
|
this.subCategoryList = [...res.data.data, ...[{
|
||||||
}
|
companyName: '以上都不是'
|
||||||
}, 500);
|
}]];
|
||||||
}
|
// }
|
||||||
});
|
// } else {
|
||||||
|
// this.subCategoryList.push(...res.data.data);
|
||||||
|
// }
|
||||||
|
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
page {
|
||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
}
|
|
||||||
.arrow {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
.t {
|
|
||||||
margin-right: 8upx;
|
|
||||||
color: #808080;
|
|
||||||
font-size: 32upx;
|
|
||||||
}
|
}
|
||||||
.arrow-icon {
|
|
||||||
transition: all 0.3s ease-in-out;
|
|
||||||
&.active {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.content {
|
|
||||||
padding: 0 28rpx 28upx;
|
|
||||||
|
|
||||||
.content_top {
|
.arrow {
|
||||||
padding: 32rpx 110rpx;
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
align-items: center;
|
||||||
|
|
||||||
.content_topview {
|
.t {
|
||||||
background: #288efb;
|
margin-right: 8upx;
|
||||||
color: #fff;
|
color: #808080;
|
||||||
|
font-size: 32upx;
|
||||||
}
|
}
|
||||||
|
|
||||||
view {
|
.arrow-icon {
|
||||||
width: 142rpx;
|
transition: all 0.3s ease-in-out;
|
||||||
height: 56rpx;
|
|
||||||
background: #fff;
|
&.active {
|
||||||
color: #288efb;
|
transform: rotate(180deg);
|
||||||
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
}
|
||||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 28rpx;
|
|
||||||
line-height: 56rpx;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content_item {
|
.content {
|
||||||
width: 100%;
|
padding: 0 28rpx 28upx;
|
||||||
background: #ffffff;
|
|
||||||
border-radius: 18rpx 18rpx 18rpx 18rpx;
|
|
||||||
|
|
||||||
.Box_box {
|
.content_top {
|
||||||
|
padding: 32rpx 110rpx;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
text-align: right;
|
|
||||||
padding: 24rpx;
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
font-size: 28rpx;
|
|
||||||
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #333333;
|
|
||||||
|
|
||||||
.position {
|
.content_topview {
|
||||||
position: absolute;
|
background: #288efb;
|
||||||
right: 0;
|
color: #fff;
|
||||||
top: 0;
|
}
|
||||||
|
|
||||||
|
view {
|
||||||
|
width: 142rpx;
|
||||||
|
height: 56rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
width: 100%;
|
color: #288efb;
|
||||||
max-height: 400rpx;
|
border-radius: 6rpx 6rpx 6rpx 6rpx;
|
||||||
overflow: auto;
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||||
z-index: 99;
|
font-weight: 400;
|
||||||
box-shadow: 1rpx 3rpx 6rpx #ccc;
|
font-size: 28rpx;
|
||||||
|
line-height: 56rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.positionitem {
|
.content_item {
|
||||||
padding: 16rpx 10px;
|
width: 100%;
|
||||||
border-bottom: 1rpx solid #ccc;
|
background: #ffffff;
|
||||||
|
border-radius: 18rpx 18rpx 18rpx 18rpx;
|
||||||
|
|
||||||
|
.Box_box {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
text-align: right;
|
||||||
|
padding: 24rpx;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
.Box_boxone{
|
||||||
|
width: 160rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.Box_boxtow{
|
||||||
|
flex:auto;
|
||||||
|
}
|
||||||
|
.position {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 50rpx;
|
||||||
|
background: #fff;
|
||||||
|
width: 100%;
|
||||||
|
max-height: 400rpx;
|
||||||
|
overflow: auto;
|
||||||
|
z-index: 99;
|
||||||
|
box-shadow: 1rpx 3rpx 6rpx #ccc;
|
||||||
|
|
||||||
|
.positionitem {
|
||||||
|
padding: 16rpx 10px;
|
||||||
|
border-bottom: 1rpx solid #ccc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.preservation {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.preservation_box {
|
||||||
|
width: 100%;
|
||||||
|
height: 72rpx;
|
||||||
|
background: #288efb;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 72rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preservation_boxs {
|
||||||
|
width: 70%;
|
||||||
|
height: 72rpx;
|
||||||
|
background: #999999;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 72rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.Box_boxbox {
|
||||||
|
width: 100%;
|
||||||
|
padding: 16rpx;
|
||||||
|
|
||||||
|
.Box_boxone {
|
||||||
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Box_boxtowimge {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 254rpx;
|
||||||
|
height: 156rpx;
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1rpx dashed #707070;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.preservation {
|
.content_bottom {
|
||||||
width: 100%;
|
margin: 100rpx auto;
|
||||||
|
width: 80%;
|
||||||
|
height: 84rpx;
|
||||||
|
background: #288efb;
|
||||||
|
border-radius: 50rpx 50rpx 50rpx 50rpx;
|
||||||
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
line-height: 84rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.preservation_box {
|
|
||||||
width: 100%;
|
|
||||||
height: 72rpx;
|
|
||||||
background: #288efb;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 72rpx;
|
|
||||||
border-radius: 50rpx;
|
|
||||||
font-size: 36rpx;
|
|
||||||
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.preservation_boxs {
|
|
||||||
width: 70%;
|
|
||||||
height: 72rpx;
|
|
||||||
background: #999999;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 72rpx;
|
|
||||||
border-radius: 50rpx;
|
|
||||||
font-size: 36rpx;
|
|
||||||
font-family: Source Han Sans CN-Regular, Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.Box_boxbox {
|
|
||||||
width: 100%;
|
|
||||||
padding: 16rpx;
|
|
||||||
|
|
||||||
.Box_boxone {
|
|
||||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333333;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Box_boxtow {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
margin: 0 auto;
|
|
||||||
width: 254rpx;
|
|
||||||
height: 156rpx;
|
|
||||||
background: #ffffff;
|
|
||||||
border: 1rpx dashed #707070;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
.content_bottom {
|
|
||||||
margin: 100rpx auto;
|
|
||||||
width: 80%;
|
|
||||||
height: 84rpx;
|
|
||||||
background: #288efb;
|
|
||||||
border-radius: 50rpx 50rpx 50rpx 50rpx;
|
|
||||||
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 36rpx;
|
|
||||||
color: #ffffff;
|
|
||||||
line-height: 84rpx;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -283,7 +283,8 @@
|
|||||||
d_price: '',
|
d_price: '',
|
||||||
notes: '',
|
notes: '',
|
||||||
mcc: uni.cache.get('keyword').code,
|
mcc: uni.cache.get('keyword').code,
|
||||||
dlzh: ''
|
dlzh: '',
|
||||||
|
is_new:1
|
||||||
}
|
}
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.data.message || res.data.msg,
|
title: res.data.message || res.data.msg,
|
||||||
|
|||||||
@@ -29,20 +29,38 @@
|
|||||||
<image src="@/static/item8.png" mode="aspectFill"></image>
|
<image src="@/static/item8.png" mode="aspectFill"></image>
|
||||||
<text>审核开票</text>
|
<text>审核开票</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content flex-colum" @click="jumpToMiniProgram" v-if="improveinformation">
|
<!-- <view class="content flex-colum" @click="jumpToMiniProgram" v-if="improveinformation">
|
||||||
<image src="@/static/item8.png" mode="aspectFill"></image>
|
<image src="@/static/item8.png" mode="aspectFill"></image>
|
||||||
<text>跳转小程序</text>
|
<text>跳转小程序</text>
|
||||||
</view>
|
</view>
|
||||||
|
<wx-open-launch-weapp class="content flex-colum" id="launch-btn" @launch="handleLaunch" @error="handleError"
|
||||||
|
username="gh_fa9286427a5b" path="pages/index/index.html">
|
||||||
|
<script type="text/wxtag-template">
|
||||||
|
<style>
|
||||||
|
.btn { padding: 12px;opacity:0 }
|
||||||
|
</style>
|
||||||
|
<button class="btn">打开小程序</button>
|
||||||
|
</script>
|
||||||
|
</wx-open-launch-weapp> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="setClipboardDataclass" @click="setClipboardData" v-if="infos.deviceType != 'pc'">
|
<view class="setClipboardDataclass" @click="setClipboardData" v-if="infos.deviceType != 'pc'">
|
||||||
网页版地址:https://h5-invoice.sxczgkj.cn
|
网页版地址:https://h5-invoice.sxczgkj.cn
|
||||||
</view>
|
</view>
|
||||||
|
<pdf style="width: 400px; height: 400px;"
|
||||||
|
src="https://dppt.shaanxi.chinatax.gov.cn:8443/kpfw/fpjfzz/v1/exportDzfpwjEwm?Wjgs=PDF&Jym=124C&Fphm=24612000000037614300&Kprq=20240430152603&Czsj=1714461964182">
|
||||||
|
</pdf>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import pdf from 'vue-pdf'
|
||||||
import wx from 'weixin-js-sdk';
|
import wx from 'weixin-js-sdk';
|
||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {
|
||||||
|
pdf
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
improveinformation: false,
|
improveinformation: false,
|
||||||
@@ -53,11 +71,13 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
async onLoad(e) {
|
async onLoad(e) {
|
||||||
|
// alert(location.href.split('#')[0])
|
||||||
if (e.userId) {
|
if (e.userId) {
|
||||||
// this.onLoaduserId = e.userId
|
// this.onLoaduserId = e.userId
|
||||||
// this.onLoadtype = e.type//295
|
// this.onLoadtype = e.type//295
|
||||||
uni.cache.set('userId', e.userId);
|
uni.cache.set('userId', e.userId);
|
||||||
}
|
}
|
||||||
|
// this.jumpToMiniProgram()
|
||||||
let res = await this.api.storestorestatus({
|
let res = await this.api.storestorestatus({
|
||||||
store_id: uni.cache.get('userId')
|
store_id: uni.cache.get('userId')
|
||||||
})
|
})
|
||||||
@@ -96,10 +116,20 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 监听跳转
|
||||||
|
handleLaunch() {
|
||||||
|
console.log('跳转');
|
||||||
|
},
|
||||||
|
// 监听错误
|
||||||
|
handleError() {
|
||||||
|
console.log('失败');
|
||||||
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
methods: {
|
methods: {
|
||||||
async jumpToMiniProgram() {
|
async jumpToMiniProgram() {
|
||||||
let res = await this.api.userttwechat()
|
let res = await this.api.userttwechat({
|
||||||
|
url: location.href.split('#')[0]
|
||||||
|
})
|
||||||
console.log(res)
|
console.log(res)
|
||||||
// plus.share.getServices(function (res) {
|
// plus.share.getServices(function (res) {
|
||||||
// var sweixin = null;
|
// var sweixin = null;
|
||||||
@@ -117,23 +147,31 @@
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
wx.config({
|
// wx.config({
|
||||||
"debug": true,
|
// "debug": true,
|
||||||
"beta": false,
|
// "beta": false,
|
||||||
"jsApiList": ['wx-open-launch-weapp'],
|
// "jsApiList": ['wx-open-launch-weapp'],
|
||||||
openTagList: ['wx-open-launch-weapp'], // 跳转小程序时必填
|
// openTagList: ['wx-open-launch-weapp'], // 跳转小程序时必填
|
||||||
"appId": res.data.wechat_mini.appId,
|
// "appId": res.data.wechat_mini.appId,
|
||||||
"nonceStr": res.data.wechat_mini.nonceStr,
|
// "nonceStr": res.data.wechat_mini.nonceStr,
|
||||||
"timestamp": res.data.wechat_mini.timestamp,
|
// "timestamp": res.data.wechat_mini.timestamp,
|
||||||
"url": res.data.wechat_mini.url,
|
// "url": res.data.wechat_mini.url,
|
||||||
"signature": res.data.wechat_mini.signature,
|
// "signature": res.data.wechat_mini.signature,
|
||||||
});
|
// });
|
||||||
|
wx.config(res.data.wechat_mini);
|
||||||
// res.data.wechat_mini
|
// res.data.wechat_mini
|
||||||
// 在wx.ready内调用
|
// 在wx.ready内调用
|
||||||
wx.ready(function() {
|
wx.ready(res => {
|
||||||
// 在这里调用 API
|
console.log(res);
|
||||||
uni.navigateTo({
|
this.$nextTick(() => {
|
||||||
url: '/pages/index/index' // 跳转到的页面路径
|
let btn = document.getElementById('launch-btn');
|
||||||
|
btn.addEventListener('launch', e => {
|
||||||
|
console.log('success');
|
||||||
|
});
|
||||||
|
btn.addEventListener('error', e => {
|
||||||
|
alert('小程序打开失败');
|
||||||
|
console.log('fail', e.detail);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
wx.error(function(res) {
|
wx.error(function(res) {
|
||||||
|
|||||||
2
unpackage/dist/build/web/index.html
vendored
2
unpackage/dist/build/web/index.html
vendored
@@ -3,4 +3,4 @@
|
|||||||
document.write(
|
document.write(
|
||||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
(coverSupport ? ', viewport-fit=cover' : '') +
|
(coverSupport ? ', viewport-fit=cover' : '') +
|
||||||
'" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src="/chunk-vendors.js?v=1716445785217"></script><script src="/index.js?v=1716445785217"></script></body></html>
|
'" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src="/chunk-vendors.js?v=1716780727151"></script><script src="/index.js?v=1716780727151"></script></body></html>
|
||||||
Reference in New Issue
Block a user