Commit df6ff320 authored by youjie's avatar youjie

预览、优化团图片

parent 6ff4337f
...@@ -786,7 +786,7 @@ var tripUtils = { ...@@ -786,7 +786,7 @@ var tripUtils = {
if (B2BDomain) { if (B2BDomain) {
var url = "http://" + B2BDomain; var url = "http://" + B2BDomain;
window.open( window.open(
url + '/#/detail/XXcsyIZsyIY%3D/' + url + '/#/detail/' +
encodeURIComponent(ConfigId) + '/' + tcid, encodeURIComponent(ConfigId) + '/' + tcid,
'_blank' '_blank'
) )
...@@ -797,10 +797,9 @@ var tripUtils = { ...@@ -797,10 +797,9 @@ var tripUtils = {
if (B2BDomain) { if (B2BDomain) {
var url = "http://" + B2BDomain; var url = "http://" + B2BDomain;
window.open( window.open(
url + "/#/detail/XXcsyIZsyIY%3D/" + url + "/#/detail/preview/" +
encodeURIComponent(ConfigId) + tcid +
"/" + "/0",
tcid,
"_blank" "_blank"
); );
} }
...@@ -810,7 +809,7 @@ var tripUtils = { ...@@ -810,7 +809,7 @@ var tripUtils = {
if (B2BDomain) { if (B2BDomain) {
var url = "http://" + B2BDomain; var url = "http://" + B2BDomain;
window.open( window.open(
url + "/#/details/" +-encodeURIComponent(ConfigId) + url + "/#/detail/" +-encodeURIComponent(ConfigId) +
"/" + "/" +
tcid , tcid ,
"_blank" "_blank"
...@@ -821,7 +820,7 @@ var tripUtils = { ...@@ -821,7 +820,7 @@ var tripUtils = {
GetB2BUrl(B2BDomain, ConfigId, tcid) { GetB2BUrl(B2BDomain, ConfigId, tcid) {
var url = ""; var url = "";
if (B2BDomain) { if (B2BDomain) {
url = "http://" + B2BDomain + "/#/details/" + url = "http://" + B2BDomain + "/#/detail/" +
encodeURIComponent(ConfigId) + encodeURIComponent(ConfigId) +
"/" + "/" +
tcid; tcid;
......
...@@ -801,6 +801,7 @@ ...@@ -801,6 +801,7 @@
</p> </p>
<p class="d12TC">{{item.TCNUM}}({{item.TCID}})</p> <p class="d12TC">{{item.TCNUM}}({{item.TCID}})</p>
<p>{{item.LtName}}</p> <p>{{item.LtName}}</p>
<el-tooltip class="item" effect="dark" :content="item.Title" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" :content="item.Title" placement="top-start" popper-class="max-w250">
<!-- <p class="d12p" @click="getJourney(item.ConfigID,item.LineName)" :title="item.Title">{{item.Title}}</p> --> <!-- <p class="d12p" @click="getJourney(item.ConfigID,item.LineName)" :title="item.Title">{{item.Title}}</p> -->
<p class="d12p" @click="goB2Bdetail(item.ConfigID, item.TCID)" :title="item.Title">{{item.Title}}</p> <p class="d12p" @click="goB2Bdetail(item.ConfigID, item.TCID)" :title="item.Title">{{item.Title}}</p>
......
...@@ -1359,7 +1359,7 @@ ...@@ -1359,7 +1359,7 @@
}, },
goB2B(ConfigId, tcid) { goB2B(ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain; var B2BDomain = this.CurrentUserInfo.B2BDomain;
this.$tripUtils.GotoB2BOneDayPage(B2BDomain, ConfigId, tcid); this.$tripUtils.GotoB2BPage(B2BDomain, ConfigId, tcid);
}, },
goTeamBalance(id, OutBranchId) { goTeamBalance(id, OutBranchId) {
this.$router.push({ this.$router.push({
......
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
<span>购买张数:</span> <span>购买张数:</span>
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<template v-for="x in types"> <template v-for="x in types">
<el-input-number v-if="x.checked" v-model="x.num" @change="changePeople" :min="1" label="购买数量" <el-input-number v-if="x.checked" v-model="x.num" @change="changePeople" :min="1" label="购买数量"
style="margin-bottom: 10px;"></el-input-number> style="margin-bottom: 10px;"></el-input-number>
</template> </template>
</div> </div>
...@@ -563,11 +563,12 @@ ...@@ -563,11 +563,12 @@
this.getNum() this.getNum()
}, },
getNum(){ getNum(){
this.types.forEach(x=>{ // 控制门票张数
if(x.num>x.RemainingInventory){ // this.types.forEach(x=>{
x.num = x.RemainingInventory // if(x.num>x.RemainingInventory){
} // x.num = x.RemainingInventory
}) // }
// })
setTimeout(()=>{ setTimeout(()=>{
this.calcMoneyHandler() this.calcMoneyHandler()
},50) },50)
...@@ -575,7 +576,7 @@ ...@@ -575,7 +576,7 @@
calcMoneyHandler(){ calcMoneyHandler(){
this.msg.Money=0.0 this.msg.Money=0.0
let Money= 0 let Money= 0
if(this.msg.MailingState == '2'){ if(this.msg.MailingState == 2){
this.msg.MailingMoney = this.detailsObj.MailingMoney this.msg.MailingMoney = this.detailsObj.MailingMoney
}else{ }else{
this.msg.MailingMoney = 0 this.msg.MailingMoney = 0
...@@ -588,9 +589,6 @@ ...@@ -588,9 +589,6 @@
this.msg.Money = Number(Money)+Number(this.msg.MailingMoney) this.msg.Money = Number(Money)+Number(this.msg.MailingMoney)
}, },
changeDetailListHandler(e) { changeDetailListHandler(e) {
if (e.checked) {
e.num = 1
}
e.checked = !e.checked e.checked = !e.checked
this.isCheck = this.types.findIndex(x => x.checked) > -1 this.isCheck = this.types.findIndex(x => x.checked) > -1
if(this.isCheck){ if(this.isCheck){
......
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
domainUrl = "http://192.168.10.128"; domainUrl = "http://192.168.10.128";
domainUrl = "http://192.168.10.11:8083" // 刘东电脑 domainUrl = "http://192.168.10.11:8083" // 刘东电脑
// domainUrl = "http://192.168.10.123:8002"; // domainUrl = "http://192.168.10.123:8002";
// domainUrl = "http://reborn.oytour.com"; domainUrl = "http://reborn.oytour.com";
let crmLocalFileStreamDownLoadUrl = ""; let crmLocalFileStreamDownLoadUrl = "";
crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com"; crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com";
let javaUrldo = ""; let javaUrldo = "";
...@@ -1089,6 +1089,7 @@ export default { ...@@ -1089,6 +1089,7 @@ export default {
// w : 宽 // w : 宽
// h : 高 // h : 高
Vue.prototype.compressImg = function(path, type, w, h) { Vue.prototype.compressImg = function(path, type, w, h) {
if(!path||path=='') return ''
let url = this.domainManager().UploadUrl; let url = this.domainManager().UploadUrl;
let poise = 'm_filt'; let poise = 'm_filt';
w = w ? w : '' w = w ? w : ''
......
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