Commit 763a5d92 by 尹亚亭

0117

parent c42cb7a9
import axios from "axios";
let baseUrl = "/web/auth/accessAuth/getAppTokenByHosts";
let baseUrl = "api/web/auth/accessAuth/getAppTokenByHosts";
//获取token
export function getTokens() {
return axios.post(baseUrl, {
actionType: "getAppTokenByHosts", //固定写法就行
actionBody: {}
});
}
\ No newline at end of file
return axios.post(baseUrl, {
actionType: "getAppTokenByHosts", //固定写法就行
actionBody: {}
});
}
import http from "@/http/http.js";
let baseUrl = "/web/action/tmOrder/springBoard";
let baseUrl = "api/web/action/tmOrder/springBoard";
// 获取jdtrademark商标注册申请类型:自主/专家辅助/担保 卡片信息
// 产品列表-根据产品大类获取-应用中心
export function getProductListCards() {
return http.post(baseUrl, {
actionBody: {
typeOneCode: "sbfu"
},
actionType: "getCAProductListByTypeOneCode",
actionProcess: "jd"
});
return http.post(baseUrl, {
actionBody: {
typeOneCode: "sbfu"
},
actionType: "getCAProductListByTypeOneCode",
actionProcess: "jd"
});
}
// 产品详情:点击首页的 专家辅助申请 和 担保申请-进入相应的专家辅助申请 和 担保申请产品详情页面
// 产品详情-应用中心
export function getProductDetail() {
return http.post(baseUrl, {
actionBody: {
// 自助: FW_GOODS-581976-1
// 辅助:FW_GOODS-580010-1
// 担保:FW_GOODS-581978-1
channelItemCode: "FW_GOODS-581978-1"
},
actionType: "getCAProductDetail",
actionProcess: "bw"
});
}
\ No newline at end of file
export function getProductDetail(channelitemcode) {
return http.post(baseUrl, {
actionBody: {
// 自助: FW_GOODS-581976-1
// 辅助:FW_GOODS-580010-1
// 担保:FW_GOODS-581978-1
channelItemCode: channelitemcode
},
actionType: "getCAProductDetail",
actionProcess: "bw"
});
}
// 自主提报商标注册方式的获取订单编号
// 商标提报
export function subSelfregTmOrder(channelitemcode) {
return http.post(baseUrl, {
actionBody: {
apply: {
applyAddr: "上海市杨浦区国定路346号三楼0624室",
applyArea: "",
businessLicensePic:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/zc_yyzz120315554031547442019316.jpg",
businessLicensePdf:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/zc_yyzz120315554031547442019316.pdf",
code: "91310110398635929J",
contacts: "宋毅",
customerType: "ent",
email: "songyi@gongsibao.com",
fax: "",
identityCardNo: "",
identityCardPic: "",
identityCardPdf: "",
mobile: "15010929368",
name: "上海辰者信息科技有限公司",
notes: "订单备注信息",
gzwtsUrl:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/zc_wts863215710393842862019914.jpg",
smwjUrl: "",
zipCode: "100000"
},
channelOrder: {
channelServiceNo: "z1203155540315474420",
channelOrderNo: "z12031,z1203d1",
needNo: "z120303d1",
quantity: 1,
nclCount: 10,
payStatus: "yfk",
payTime: "2019-09-11 10:23:21"
},
channelUser: {
channelUserId: "z1203155540315474420",
channelUserName: "testUser",
channelUserMoblie: "15010929368",
nickname: "",
orgName: "",
orgPath: ""
},
nclones: [
{
code: "02",
name: "颜料油漆",
nclThree: [
{
code: "020008",
disabled: false,
fullname: "020008 绘画用铝粉",
name: "绘画用铝粉",
pcode: "0202"
},
{
code: "020005",
disabled: false,
fullname: "020005 食品用着色剂",
name: "食品用着色剂",
pcode: "0203"
}
]
}
]
},
actionType: "subTmOrder"
});
}
import http from "@/http/http.js";
let baseUrl = "/web/action/tmQuery/springBoard";
let baseUrl = "api/web/action/tmQuery/springBoard";
// 商标详情查询接口
export function tradeMarkDetail(params) {
return http.post(baseUrl, {
actionType: "tradeMarkDetail",
actionBody: params
});
return http.post(baseUrl, {
actionType: "tradeMarkDetail",
actionBody: params
});
}
//企业查询接口
export function getCompanyInfoNoUser(name) {
return http.post(baseUrl, {
actionType: "getCompanyInfoNoUser",
actionBody: {
company_name: name
}
});
return http.post(baseUrl, {
actionType: "getCompanyInfoNoUser",
actionBody: {
company_name: name
}
});
}
//申请人查询接口
export function findTrademarkzcr(name, pageSize, currentPage) {
return http.post(baseUrl, {
actionType: "findTrademarkzcr",
actionBody: {
regMan: name,
sqlbtabkey: "",
flzttabkey: "",
sqnftabkey: "",
zcrname: "",
xcl: [],
pageSize: pageSize,
currentPage: currentPage
}
});
}
\ No newline at end of file
return http.post(baseUrl, {
actionType: "findTrademarkzcr",
actionBody: {
regMan: name,
sqlbtabkey: "",
flzttabkey: "",
sqnftabkey: "",
zcrname: "",
xcl: [],
pageSize: pageSize,
currentPage: currentPage
}
});
}
import http from "@/http/http.js";
import axios from "axios";
let baseUrl = "/web/action/tmTools/springBoard";
let baseUrl = "api/web/action/tmTools/springBoard";
// 获取selftmreg的尼斯查询 一级查询得到二级树 二级查询得到三级树
export function getNiceQueryCategory(nclcodeSCode) {
return http.post(baseUrl, {
actionBody: {
nclcode: nclcodeSCode
},
actionType: "getNcl"
});
return http.post(baseUrl, {
actionBody: {
nclcode: nclcodeSCode
},
actionType: "getNcl"
});
}
// 获取selftmreg的尼斯查询分类过滤数据
export function getNiceQueryFilter(key, classCodes) {
return http.post(baseUrl, {
actionBody: {
// name: "123", //Y strin 尼斯名称
// ncls: ["01", "02", "03"] //N List 尼斯大类编码列表
name: key, //Y strin 尼斯名称
ncls: classCodes //N List 尼斯大类编码列表
},
actionType: "getNclByLikeNameAndNcl"
});
return http.post(baseUrl, {
actionBody: {
// name: "123", //Y strin 尼斯名称
// ncls: ["01", "02", "03"] //N List 尼斯大类编码列表
name: key, //Y strin 尼斯名称
ncls: classCodes //N List 尼斯大类编码列表
},
actionType: "getNclByLikeNameAndNcl"
});
}
//文字转图片
export function word2pic(word) {
return http.post(baseUrl, {
actionBody: {
word: word
},
actionType: "word2pic"
});
return http.post(baseUrl, {
actionBody: {
word: word
},
actionType: "word2pic"
});
}
//获取oss
export function getOss() {
return http.post(baseUrl, {
actionBody: {},
actionType: "getOssConfig"
});
return http.post(baseUrl, {
actionBody: {},
actionType: "getOssConfig"
});
}
//商标样式转换
export function uploadStandardTm(url) {
return http.post(baseUrl, {
actionType: "uploadStandardTm",
actionBody: {
key: url
}
});
return http.post(baseUrl, {
actionType: "uploadStandardTm",
actionBody: {
key: url
}
});
}
//企业近似查询
export function getCompanyInfoByLikeName(name) {
return http.post(baseUrl, {
actionType: "getCompanyInfoByLikeName",
actionBody: {
likestr: name
}
});
return http.post(baseUrl, {
actionType: "getCompanyInfoByLikeName",
actionBody: {
likestr: name
}
});
}
//图片转pdf
export function pic2pdf(url) {
return http.post(baseUrl, {
actionType: "pic2pdf",
actionBody: {
key: url
}
});
return http.post(baseUrl, {
actionType: "pic2pdf",
actionBody: {
key: url
}
});
}
//企业注册信息查询
export function getEntregistryByCompanyName(name) {
return http.post(baseUrl, {
actionType: "getEntregistryByCompanyName",
actionBody: {
companyName: name
}
});
return http.post(baseUrl, {
actionType: "getEntregistryByCompanyName",
actionBody: {
companyName: name
}
});
}
//企业注册信息查询2
export function getEntregistryByCompanyName2(name) {
return axios.post(
"http://boss.gongsibao.com/api/gsbicsearch/companynameonesearch", {
appKey: "c90f935cd5ec49ff848edad31f53c14d",
companyName: name
}
);
return axios.post(
"http://boss.gongsibao.com/api/gsbicsearch/companynameonesearch",
{
appKey: "c90f935cd5ec49ff848edad31f53c14d",
companyName: name
}
);
}
//股东
export function getGuDong(name) {
return axios.post(
"http://boss.gongsibao.com/api/gsbicsearch/shareholdersearch", {
appKey: "c90f935cd5ec49ff848edad31f53c14d",
companyName: name
}
);
}
\ No newline at end of file
return axios.post(
"http://boss.gongsibao.com/api/gsbicsearch/shareholdersearch",
{
appKey: "c90f935cd5ec49ff848edad31f53c14d",
companyName: name
}
);
}
......@@ -65,9 +65,9 @@ export default {
case "myMsg":
break;
case "exit":
console.log(this.userpin)
console.log(this.userpin);
logout(this.userpin).then(res => {
console.log(res)
console.log(res);
if (res.status == 0) {
removeCookie("userpin");
removeCookie("username");
......@@ -89,7 +89,7 @@ export default {
<style lang="scss">
.globalheader-red {
background: rgb(46, 35, 35) !important;
background: rgb(226, 87, 87) !important;
}
.globalheader {
width: 100%;
......
import Vue from "vue";
import VueRouter from "vue-router";
// import { getCookie } from "@/utils/getToken.js";
import { getCookie } from "@/utils/getToken.js";
Vue.use(VueRouter);
const routes = [{
path: "/home",
name: "home",
component: () =>
import ("@/views/pages/home")
},
{
path: "/companyinformation",
name: "companyinformation",
component: () =>
import ("@/views/pages/companyinformation")
},
{
path: "/",
redirect: "/home"
},
{
path: "/user",
name: "user",
redirect: "/user/login",
component: () =>
import ("@/views/pages/user"),
children: [{
path: "login",
name: "login",
component: () =>
import ("@/views/pages/user/login")
},
{
path: "register",
name: "register",
component: () =>
import ("@/views/pages/user/register")
},
{
path: "forgetpassword",
name: "forgetpassword",
component: () =>
import ("@/views/pages/user/forgetPassword")
}
]
},
{
path: "/cashier",
name: "cashier",
component: () =>
import ("@/views/pages/cashier")
},
{
path: "/productdetails",
name: "productdetails",
component: () =>
import ("@/views/pages/productdetails")
},
{
path: "/successfulpayment",
name: "successfulpayment",
component: () =>
import ("@/views/pages/successfulpayment")
},
{
path: "/placeorder",
name: "placeorder",
component: () =>
import ("@/views/pages/placeorder")
},
{
path: "/jdbycdetailtm",
name: "jdbycdetailtm",
component: () =>
import ("@/views/pages/jdbycdetailtm")
},
{
path: "/companydetail",
name: "companydetail",
component: () =>
import ("@/views/pages/companydetail")
},
{
path: "/jdindentlist",
name: "jdindentlist",
component: () =>
import ("@/views/pages/jdindentlist")
},
{
path: "/jdindentdetail",
name: "jdindentdetail",
component: () =>
import ("@/views/pages/jdindentdetail")
},
/////////
{
path: "/jdtrademark",
name: "jdtrademark",
component: () =>
import ("@/views/pages/jdtrademark/Jdtrademark")
},
{
path: "/selftmreg",
name: "selftmreg",
component: () =>
import ("@/views/pages/selftmreg/Selftmreg")
},
{
path: "/guaranteereg",
name: "guaranteereg",
component: () =>
import ("@/views/pages/guaranteereg/Guaranteereg")
},
{
// path: "/bycnoticeindex",
path: "/bycnoticeindex",
name: "bycnoticeindex",
component: () =>
import ("@/views/pages/bycnoticeindex/Bycnoticeindex")
}
const routes = [
{
path: "/home",
name: "home",
component: () => import("@/views/pages/home")
},
{
path: "/companyinformation",
name: "companyinformation",
component: () => import("@/views/pages/companyinformation")
},
{
path: "/",
redirect: "/home"
},
{
path: "/user",
name: "user",
redirect: "/user/login",
component: () => import("@/views/pages/user"),
children: [
{
path: "login",
name: "login",
component: () => import("@/views/pages/user/login")
},
{
path: "register",
name: "register",
component: () => import("@/views/pages/user/register")
},
{
path: "forgetpassword",
name: "forgetpassword",
component: () => import("@/views/pages/user/forgetPassword")
}
]
},
{
path: "/cashier",
name: "cashier",
component: () => import("@/views/pages/cashier")
},
{
path: "/productdetails",
name: "productdetails",
component: () => import("@/views/pages/productdetails")
},
{
path: "/successfulpayment",
name: "successfulpayment",
component: () => import("@/views/pages/successfulpayment")
},
{
path: "/placeorder",
name: "placeorder",
component: () => import("@/views/pages/placeorder")
},
{
path: "/jdbycdetailtm",
name: "jdbycdetailtm",
component: () => import("@/views/pages/jdbycdetailtm")
},
{
path: "/companydetail",
name: "companydetail",
component: () => import("@/views/pages/companydetail")
},
{
path: "/jdindentlist",
name: "jdindentlist",
component: () => import("@/views/pages/jdindentlist")
},
{
path: "/jdindentdetail",
name: "jdindentdetail",
component: () => import("@/views/pages/jdindentdetail")
},
/////////
{
path: "/jdtrademark",
name: "jdtrademark",
component: () => import("@/views/pages/jdtrademark/Jdtrademark")
},
{
path: "/selftmreg",
name: "selftmreg",
component: () => import("@/views/pages/selftmreg/Selftmreg")
},
{
path: "/guaranteereg",
name: "guaranteereg",
component: () => import("@/views/pages/guaranteereg/Guaranteereg")
},
{
// path: "/bycnoticeindex",
path: "/bycnoticeindex",
name: "bycnoticeindex",
component: () => import("@/views/pages/bycnoticeindex/Bycnoticeindex")
}
];
const router = new VueRouter({
routes,
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
return savedPosition;
} else {
return { x: 0, y: 0 };
}
routes,
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
return savedPosition;
} else {
return { x: 0, y: 0 };
}
}
});
// router.beforeEach((to, from, next) => {
// let userpin = getCookie("userpin");
// if (
// to.path == "/user/login" ||
// to.path == "/user/register" ||
// to.path == "/user/forgetPassword" ||
// to.path == "/jdtrademark"
// ) {
// next();
// } else {
// if (userpin == "" || userpin == null) {
// next("/user/login");
// } else {
// next();
// }
// }
// });
router.beforeEach((to, from, next) => {
let userpin = getCookie("userpin");
if (
to.path == "/user/login" ||
to.path == "/user/register" ||
to.path == "/user/forgetPassword" ||
to.path == "/jdtrademark"
) {
next();
} else {
if (userpin == "" || userpin == null) {
next("/user/login");
} else {
next();
}
}
});
export default router;
\ No newline at end of file
export default router;
......@@ -7,34 +7,71 @@
<el-breadcrumb-item :to="{ path: '/jdtrademark' }"
>首页</el-breadcrumb-item
>
<el-breadcrumb-item>担保商标注册</el-breadcrumb-item>
<el-breadcrumb-item>{{
productDetails.channel_item_name
}}</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="productdetails-main-detail">
<div class="productdetails-left">
<img src="@/assets/imgs/商标注册-担保申请.png" alt="" />
<img :src="productDetails.pic_url" alt="" />
</div>
<div class="productdetails-right">
<h1>担保商标注册</h1>
<p>
<h1>{{ productDetails.item_name }}</h1>
<p v-if="regType == 'FW_GOODS-580010-1'">
专业知产顾问一对一商标检索分析,提高注册效率,为您优化注册方案,全方位保护
</p>
<p v-if="regType == 'FW_GOODS-581978-1'">
专业知产顾问一对一商标检索分析,提高注册成功率,注册不成功,全额退款!
</p>
<div class="priceMsg">
<div>
<span
<div v-if="productPriceList.length != 0">
<!-- <span
>总价<b>¥{{ (servicecharge + officialfee) * count }}</b></span
> -->
<span
>总价<b
>¥{{ productPriceList[clickedproduct].price * count }}</b
></span
>
<span
>官費<b>¥{{ officialfee }}</b></span
>官費<b
>¥{{ productPriceList[clickedproduct].public_expense }}</b
></span
>
<span
>服务费<b>¥{{ servicecharge }}</b></span
>服务费<b
>¥{{ productPriceList[clickedproduct].service_charge }}</b
></span
>
</div>
<p>
该服务由公司宝提供,<span>发票请到订单中心-发票管理开取</span>
</p>
</div>
<div class="product-service-type">
<table>
<tbody>
<tr>
<td class="td-title">商标注册申请服务项目</td>
<td class="td-cont">
<ul class="clearfix">
<li
data-no="PC10064"
class="list"
:class="{ active: clickedproduct == index }"
v-for="(item, index) in productPriceList"
:key="index"
@click="clickedproduct = index"
>
{{ item.price_type_name }}
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="productdetail-count">
<p>数量</p>
<el-input-number
......@@ -52,7 +89,8 @@
<div class="productdetails-main-space"></div>
<div class="productdetails-main-bottom-pic">
<h3><span>产品详情</span><i></i></h3>
<img src="@/assets/imgs/dbsqPic.jpg" alt="" />
<!-- <img src="@/assets/imgs/dbsqPic.jpg" alt="" /> -->
<img :src="productDetails.desc_url" alt="" />
</div>
</div>
</div>
......@@ -65,33 +103,50 @@ export default {
data() {
return {
count: 1,
officialfee: 300,
servicecharge: 1080,
productDetails: {}
clickedproduct: 0,
productDetails: {},
productPriceList: []
};
},
methods: {
goPlaceOrder() {
this.$router.push({
path: "/placeorder",
query: {
count: this.count,
type: "zjfz"
count: this.count
}
});
}
},
created() {
getProductDetail().then(res => {
this.regType = this.$route.query.channelItemCode;
// 专家辅助申请 或是 担保申请
getProductDetail(this.$route.query.channelItemCode).then(res => {
// 请求数据并装填到productDetails里面
// if (res.) {
// }
console.log(res.data);
this.productDetails = res.data;
if (res.status == 0) {
if (res.data.length == 0) {
this.$notify({
title: "警告",
message: "没有该商品",
type: "warning"
});
// alert("服务器返回的数据为空");
} else {
this.productDetails = res.data[0];
console.log("注册申请", this.productDetails);
this.productPriceList = res.data[0].productPriceList;
console.log("服务项", this.productPriceList);
}
} else {
this.$notify.error({
title: "错误",
message: res.msg
});
}
});
}
},
mounted() {}
};
</script>
......@@ -119,13 +174,15 @@ export default {
display: flex;
padding: 20px 0;
.productdetails-left {
display: inline-block;
display: block;
width: 400px;
height: 340px;
border: 1px solid rgba(207, 207, 207, 1);
margin-right: 40px;
img {
display: block;
width: 400px;
height: 340px;
}
}
.productdetails-right {
......@@ -186,6 +243,41 @@ export default {
}
}
}
// 商标注册服务类型:专家辅助申请 担保申请
.product-service-type {
.td-title {
color: #888;
width: 165px;
text-align: left;
}
.td-cont {
.list {
display: inline-block;
margin: 5px 0;
color: #666;
height: 30px;
line-height: 30px;
padding: 0 12px;
border: solid 1px #ccc;
border-radius: 2px;
cursor: pointer;
margin-right: 15px;
position: relative;
font-size: 14px;
}
.list.active {
color: #fc461e;
border: solid 0.9px #fc461e;
}
.clearfix:after {
content: "";
display: block;
clear: both;
height: 0;
visibility: hidden;
}
}
}
.productdetail-count {
display: flex;
align-items: center;
......
......@@ -112,7 +112,8 @@ export default {
getProductListCards().then(res => {
// 请求数据并装填到datalist里面
// console.log(res.data);
this.dataList = res.data;
this.dataList = res.data.splice(0, 3);
// console.log(this.dataList);
});
},
methods: {
......@@ -126,10 +127,26 @@ export default {
this.$router.push("/selftmreg");
}
if (index == 1) {
this.$router.push("/productdetails");
// this.$router.push("/productdetails");
this.$router.push({
path: `/guaranteereg`,
query: {
// sdsId: "fzsbzc"
channelItemCode: "FW_GOODS-580010-1"
}
});
// 获取:this.$route.query
}
if (index == 2) {
this.$router.push("/guaranteereg");
// this.$router.push("/guaranteereg");
this.$router.push({
path: `/guaranteereg`,
query: {
// sdsId: "dbsbzc"
channelItemCode: "FW_GOODS-581978-1"
}
});
}
}
}
......
......@@ -278,6 +278,8 @@ export default {
// 获取缓存里面的商标图片地址
let brandIcon = localStorage.getItem("icon");
this.brandIcon = brandIcon;
// 确认订单编号的请求
}
};
</script>
......
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