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

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

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

Loading…
Cancel
Save