Commit 720d4e21 by 徐忆琳

Merge branch 'xuyl_dev_v4.19.0' into 'dev_v4.19.0'

更新4.19代码

See merge request !41
2 parents 2cc1b3cf e3de0394
......@@ -10,7 +10,7 @@
* 2测试
* 3生产环境
*/
let index = 1
let index = 0
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -32,5 +32,10 @@ module.exports = {
// 创建子订单(已收款补录订单)
creatFullPayOrderAPI(data) {
return api.post('dj.api.smartcarlife.shopmallSubOrder.createFullPayOrder', data)
},
// 获取活动的商品信息
getMerchandiseInformation(){
return api.post('dj.api.smartcarlife.shopmallActivity.selectSamePriceGoods', data)
}
}
......@@ -3,14 +3,21 @@ import Api from '../../api'
Component({
options: {
styleIsolation: 'apply-shared',
properties: {
id: String,
}
},
properties: {
activityId: {
type: String,
observer: function (n) {
if (n) {
this.init()
}
}
},
activityName: String
},
lifetimes: {
attached() {
this.init()
}
},
/**
......@@ -34,7 +41,7 @@ Component({
1: '已支付',
2: '已退款'
},
orderStatusList:[
orderStatusList: [
{
confName: '全部',
confId: ''
......@@ -52,7 +59,7 @@ Component({
],
searchObj: {},
flag: true,
statisticsObj:{},
statisticsObj: {},
orderObj: [
{
label: '活动名称',
......@@ -87,63 +94,68 @@ Component({
key: 'tailPayment'
}
],
list: [{
customerName: '郝佳',
tailOrderStatus: 0,
activityName: "5555众筹",
transfer: '嘀加4S店-李美丽',
referrer: '园区店名-销售顾问',
goodsName: '汽车车膜',
payTime: 399,
payedDate: '2023.03.01 16:30:52',
subOrderCode: 1025639521111,
tailPayment: 200,
orderNum:'111111111'
}, {
customerName: '李鹏',
tailOrderStatus: 1,
activityName: "5555众筹",
referrer: '嘀加4S店-李美丽',
transfer: '园区店名-销售顾问',
goodsName: '汽车车膜',
payTime: 399,
payedDate: '2023.03.01 16:30:52',
subOrderCode: 1025639521111,
balanceAmount: 200,
tailPayedDate: 1000,
tailPayment: 200,
quotedPriceUpdate:'123',
orderNum:'111111111'
},
{
customerName: '李鹏',
tailOrderStatus: 2,
activityName: "5555众筹",
referrer: '嘀加4S店-李美丽',
transfer: '园区店名-销售顾问',
goodsName: '汽车车膜',
payTime: 399,
quotedPriceUpdate:1111,
payedDate: '2023.03.01 16:30:52',
subOrderCode: 1025639521111,
balanceAmount: 200
}
],
list: []
// list: [{
// customerName: '郝佳',
// tailOrderStatus: 0,
// activityName: "5555众筹",
// transfer: '嘀加4S店-李美丽',
// referrer: '园区店名-销售顾问',
// goodsName: '汽车车膜',
// payTime: 399,
// payedDate: '2023.03.01 16:30:52',
// subOrderCode: 1025639521111,
// tailPayment: 200,
// orderNum:'111111111'
// }, {
// customerName: '李鹏',
// tailOrderStatus: 1,
// activityName: "5555众筹",
// referrer: '嘀加4S店-李美丽',
// transfer: '园区店名-销售顾问',
// goodsName: '汽车车膜',
// payTime: 399,
// payedDate: '2023.03.01 16:30:52',
// subOrderCode: 1025639521111,
// balanceAmount: 200,
// tailPayedDate: 1000,
// tailPayment: 200,
// quotedPriceUpdate:'123',
// orderNum:'111111111'
// },
// {
// customerName: '李鹏',
// tailOrderStatus: 2,
// activityName: "5555众筹",
// referrer: '嘀加4S店-李美丽',
// transfer: '园区店名-销售顾问',
// goodsName: '汽车车膜',
// payTime: 399,
// quotedPriceUpdate:1111,
// payedDate: '2023.03.01 16:30:52',
// subOrderCode: 1025639521111,
// balanceAmount: 200
// }
// ],
},
methods: {
init(){
const {id} = this.data
Api.activityStatistics({activityId}).then(res=>{
if (res.code == 0){
init() {
const {activityId} = this.data
Api.activityStatistics({activityId}).then(res => {
if (res.code == 0) {
this.setData({
statisticsObj:res.data
statisticsObj: res.data
})
} else {
wx.$util.showToast(res.message || '接口异常')
}
})
},
onBottomRefresh() {
console.log('?????')
this.getList()
},
tabClick(e) {
let {searchObj} = this.data
delete searchObj.statusList
......@@ -153,11 +165,12 @@ Component({
})
this.search()
},
handlefinalPayment(e) {
console.log(e.currentTarget.dataset)
const {target} = e.currentTarget.dataset
wx.$router.go('balanceNote',{list:target})
wx.$router.go('balanceNote', {list: target})
},
getTotal() {
let {storeInfo} = this.data
getQuotationStatistics({merchantId: storeInfo?.merchantId}).then(res => {
......@@ -176,8 +189,9 @@ Component({
}
})
},
getList(isReset = false) {
let {pageSize, pageNum, tabList, tabIndex, customerName, storeInfo, nothing,activityId,orderStatusList} = this.data
let {pageSize, pageNum, tabList, tabIndex, customerName, nothing, activityId, orderStatusList} = this.data
if (nothing) {
return
}
......@@ -187,43 +201,43 @@ Component({
customerName,
activityId,
tailOrderStatus: orderStatusList.find(item => item.confName == tabList[tabIndex])?.confId || '',
merchantId: storeInfo?.merchantId
// merchantId: storeInfo?.merchantId
}
Api.queryTheListOfSuborders(params).then(res => {
console.log(res)
// if (res.code == '0') {
// let {list, total} = res.data
// let tempList = isReset ? list : this.data.list.concat(list)
// this.setData({
// list: tempList,
// pageNum: pageNum + 1,
// total,
// nothing: total == tempList.length,
// triggered: false
// })
// if (isReset) {
// this.setData({
// scrollTop: 0
// })
// }
// // console.log(this.data.list)
// } else {
// this.setData({
// list: [],
// nothing: false,
// total: 0
// })
// wx.$util.showToast(res.message || '接口异常')
// }
if (res.code == '0') {
let {list, total} = res.data
let tempList = isReset ? list : this.data.list.concat(list)
this.setData({
list: tempList,
pageNum: pageNum + 1,
total,
nothing: total == tempList.length,
triggered: false
})
if (isReset) {
this.setData({
scrollTop: 0
})
}
// console.log(this.data.list)
} else {
this.setData({
list: [],
nothing: false,
total: 0
})
wx.$util.showToast(res.message || '接口异常')
}
})
},
handleClickBtn(e) {
console.log(e.currentTarget.dataset.target)
const { tailOrderStatus,orderNum} = e.currentTarget.dataset.target
if ( tailOrderStatus == 0) {
const {tailOrderStatus, orderNum} = e.currentTarget.dataset.target
if (tailOrderStatus == 0) {
wx.$router.go('activityPay')
}
if ( tailOrderStatus == 1) {
if (tailOrderStatus == 1) {
wx.showModal({
title: '温馨提示',
content: '请确定将此订单状态标记为已退款',
......@@ -232,7 +246,7 @@ Component({
confirmColor: '#3582EE',
success(res) {
if (res.confirm) {
Api.markAsRefunded({orderCode:orderNum}).then(res=>{
Api.markAsRefunded({orderCode: orderNum}).then(res => {
console.log(res)
})
}
......@@ -269,44 +283,11 @@ Component({
console.log('点击了订单')
// let { target } = e.currentTarget.dataset
wx.$router.go('activityList')
// wx.$router.go('createOrderCarQuotation', {
// id: target.id
// })
// 0待报价、1待确认、2待支付、3已支付、-1战败
// switch (target. tailOrderStatus + '') {
// // schemeConfirmation
// case '0':
// wx.$router.go('createOrderCarQuotation', {
// id: target.id
// })
// break
// case '1':
// wx.$router.go('schemeConfirmation', {
// id: target.id
// })
// break
// case '2':
// wx.$router.go('CarQuotationPay', {
// id: target.id
// })
// break
// case '3':
// wx.$router.go('serviceInfo', {
// orderId: target.orderId,
// apiName: 'handler'
// })
// break
// case '-1':
// wx.$router.go('createOrderCarQuotation', {
// id: target.id
// })
// break
// }
},
back() {
wx.$router.reLaunch('pages.sceneIndex')
wx.$router.back()
},
},
......
......@@ -106,7 +106,7 @@
</block>
</block>
<view class="no-data" wx:else>
<image class="no-data-img" src="/packageEquity/images/noData.png" />
<image class="no-data-img" src="/packageCrowdFunding/images/noData.png" />
<view class="list-not">暂无数据</view>
</view>
</scroll-view>
......
import activityList from './constant/data'
// import activityList from './constant/data'
import activityApi from '../../api'
Component({
......@@ -51,6 +51,7 @@ Component({
},
onBottomRefresh() {
console.log('????????')
this.getActivityList()
},
......@@ -77,33 +78,29 @@ Component({
merchantId: storeInfo?.merchantId
}
this.setData({
list: activityList.activityList
})
activityApi.queryActivityList(params).then(res => {
console.log(res)
// if (res.code == '0') {
// let { list, total } = res.data
// let tempList = isReset ? list : this.data.list.concat(list || [])
// this.setData({
// list: tempList,
// pageNum: pageNum + 1,
// total,
// nothing: total == tempList.length,
// })
// if (isReset) {
// this.setData({
// scrollTop: 0
// })
// }
// } else {
// this.setData({
// list: [],
// nothing: false,
// total: 0
// })
// wx.$util.showToast(res.message || '接口异常')
// }
if (res.code == '0') {
let { list, total } = res.data
let tempList = isReset ? list : this.data.list.concat(list || [])
this.setData({
list: tempList,
pageNum: pageNum + 1,
total,
nothing: total == tempList.length,
})
if (isReset) {
this.setData({
scrollTop: 0
})
}
} else {
this.setData({
list: [],
nothing: false,
total: 0
})
wx.$util.showToast(res.message || '接口异常')
}
})
},
......@@ -142,9 +139,8 @@ Component({
handleOrderList(e) {
const {target} = e.target.dataset
console.log(target)
wx.$router.go('activityList', {
id: target.id,
activityId: target.id,
activityName:target.activityName
})
},
......
......@@ -26,19 +26,21 @@
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
bindscrolltolower="onBottomRefresh"
class="list"
style="height:calc(100vh - {{navBarHeight + 104}}px);"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<block wx:if="{{list}}">
<block wx:if="{{list.length > 0}}">
<block>
<block wx:for="{{list}}" wx:key="id">
<view class="activity-box">
<view class="activity-name">
<image class="activity-avatar" src="{{item.activityImg}}" />
<view class="activity-avatar">
<image src="{{item.activityImg}}" />
</view>
<view class="activity-status">
<view>
<view class="name">{{item.activityName}}</view>
......@@ -73,9 +75,10 @@
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<view class="no-data" wx:else>
<image class="no-data-img" src="/packageCrowdFunding/images/noData.png" />
<view class="list-not">暂无数据</view>
</block>
</view>
</scroll-view>
</block>
......
......@@ -189,8 +189,9 @@
}
.activity-box .activity-name .activity-status {
width: 80%;
display: flex;
padding-left: 35rpx;
justify-content: space-around;
padding-top: 15rpx;
}
......@@ -261,3 +262,19 @@
.activity-box .activity-list .activity-pay .unpaid .unpaidNum {
color: #EB4E4E;
}
.no-data {
text-align: center;
margin-top: 128rpx;
}
.no-data-img {
width: 160rpx;
height: 160rpx;
}
.list-nothing,
.list-not {
text-align: center;
}
......@@ -5,6 +5,9 @@ Component({
},
activityName:{
type:String
},
activityId:{
type:String
}
},
data: {
......@@ -36,7 +39,8 @@ Component({
})
}
wx.$router.go(choiceList[0].url,{
activityName: this.data.activityName
activityName: this.data.activityName,
activityId: this.data.activityId
})
this.setData({
show: false
......
<!--packageEquity/components/storePicker/storePicker.wxml-->
<!--<popup class="date-background" show="{{show}}" bindconfirm="confirm" height="460rpx">-->
<!-- <view class='date-container'>-->
<!-- <view class='date-confirm'>-->
<!-- 请选择创建订单方式-->
<!-- </view>-->
<!-- <view class="box">-->
<!-- <view class="view pickViewColumn">未收款新增订单</view>-->
<!-- <view class="view pickViewColumn">已收款补录订单</view>-->
<!-- <view class="icon">-->
<!-- <image src="../../../../images/choose.png" />-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
<!--</popup>-->
<popup show="{{show}}" bindconfirm="confirm" bindcancel="cancel" height="480rpx">
<view class="sub-title text-center">请选择创建订单方式</view>
<block wx:for="{{optionList}}" wx:key="index">
......
......@@ -10,16 +10,15 @@ Page({
defaultOderSelect:'',
showPicker:false,
oderSelectItem:[{merchantName:1},{merchantName:2}],
id:'',
activityId:'',
activityName:''
},
onRoute(options) {
let id = options.id
let activityId = options.activityId
let activityName = options.activityName
console.log(activityName)
this.setData({
id,
activityId,
activityName
})
},
......
......@@ -10,10 +10,10 @@
<view class="layout" style="padding-top:{{navBarHeight}}px;position: relative;">
<block >
<acitivity-detail activityId="{{id}}"></acitivity-detail>
<acitivity-detail activityId="{{activityId}}" activityName="{{activityName}}"></acitivity-detail>
</block>
</view>
<image data-target="addOrder" bind:tap="showMannerPicker" class="addOrder" src="./../../images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
<popup-manner show="{{showPicker}}" activityName="{{activityName}}" bindconfirm="changePicker"></popup-manner>
<popup-manner show="{{showPicker}}" activityName="{{activityName}}" activityId="{{activityId}}" bindconfirm="changePicker"></popup-manner>
......@@ -9,34 +9,10 @@ Page({
*/
data: {
orderObj: constantData.orderObj,
// orderInfo: {orderNo: '52632145854', goodId: 2, referrerId: 2},
orderNoPopup: false,
// orderNoList: [{
// orderNo: '52632145852',
// payTime: '2023.03.01 16:30:52',
// payAmount: '100'
// }, {
// orderNo: '52632145854',
// payTime: '2023.03.01 16:30:52',
// payAmount: '100'
// }, {
// orderNo: '52632145853',
// payTime: '2023.03.01 16:30:52',
// payAmount: '100'
// }, {
// orderNo: '52632145855',
// payTime: '2023.03.01 16:30:52',
// payAmount: '100'
// }, {
// orderNo: '52632145856',
// payTime: '2023.03.01 16:30:52',
// payAmount: '100'
// }, {
// orderNo: '52632145857',
// payTime: '2023.03.01 16:30:52',
// payAmount: '100'
// }]
orderNoList:[]
orderNoList:[],
orderListInfo: {},
orderNoInfo:{}
},
handleTransaction() {
this.setData({
......@@ -44,7 +20,9 @@ Page({
})
},
confirm() {
wx.$router.go('activityPay')
const {orderInfo,orderListInfo} = this.data
let payParams = {...orderInfo,...orderListInfo}
wx.$router.go('activityPay',{payParams})
},
back() {
wx.$router.back()
......@@ -53,21 +31,13 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
Api.transactionSerialNumber({currentPage :1,pageSize :4}).then(res =>{
if (res.code == 0){
// const {}
this.setData({
orderNoList:res.data.list
})
}
})
},
onRoute(options) {
const { list} = options
this.setData({
orderInfo: list
orderListInfo: list
})
console.log(this.data.orderInfo)
},
/**
......
......@@ -9,9 +9,10 @@
</view>
</view>
<view class="money">尾款金额
<view class="sum">¥1000</view>
<view class="sum">¥{{orderListInfo.tailPayment}}</view>
</view>
<view class="box" bind:tap="handleTransaction">交易流水号
{{orderInfo.outTradeNo}}
<view class="right">
<image src="../../../images/arrow-right.png"/>
</view>
......@@ -19,7 +20,7 @@
</view>
<view class="infoBox">
<activity-info orderInfo="{{orderInfo}}"></activity-info>
<activity-info orderInfo="{{orderListInfo}}"></activity-info>
</view>
<view class="cofirm" bind:tap="confirm">
......@@ -29,5 +30,5 @@
<order-no-popup
show="{{orderNoPopup}}"
title="请选择交易参考号"
orderInfo="{{orderInfo}}"
orderInfo="{{orderNoInfo}}"
orderNoList="{{orderNoList}}"/>
......@@ -39,7 +39,7 @@ const orderObj = {
},
{
label: '商品名称',
name: 'shopName',
name: 'goodsName',
type: 'select',
optionList: [{
goodId: 1,
......
// packageCrowdFunding/pages/newOrder/newOrder.js
import constantData from './constant/data'
import Api from '../../api'
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
orderObj: constantData.orderObj,
orderInfo: {orderNo: '52632145854', goodId: 2, referrerId: 2},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
// 推荐人
let { orderObj } = this.data
if (app.globalData?.staffListRange && orderObj?.orderFormList) {
orderObj.orderFormList[orderObj.orderFormList.length - 1].optionList = app.globalData.staffListRange
/**
* 页面的初始数据
*/
data: {
orderObj: constantData.orderObj,
orderInfo: {orderNo: '52632145854', goodId: 2, referrerId: 2},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
// 推荐人
let {orderObj} = this.data
if (app.globalData?.staffListRange && orderObj?.orderFormList) {
orderObj.orderFormList[orderObj.orderFormList.length - 1].optionList = app.globalData.staffListRange
}
this.setData({orderObj})
console.log(options)
},
back() {
wx.$router.back()
},
onRoute(options) {
const {activityName, activityId} = options
// this.setData({
// orderInfo:options
// })
this.getGoods(activityId)
},
getGoods(activityId) {
Api.getMerchandiseInformation({actid: '10228'}).then(res => {
console.log(res)
})
},
confirm(e) {
const {target} = e.currentTarget.dataset
console.log(this.data.orderInfo)
// if (target == 'wechat'){
// let id = 1
// wx.$router.go('activityPay',{id})
// }
// if (target == 'pos'){
// let id =2
// wx.$router.go('activityPay',{id})
// }
}
,
// 自定义picker选择器
showPickerSelect(e) {
this.setData({
showPickerSelect: true,
pickerTitle: e?.detail?.label,
pickerObj: e?.detail || {}
})
}
,
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
}
,
/**
* 生命周期函数--监听页面显示
*/
onShow() {
}
,
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
}
,
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
}
,
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
}
,
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
}
,
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
this.setData({orderObj})
},
back(){
wx.$router.back()
},
confirm(e){
const {target }= e.currentTarget.dataset
console.log(this.data.orderInfo)
// if (target == 'wechat'){
// let id = 1
// wx.$router.go('activityPay',{id})
// }
// if (target == 'pos'){
// let id =2
// wx.$router.go('activityPay',{id})
// }
},
// 自定义picker选择器
showPickerSelect(e) {
this.setData({
showPickerSelect: true,
pickerTitle: e?.detail?.label,
pickerObj: e?.detail || {}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
{
"appid": "wx8c52883720153d59",
"appid": "wx570d9331f9ace0bd",
"projectname": "%E7%B2%BE%E5%93%81%E5%8D%87%E7%BA%A7",
"compileType": "miniprogram",
"libVersion": "2.29.2",
......
......@@ -50,8 +50,8 @@ const domain_items = {
ip: {
// dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.170:8292',
// dj: 'http://192.168.1.169:8292',//蔡远明
dj:'http://192.168.2.59:8292/',//周立明
dj: 'http://192.168.1.169:8292',//蔡远明
// dj:'http://192.168.2.59:8292/',//周立明
scrm: 'http://192.168.1.165:8292'
},
dev: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!