master
wangchenguang 2 years ago
parent 9bcc0a80ef
commit 15d03cac07
  1. 3
      order/editCourse/editCourse.vue
  2. 8
      order/orderDetail/orderDetail.vue
  3. 5
      team/article/article.vue

@ -253,6 +253,7 @@
//
dealSettlePrice(row) {
// 0
console.log('row=>', row)
if (this.orderType == 2) {
row.settlementPrice = 0
row.serviceFee = 0
@ -286,6 +287,7 @@
getPartnerTeamRates({
teamId: uni.getStorageSync('team').teamId
}).then(({ teamRates }) => {
console.log('teamRates=>',teamRates)
this.rate = teamRates.annualMarketingFee || 0
}).catch(res => {})
},
@ -306,6 +308,7 @@
}
//
this.calcDiscount(row)
//
this.dealSettlePrice(row)
}, 500)
},

@ -289,7 +289,11 @@
}
// 3push(0-> 1- 2 )
list.map(e => {
e.serviceFee = (e.settlementPrice * (this.rate / 100)).toFixed(2) // != 0 &&
console.log('e.=>',e)
console.log('this.rate=>',this.rate)
e.serviceFee = (e.finalPrice * (this.rate / 100)).toFixed(2) // != 0 &&
console.log('e.serviceFee=>',e.serviceFee)
const type = e.productType
!type ?
courses.theory.list.push(e) :
@ -415,7 +419,6 @@
总成本和总利润为单个产品的采购成本价和利润的和
*/
console.log('list=>',list)
list.map(e => {
// out=1 && 0
if (out && isTrial) {
@ -445,6 +448,7 @@
},
//
dealSettlePrice(row) {
console.log('row==>',row)
// 0
if (this.form.orderType == 2) {
row.settlementPrice = 0

@ -65,8 +65,8 @@
const newStyle = 'width: 85% !important; height: auto;';
const regex = /(<img[^>]*?\s+style=")([^"]*)("[^>]*?>)/g;
const newStr = str.replace(regex, `$1${newStyle}$3`);
const brStr = str.replace(/\r\n/g,"<br />")
const videoStr = this.replaceAllVideoTagStyles(brStr, "width: 95%; height: 450rpx;display: block;margin:0 auto")
// const brStr = str.replace(/\r\n/g,"<br />")
const videoStr = this.replaceAllVideoTagStyles(newStr, "width: 95%; height: 450rpx;display: block;margin:0 auto")
const imgStr = videoStr.replace(regex, `$1${newStyle}$3`);
message.mainBody = imgStr
this.form = message
@ -183,6 +183,7 @@
line-height: 1.6;
p{
width: 100%;
}
img,image{
width: 100% !important;

Loading…
Cancel
Save