Commit 40175391 by zhangxw

冒烟修改

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