跳转样式问题

master
2023-01-10 18:44:39 +08:00
parent aaa2deef85
commit 73acb0bc09
14 changed files with 415 additions and 161 deletions

View File

@ -1,17 +1,17 @@
var BASE = { var BASE = {
/** /**
* @description api请求基础路径 * @description api请求基础路径
*/ */
API_DEV: { API_DEV: {
common: "http://192.168.0.113:8890", common: "https://common-api.pickmall.cn",
buyer: "http://192.168.0.113:8898", buyer: "https://buyer-api.pickmall.cn",
seller: "https://store-api.pickmall.cn", seller: "https://store-api.pickmall.cn",
manager: "https://admin-api.pickmall.cn" manager: "https://admin-api.pickmall.cn"
}, },
API_PROD: { API_PROD: {
common: "https://common-api.pickmall.cn", common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn",
seller: "https://store-api.pickmall.cn", seller: "https://store-api.pickmall.cn",
manager: "https://admin-api.pickmall.cn" manager: "https://admin-api.pickmall.cn"
}, },
}; };

View File

@ -15,12 +15,12 @@
<div class="store-collect"> <div class="store-collect">
<span class="mr_10" v-if="goodsMsg.data"> <span class="mr_10" v-if="goodsMsg.data">
<router-link :to="'Merchant?id=' + goodsMsg.data.storeId">{{ <router-link :to="'Merchant?id=' + goodsMsg.data.storeId">{{
goodsMsg.data.storeName goodsMsg.data.storeName
}}</router-link> }}</router-link>
</span> </span>
<span @click="collect"> <span @click="collect">
<Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#666'" /> <Icon type="ios-heart" :color="storeCollected ? '#ed3f14' : '#666'" />
{{ storeCollected ? "已收藏店铺" : "收藏店铺" }} {{ storeCollected? "已收藏店铺": "收藏店铺" }}
</span> </span>
<span class="ml_10" @click="IMService()"></span> <span class="ml_10" @click="IMService()"></span>
</div> </div>
@ -81,8 +81,19 @@ export default {
this.$Message.error("请登录后再联系客服"); this.$Message.error("请登录后再联系客服");
return; return;
} }
// window.open(
// this.IMLink +
// "?token=" +
// accessToken +
// "&id=" +
// this.goodsMsg.data.storeId +
// "&goodsId=" +
// this.goodsMsg.data.goodsId +
// "&skuId=" +
// this.goodsMsg.data.id
// );
window.open( window.open(
this.IMLink + 'http://192.168.0.139:8000/' +
"?token=" + "?token=" +
accessToken + accessToken +
"&id=" + "&id=" +

View File

@ -4,4 +4,8 @@ VUE_APP_API_BASE_URL=https://im-api.pickmall.cn
VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket
VUE_APP_COMMON=https://common-api.pickmall.cn VUE_APP_COMMON=https://common-api.pickmall.cn
VUE_APP_WEBSITE_NAME="LiLi IM" VUE_APP_WEBSITE_NAME="LiLi IM"
VUE_APP_PC_ORDER_URL=https://store-b2b2c.pickmall.cn VUE_APP_PC_ORDER_URL=https://pc-b2b2c.pickmall.cn/
VUE_APP_PC_STORE_ORDER_URL=https://store-b2b2c.pickmall.cn/
VUE_APP_PC_STORE_ORDER=https://store-b2b2c.pickmall.cn/
VUE_APP_PC_USER_ORDER=https://pc-b2b2c.pickmall.cn
VUE_APP_PC_STORE_GOODS=https://store-b2b2c.pickmall.cn/

View File

@ -1,7 +1,11 @@
NODE_ENV=development NODE_ENV=development
VUE_APP_PREVIEW=true VUE_APP_PREVIEW=false
VUE_APP_API_BASE_URL=http://192.168.0.113:8885 VUE_APP_API_BASE_URL=https://im-api.pickmall.cn
VUE_APP_WEB_SOCKET_URL=ws://192.168.0.113:8885/lili/webSocket VUE_APP_WEB_SOCKET_URL=wss://im-api.pickmall.cn/lili/webSocket
VUE_APP_COMMON=http://192.168.0.113:8890 VUE_APP_COMMON=https://common-api.pickmall.cn
VUE_APP_PC_URL="http://192.168.0.113:10001"
VUE_APP_WEBSITE_NAME="LiLi IM" VUE_APP_WEBSITE_NAME="LiLi IM"
VUE_APP_PC_ORDER_URL=https://pc-b2b2c.pickmall.cn/
VUE_APP_PC_STORE_ORDER_URL=https://store-b2b2c.pickmall.cn/
VUE_APP_PC_STORE_ORDER=https://store-b2b2c.pickmall.cn/
VUE_APP_PC_USER_ORDER=https://pc-b2b2c.pickmall.cn
VUE_APP_PC_STORE_GOODS=https://store-b2b2c.pickmall.cn/

View File

@ -1,12 +1,9 @@
<template> <template>
<div <div class="text-message" :class="{
class="text-message" left: float == 'left',
:class="{ right: float == 'right',
left: float == 'left', 'max-width': !fullWidth,
right: float == 'right', }">
'max-width': !fullWidth,
}"
>
<div v-if="arrow" class="arrow"></div> <div v-if="arrow" class="arrow"></div>
<pre v-html="html" /> <pre v-html="html" />
</div> </div>
@ -35,12 +32,12 @@ export default {
default: false, default: false,
}, },
}, },
data() { data () {
return { return {
html: "", html: "",
}; };
}, },
created() { created () {
const text = textReplaceLink( const text = textReplaceLink(
this.content, this.content,
this.float == "right" ? "#ffffff" : "rgb(9 149 208)" this.float == "right" ? "#ffffff" : "rgb(9 149 208)"

View File

@ -70,6 +70,8 @@ export default {
} }
}, },
mounted () { mounted () {
localStorage.setItem('storeFlag', this.toUser.storeFlag)
console.log(this.toUser.storeFlag, 'this.toUser.storeFlag');
if (this.toUser.storeFlag) { if (this.toUser.storeFlag) {
this.getStoreDetail() this.getStoreDetail()
} else { } else {

View File

@ -35,9 +35,9 @@
<!-- 其它对话消息 --> <!-- 其它对话消息 -->
<div v-else class="message-box record-box" :class="{ <div v-else class="message-box record-box" :class="{
'direction-rt': item.float == 'right', 'direction-rt': item.float == 'right',
'checkbox-border': multiSelect.isOpen === true, 'checkbox-border': multiSelect.isOpen === true,
}"> }">
<aside v-show="multiSelect.isOpen" class="checkbox-column"> <aside v-show="multiSelect.isOpen" class="checkbox-column">
<i class="el-icon-success" :class="{ selected: verifyMultiSelect(item.id) }" <i class="el-icon-success" :class="{ selected: verifyMultiSelect(item.id) }"
@click="triggerMultiSelect(item.id)" /> @click="triggerMultiSelect(item.id)" />
@ -59,48 +59,63 @@
{{ unixToDate(item.createTime, "MM月dd日 hh:mm") }} {{ unixToDate(item.createTime, "MM月dd日 hh:mm") }}
</span> </span>
<!-- 文本消息 --> <!-- 文本消息 -->
<div v-if="item.messageType == 'MESSAGE'" class="text-message" :class="{ <div v-if="item.messageType == 'MESSAGE'" style="background-color: #d0e9ff;color: black;"
left: item.float == 'left', class="text-message" :class="{
right: item.float == 'right', left: item.float == 'left',
}"> right: item.float == 'right',
}">
<div class="arrow"></div> <div class="arrow"></div>
<pre v-html="item.text" /> <pre v-html="item.text" />
</div> </div>
<div v-if="item.messageType == 'GOODS' && item.text != null" class="text-message" :class="{ <div v-if="item.messageType == 'GOODS' && item.text != null" class="goodsStyle " :class="{
left: item.float == 'left', left: item.float == 'left',
right: item.float == 'right', right: item.float == 'right',
}"> }">
<div class="base" @click="linkToGoods(item.text.goodsId, item.text.id)"> <div class="base" @click="linkToGoods(item.text.goodsId, item.text.id)">
<div> <div>
<img :src="item.text.thumbnail" class="image" /> <img :src="item.text.thumbnail" class="image" />
</div> </div>
<div style="margin-left: 13px"> <div>
<a> {{ item.text.goodsName }} </a> <div class="goods_name">
<div> <el-tooltip class="item" effect="dark" :content="item.text.goodsName" placement="top-start">
<span style="color: red;">{{ item.text.price }}</span> <a> {{ item.text.goodsName }} </a>
</el-tooltip>
</div>
<div class="price">
<span>{{ item.text.price }}</span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div v-if="item.messageType == 'ORDER' && item.text != null" class="text-message" :class="{ <div v-if="item.messageType == 'ORDER' && item.text != null" class="oderStyle" :class="{
left: item.float == 'left', left: item.float == 'left',
right: item.float == 'right', right: item.float == 'right',
}"> }">
<a> 订单号:{{ item.text.sn }} </a> <div class="oedersn">
<el-tooltip class="item" effect="dark" :content="item.text.sn" placement="top-start">
<a> 订单号:{{ item.text.sn }} </a>
</el-tooltip>
</div>
<div class="baseTwo"> <div class="baseTwo">
<img :src="item.text.groupImages" style="height: 100px;width: 100px;margin-top: 10px;" /> <img :src="item.text.groupImages" style="height: 100px;width: 100px;margin-top: 10px;" />
<span class="orderGoodsName" @click="linkToOrders(item.text.sn)">{{ item.text.groupName }}</span> <span class="orderGoodsName" @click="linkToOrders(item.text.sn)">{{ item.text.groupName }}</span>
<span class="orderGoodsTime">{{ item.text.paymentTime }}</span> <span class="orderGoodsTime">{{ item.text.paymentTime }}</span>
<span class="orderFlowPrice">
订单金额{{ item.text.flowPrice }}
</span>
<span class="order_status"
:style="{ 'color': item.text.orderStatus == 'CANCELLED' || item.text.orderStatus == 'UNPAID' || item.text.orderStatus == ' TAKE' ? '#5a606b' : '#f23030' }">{{
item.text.orderStatus == 'CANCELLED' ? '已取消' : item.text.orderStatus == 'UNPAID' ? '未付款' :
item.text.orderStatus ==
'PAID' ? '已付款' : item.text.orderStatus == 'UNDELIVERED' ? '待发货' : item.text.orderStatus ==
'DELIVERED'
? '已发货' : item.text.orderStatus == ' COMPLETED' ? '已完成' : item.text.orderStatus == ' TAKE' ?
'待校验' : ''
}}</span>
</div> </div>
</div> </div>
<!-- 图片消息 -->
<!-- <image-message
v-else-if="item.messageType == 2 && item.file.file_type == 1"
:src="item.file.file_url"
@contextmenu.native="onCopy(idx, item, $event)"
/> -->
</div> </div>
</main> </main>
</div> </div>
@ -149,10 +164,10 @@
<!-- 消息管理器 --> <!-- 消息管理器 -->
<transition name="el-fade-in-linear"> <transition name="el-fade-in-linear">
<TalkSearchRecord v-if="findChatRecord" :params="{ <TalkSearchRecord v-if="findChatRecord" :params="{
talk_type: params.talk_type, talk_type: params.talk_type,
receiver_id: params.receiver_id, receiver_id: params.receiver_id,
title: params.nickname, title: params.nickname,
}" @close="findChatRecord = false" /> }" @close="findChatRecord = false" />
</transition> </transition>
<!-- 链接信息 --> <!-- 链接信息 -->
@ -820,6 +835,67 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.order_status {
height: 30px;
width: 60px;
background: #ffeded;
margin-right: 20px;
text-align: center;
line-height: 25px;
margin-left: 15px;
border-radius: 10px;
}
.oderStyle {
border: 1px solid #f2f2f2;
width: 330px;
border-radius: 4px;
.oedersn {
margin: 10px 0 10px 5px;
width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.goodsStyle {
border: 1px solid #f2f2f2;
width: 300px;
height: 120px;
display: flex;
border-radius: 4px;
.goods_name {
color: black;
width: 150px;
font-size: 15px;
color: #333333;
margin-top: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.image {
height: 70px;
margin-top: 3px;
width: 70px;
background-size: cover;
margin: 20px;
}
.price {
color: #999;
margin-top: 20px;
}
.base {
display: flex;
}
}
.orderSn { .orderSn {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -830,7 +906,7 @@ export default {
width: 200px; width: 200px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; // white-space: nowrap;
position: absolute; position: absolute;
margin-top: 10px; margin-top: 10px;
margin-left: 10px; margin-left: 10px;
@ -838,9 +914,14 @@ export default {
.orderGoodsTime { .orderGoodsTime {
margin-left: 10px; margin-left: 10px;
color: red; color: #999;
position: absolute; position: absolute;
margin-top: 35px; margin-top: 70px;
}
.orderFlowPrice {
color: #999;
margin-bottom: 20px;
} }
.main-box { .main-box {
@ -904,26 +985,26 @@ export default {
} }
.base { // .base {
margin-top: 5px; // margin-top: 5px;
height: 120px; // height: 120px;
display: flex; // display: flex;
div { // div {
width: 100px; // width: 100px;
overflow: hidden; // // overflow: hidden;
text-overflow: ellipsis; // // text-overflow: ellipsis;
margin-top: 8px; // margin-top: 8px;
white-space: nowrap; // // white-space: nowrap;
} // }
.image { // .image {
height: 100px; // height: 100px;
margin-top: 3px; // margin-top: 3px;
width: 100px // width: 100px
} // }
} // }
.talk-bubble { .talk-bubble {
position: absolute; position: absolute;
@ -1101,7 +1182,7 @@ export default {
} }
@bg-left-color: #f5f5f5; @bg-left-color: #f5f5f5;
@bg-right-color: #1ebafc; @bg-right-color: #ffffff;
.text-message { .text-message {
position: relative; position: relative;

View File

@ -7,37 +7,58 @@
<dd v-for="item in list" v-infinite-scroll="loadMore"> <dd v-for="item in list" v-infinite-scroll="loadMore">
<div class="base"> <div class="base">
<div> <div>
<img :src="item.thumbnail" class="image" /> <img style="width: 60px; height: 60px;" :src="item.thumbnail" class="image" />
</div> </div>
<div style="margin-left: 13px"> <div class="recent_views">
<a class="goods_name" @click="linkToGoods(item.goodsId, item.id)">{{ item.goodsName }}</a> <el-tooltip class="item" effect="dark" :content="item.goodsName" placement="top-start">
<div style="margin-top: 8px;"> <a class="goods_name" @click="linkToGoods(item.goodsId, item.id)">{{ item.goodsName }}</a>
<span style="color: red;">{{ item.price }}</span> </el-tooltip>
</div>
<div> <div style="display: flex;">
<el-button class="store-button" type="danger" v-if="item.btnHide == 1" size="mini" <div style="margin-top: 20px;">
@click="submitSendGoodsMessage(item)" plain>发送</el-button> <span style="color: red;">{{ item.price }}</span>
</div>
</div> </div>
</div> </div>
<div>
<el-button class="goods_store_button" type="danger" v-if="item.btnHide == 1" size="mini"
@click="submitSendGoodsMessage(item)" plain>发送</el-button>
</div>
</div> </div>
<div class="Underline"></div>
</dd> </dd>
</dl> </dl>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="订单列表" name="orders"> <el-tab-pane label="订单列表" name="orders">
<dl> <dl>
<dd v-for="(item, index) in orderList" v-infinite-scroll="loadMore" :key="index"> <dd v-for="(item, index) in orderList" v-infinite-scroll="loadMore" :key="index">
<div style="margin-bottom: 20px;"> <div class="orderlist">
<span class="orderSn">订单号{{ item.sn }}</span> <div class="order_top">
<img :src="item.groupImages" alt="" <span class="order_sn">订单号:{{ item.sn }}</span>
style="height: 100px; width: 100px;margin-top: 10px; vertical-align: middle; "> </div>
<span class="orderGoodsName" @click="linkToOrders(item.sn)"> {{ item.groupName }}</span> <div class="order_section">
<span style="margin-left: 10px; color: red;">{{ item.paymentTime }}</span> <img :src="item.groupImages" alt="">
<div class="orderBtn"> <el-tooltip class="item" effect="dark" :content="item.groupName" placement="top-start">
<el-button type="danger" class="store-button" v-if="item.btnHide == 1" size="mini" <span class="orderGoodsName" @click="linkToOrders(item.sn)"> {{ item.groupName }}</span>
@click="submitSendOrderMessage(item, index)" plain>发送</el-button> </el-tooltip>
<div class="orderBtn">
<el-button type="danger" class="store-button" v-if="item.btnHide == 1" size="mini"
@click="submitSendOrderMessage(item, index)" plain>发送</el-button>
</div>
</div>
<div class="order_footer">
<span> 订单金额 <span style="color: red;">{{ item.orderItems[0].goodsPrice }}</span></span>
<span class="order_status"
:style="{ 'color': item.orderStatus == 'CANCELLED' || item.orderStatus == 'UNPAID' || item.orderStatus == ' TAKE' ? '#5a606b' : '#f23030' }">{{
item.orderStatus == 'CANCELLED' ? '已取消' : item.orderStatus == 'UNPAID' ? '未付款' : item.orderStatus ==
'PAID' ? '已付款' : item.orderStatus == 'UNDELIVERED' ? '待发货' : item.orderStatus == 'DELIVERED'
? '已发货' : item.orderStatus == ' COMPLETED' ? '已完成' : item.orderStatus == ' TAKE' ? '待校验' : ''
}}</span>
</div> </div>
</div>
</div>
<div class="Underline"></div>
</dd> </dd>
</dl> </dl>
</el-tab-pane> </el-tab-pane>
@ -109,11 +130,14 @@ export default {
}, },
// //
submitSendOrderMessage (item, index) { submitSendOrderMessage (item, index) {
console.log(item, 'item');
const context = { const context = {
sn: item.sn, sn: item.sn,
groupImages: item.groupImages, groupImages: item.groupImages,
paymentTime: item.paymentTime, paymentTime: item.paymentTime,
groupName: item.groupName, groupName: item.groupName,
flowPrice: item.flowPrice,
orderStatus: item.orderStatus
} }
const record = { const record = {
operation_type: "MESSAGE", operation_type: "MESSAGE",
@ -150,6 +174,92 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.order_status {
height: 25px;
width: 60px;
background: #ffeded;
margin-right: 20px;
text-align: center;
line-height: 25px;
}
.Underline {
border: 1px solid silver;
}
.recent_views {
margin-left: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 260px;
}
.box {
width: 400px;
.top {
text-align: center;
}
.left {
float: left;
width: 60px;
}
.right {
float: right;
width: 60px;
}
.bottom {
clear: both;
text-align: center;
}
.item {
margin: 4px;
}
.left .el-tooltip__popper,
.right .el-tooltip__popper {
padding: 8px 10px;
}
}
.Underline {
// border: 5px solid red;
}
.orderlist {
margin-bottom: 10px;
background: #fff;
color: #5a606b;
}
.order_top {
border-bottom: 1px solid #f2f2f2;
.order_sn {}
}
.order_section {
border-bottom: 1px solid #f2f2f2;
height: 100px;
img {
width: 80px;
height: 80px;
margin-top: 20px;
}
}
.order_footer {
border-bottom: 1px solid #f2f2f2;
display: flex;
justify-content: space-between;
}
.orderGoodsName { .orderGoodsName {
width: 200px; width: 200px;
overflow: hidden; overflow: hidden;
@ -158,6 +268,7 @@ export default {
position: absolute; position: absolute;
margin-left: 10px; margin-left: 10px;
margin-top: 10px; margin-top: 10px;
font-weight: 500;
} }
.orderSn { .orderSn {
@ -171,18 +282,13 @@ export default {
justify-content: flex-end; justify-content: flex-end;
margin-right: 15px; margin-right: 15px;
position: relative; position: relative;
bottom: 30px; bottom: 55px;
} }
.goods_name { .goods_name {
text-overflow: -o-ellipsis-lastline;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; white-space: nowrap
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
} }
/deep/ .el-tabs__item.is-top:last-child { /deep/ .el-tabs__item.is-top:last-child {
@ -215,9 +321,18 @@ export default {
margin-top: 10px; margin-top: 10px;
} }
.goods_store_button {
background-color: white;
border-color: #F56C6C;
margin-top: 10px;
position: relative;
right: 60%;
top: 45%;
}
.base { .base {
margin-top: 5px; margin-top: 5px;
height: 120px; height: 80px;
display: flex; display: flex;
.price { .price {

View File

@ -6,11 +6,11 @@
</div> </div>
<div style="margin-left: 13px"> <div style="margin-left: 13px">
<div class="div-zoom"> <div class="div-zoom">
{{ storeInfo.storeName }} <span class="title_left_name"> 店铺名称</span> <span class="title_right_name">{{ storeInfo.storeName }}</span>
<el-tag type="danger" v-if="storeInfo.selfOperated" size="mini"></el-tag> <el-tag style="margin-left: 10px;" type="danger" v-if="storeInfo.selfOperated" size="mini"></el-tag>
</div> </div>
<div> <div>
联系方式: {{ storeInfo.memberName }} <span class="title_left_name"> 联系方式:</span> <span class="title_right_name">{{ storeInfo.memberName }}</span>
</div> </div>
<div> <div>
<el-button class="store-button" type="danger" @click="linkToStore(storeInfo.id)" size="mini" <el-button class="store-button" type="danger" @click="linkToStore(storeInfo.id)" size="mini"
@ -19,22 +19,32 @@
</div> </div>
</div> </div>
<hr class="separate" /> <hr class="separate" />
<div class="separate">店铺评分: <span>{{ storeInfo.serviceScore }}</span></div>
<div class="separate">服务评分: <span>{{ storeInfo.descriptionScore }}</span></div> <div class="separate">店铺评分: <el-rate v-model="storeInfo.serviceScore" disabled show-score text-color="#ff9900"
<div class="separate">物流评分: <span>{{ storeInfo.deliveryScore }}</span></div> score-template="{value}">
</el-rate></div>
<div class="separate">服务评分: <el-rate v-model="storeInfo.descriptionScore" disabled show-score text-color="#ff9900"
score-template="{value}">
</el-rate></div>
<div class="separate">物流评分: <el-rate v-model="storeInfo.deliveryScore" disabled show-score text-color="#ff9900"
score-template="{value}">
</el-rate></div>
</div> </div>
</template> </template>
<script> <script>
import { Tag, button } from 'element-ui' import { Tag, button, rate } from 'element-ui'
export default { export default {
data () { data () {
return { return {
value: null,
colors: ['#99A9BF', '#F7BA2A', '#FF9900']
} }
}, },
components: { components: {
"el-tag": Tag, "el-tag": Tag,
"el-button": button, "el-button": button,
"el-rate": rate
}, },
methods: { methods: {
}, },
@ -49,6 +59,16 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.title_left_name {
font-size: 12px;
color: #a1a6af;
}
.title_right_name {
font-size: 12px;
color: #343036;
}
.store-button { .store-button {
background-color: white; background-color: white;
border-color: #F56C6C; border-color: #F56C6C;
@ -73,5 +93,9 @@ export default {
.separate { .separate {
margin-top: 8px; margin-top: 8px;
// display: inline;
display: flex;
font-size: 12px;
color: #a1a6af;
} }
</style> </style>

View File

@ -3,6 +3,9 @@ export default {
BASE_API_URL: process.env.VUE_APP_API_BASE_URL || "", BASE_API_URL: process.env.VUE_APP_API_BASE_URL || "",
BASE_WS_URL: process.env.VUE_APP_WEB_SOCKET_URL || "", BASE_WS_URL: process.env.VUE_APP_WEB_SOCKET_URL || "",
BASE_COMMON: process.env.VUE_APP_COMMON || "", BASE_COMMON: process.env.VUE_APP_COMMON || "",
PC_URL: process.env.VUE_APP_PC_URL || "", PC_URL: process.env.VUE_APP_PC_URL || "https://pc-b2b2c.pickmall.cn",
STORE_URL:process.env.VUE_APP_PC_ORDER_URL || "http://192.168.0.139:10002", STORE_URL: process.env.VUE_APP_PC_ORDER_URL || "http://192.168.0.139:8000/",
PC_STORE_GOODS: process.env.VUE_APP_PC_STORE_ORDER_URL || '',
PC_STORE_ORDER: process.env.VUE_APP_PC_STORE_ORDER || '',
PC_USER_ORDER: process.env.VUE_APP_PC_USER_ORDER || '',
}; };

View File

@ -25,17 +25,27 @@ Vue.component('face', face)
Vue.component('face-null', faceNull) Vue.component('face-null', faceNull)
Vue.prototype.linkToGoods = function (goodsId, skuId) { // 跳转买家端商品 Vue.prototype.linkToGoods = function (goodsId, skuId) { // 跳转买家端商品
console.log(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`) if (localStorage.getItem('storeFlag') == 'false') {
window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank') window.open(`${config.PC_STORE_GOODS}goods-operation-edit?id=${goodsId}`, '_blank')
} else {
window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
}
}; };
Vue.prototype.linkToStore = function (storeId) { // 跳转买家端商品 Vue.prototype.linkToStore = function (storeId) { // 跳转家端商品
console.log(`${config.PC_URL}/Merchant?id=${storeId}`) console.log(`${config.PC_URL}/Merchant?id=${storeId}`)
window.open(`${config.PC_URL}/Merchant?id=${storeId}`, '_blank') window.open(`${config.PC_URL}/Merchant?id=${storeId}`, '_blank')
}; };
// 订单跳转商家订单页面 // 订单跳转商家订单页面
Vue.prototype.linkToOrders = function (sn) { // 跳转买家端订单 Vue.prototype.linkToOrders = function (sn) {
window.open(`${config.STORE_URL}/order-detail?sn=${sn}`, '_blank') if (localStorage.getItem('storeFlag') == 'false') {
// 商家
window.open(`${config.PC_STORE_GOODS}order-detail?sn=${sn}`, '_blank')
} else {
// 用户
window.open(`${config.STORE_URL}/OrderDetail?sn=${sn}`, '_blank')
}
}; };
const Instance = new Vue({ const Instance = new Vue({
router, router,
store, store,

View File

@ -1,29 +1,29 @@
var BASE = { var BASE = {
/** /**
* @description api请求基础路径 * @description api请求基础路径
*/ */
API_DEV: { API_DEV: {
common: "http://192.168.0.113:8890", common: "http://192.168.0.113:8890",
buyer: "http://192.168.0.113:8888", buyer: "http://192.168.0.113:8888",
seller: "http://192.168.0.113:8889", seller: "http://192.168.0.113:8889",
manager: "http://192.168.0.113:8887" manager: "http://192.168.0.113:8887"
}, },
API_PROD: { API_PROD: {
common: "https://common-api.pickmall.cn", common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn",
seller: "https://store-api.pickmall.cn", seller: "https://store-api.pickmall.cn",
manager: "https://admin-api.pickmall.cn" manager: "https://admin-api.pickmall.cn"
}, },
/** /**
* @description // 跳转买家端地址 pc端 * @description // 跳转买家端地址 pc端
*/ */
PC_URL: "https://pc-b2b2c.pickmall.cn", PC_URL: "https://pc-b2b2c.pickmall.cn",
/** /**
* @description // 跳转买家端地址 wap端 * @description // 跳转买家端地址 wap端
*/ */
WAP_URL: "https://m-b2b2c.pickmall.cn", WAP_URL: "https://m-b2b2c.pickmall.cn",
/** /**
* @description api请求基础路径前缀 * @description api请求基础路径前缀
*/ */
PREFIX: "/manager" PREFIX: "/manager"
}; };

View File

@ -3,10 +3,10 @@ var BASE = {
* @description api请求基础路径 * @description api请求基础路径
*/ */
API_DEV: { API_DEV: {
common: "http://192.168.0.113:8890", common: "https://common-api.pickmall.cn",
buyer: "http://192.168.0.113:8888", buyer: "https://buyer-api.pickmall.cn",
seller: "http://192.168.0.113:8889", seller: "https://store-api.pickmall.cn",
manager: "http://192.168.0.113:8887" manager: "https://admin-api.pickmall.cn"
}, },
API_PROD: { API_PROD: {
common: "https://common-api.pickmall.cn", common: "https://common-api.pickmall.cn",

View File

@ -258,7 +258,10 @@ export default {
this.$Message.error("请登录后再联系客服"); this.$Message.error("请登录后再联系客服");
return; return;
} }
window.open(`${res.result}?token=` + accessToken); // console.log(res.result, 'res.result');
// http://192.168.0.139:8000/
window.open(`http://192.168.0.139:8000/?token=` + accessToken);
// window.open(`${res.result}?token=` + accessToken);
}, },
// im // im