Commit 40175391 by zhangxw

冒烟修改

1 parent 7c72e5f1
......@@ -10,7 +10,7 @@
* 2测试
* 3生产环境
*/
let index = 1
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -67,7 +67,7 @@ Component({
if (pickerObj.flag) { // 商品带出金额
orderInfo['activityPrice'] = `¥${this.priceFilter(arr[0]?.activityPrice / 100 || 0)}`
// 尾款金额 = 众筹价 - 定金金额
orderInfo['balancePrice'] = `¥${this.priceFilter((arr[0]?.crowdFundingPrice - arr[0]?.activityPrice) / 100 || 0)}`
orderInfo['tailPayment'] = `¥${this.priceFilter((arr[0]?.crowdFundingPrice - arr[0]?.activityPrice) / 100 || 0)}`
orderInfo['crowdFundingPrice'] = `¥${this.priceFilter(arr[0]?.crowdFundingPrice / 100 || 0)}`
// 筛选交易流水号 订单金额字段
orderInfo['totalFee'] = arr[0]?.crowdFundingPrice || 0
......
......@@ -25,7 +25,7 @@ Page({
},
onRoute(options) {
if (!Object.keys(options).length) return
if (!options.activityId) return
let activityId = options.activityId
let activityName = options.activityName
this.setData({
......
......@@ -33,7 +33,7 @@ const orderObj = {
},
{
label: '尾款金额',
name: 'balancePrice',
name: 'tailPayment',
type: 'input',
readonly: true,
noBorder: true
......
......@@ -55,7 +55,7 @@ Page({
return (Math.round(num / 100 * pow) / pow).toFixed(2)
},
initOrderInfo() {
const {orderObj, orderList} = this.data
const {orderObj, orderList, orderInfo} = this.data
// 商品
if (app.globalData?.crowdFundingShopInfo && orderObj?.shopFormList) {
if (app.globalData?.crowdFundingShopInfo?.length > 1) {
......@@ -68,7 +68,7 @@ Page({
} else {
// 单商品直接带出商品名称
orderList[2].isMark = false
orderInfo['totalFee'] = arr[0]?.crowdFundingPrice || 0
orderInfo['totalFee'] = arr[0]?.tailPayment || 0
}
}
this.setData({orderObj, orderList})
......@@ -144,7 +144,7 @@ Page({
onRoute(options) {
const {list} = options
list.activityPrice = `¥${this.priceFilter(list.activityPrice || 0)}`
list.totalFee = list.crowdFundingPrice || 0
list.totalFee = list.tailPayment || 0
this.setData({
orderInfo: list
})
......
......@@ -79,7 +79,7 @@ Page({
const orderObj = wx.$util.deepClone(orderInfo)
delete orderObj.activityPrice
delete orderObj.crowdFundingPrice
delete orderObj.balancePrice
delete orderObj.tailPayment
let params = {
...orderObj,
selectPayType,
......
......@@ -221,6 +221,10 @@ Component({
// 复制链接
copyContractUrl(e) {
if (!e) {
wx.$util.showToast('没有合同')
return
}
wx.showModal({
title: '温馨提示',
content: '如需下载PDF报告单,请复制下载地址后到手机浏览器中打开。下载地址5分钟内有效',
......
......@@ -37,7 +37,8 @@ Page({
},
{
label: '礼券名称',
key: 'couponName'
key: 'couponName',
e_key: 'employeeName'
},
{
label: '领券时间',
......
......@@ -20,6 +20,10 @@
<!-- </view> -->
</block>
</block>
<block wx:elif="{{item.key == 'couponName'}}">
<text>{{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}}</text>
<text>({{item.enum? item.enum[detail[item.e_key]] : detail[item.e_key] || ''}})</text>
</block>
<block wx:else>
{{item.enum? item.enum[detail[item.key]] : detail[item.key] || ''}}
</block>
......
......@@ -17,7 +17,8 @@ Page({
{
label: '礼券名称',
c_key: 'couponName',
key: 'customerCoupon'
key: 'customerCoupon',
e_key: 'employeeName'
},
{
label: '领券时间',
......
......@@ -82,7 +82,7 @@
</block>
</block>
</block>
<block wx:else>{{li[i.key][i.c_key]|| ''}}</block>
<block wx:else><text>{{li[i.key][i.c_key]|| ''}}</text><text wx:if="{{li[i.key][i.e_key]}}">({{li[i.key][i.e_key]}})</text></block>
</view>
</view>
</block>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!