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)
}
}
......@@ -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
}
activityApi.queryActivityList(params).then(res => {
if (res.code == '0') {
let { list, total } = res.data
let tempList = isReset ? list : this.data.list.concat(list || [])
this.setData({
list: activityList.activityList
list: tempList,
pageNum: pageNum + 1,
total,
nothing: total == tempList.length,
})
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 (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({
......@@ -16,18 +18,32 @@ Page({
*/
onLoad(options) {
// 推荐人
let { orderObj } = this.data
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(){
back() {
wx.$router.back()
},
confirm(e){
const {target }= e.currentTarget.dataset
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
......@@ -37,58 +53,66 @@ Page({
// let id =2
// wx.$router.go('activityPay',{id})
// }
},
}
,
// 自定义picker选择器
// 自定义picker选择器
showPickerSelect(e) {
this.setData({
showPickerSelect: true,
pickerTitle: e?.detail?.label,
pickerObj: e?.detail || {}
})
},
}
,
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
}
,
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
}
,
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
}
,
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
}
,
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
}
,
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
}
,
/**
* 用户点击右上角分享
......
{
"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!