Commit f11c0c9f by zhangzhen

细节优化

parent f89eb868
const CONFIG = {
// 开发环境配置
development: {
assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// assetsPath: 'http://coujiao.pseer.com:8888/wechat_static', // 静态资源路径
// assetsPath: 'http://10.24.5.63:8211/static', // 静态资源路径
baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
// baseUrl: 'https://coujiao.pseer.com/front-api', // 后台接口请求地址
// hostUrl: 'http://coujiao.pseer.com:8888/prod-api', // H5地址(前端运行地址)
hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
assetsPath: 'http://10.24.5.63:8211/static', // 静态资源路径
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
baseUrl: 'https://coujiao.pseer.com/front-api', // 后台接口请求地址
hostUrl: 'http://coujiao.pseer.com:8888/prod-api', // H5地址(前端运行地址)
// hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
websocketUrl: '', // websocket服务端地址
weixinAppId: '' ,// 微信公众号appid
codeHeadUrl:"",
......@@ -15,12 +15,12 @@ const CONFIG = {
},
// 生产环境配置
production: {
// assetsPath: 'http://coujiao.pseer.com:8888/wechat_static', // 静态资源路径
assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
// baseUrl: 'https://coujiao.pseer.com/front-api', // 后台接口请求地址
baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
// hostUrl: 'https://coujiao.pseer.com/prod-api', // H5地址(前端运行地址)
hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
assetsPath: 'http://coujiao.pseer.com:8888/wechat_static', // 静态资源路径
// assetsPath: 'https://www.coujio.com/wechat_static', // 静态资源路径
baseUrl: 'https://coujiao.pseer.com/front-api', // 后台接口请求地址
// baseUrl: 'https://www.coujio.com/front-api', // 后台接口请求地址
hostUrl: 'https://coujiao.pseer.com/prod-api', // H5地址(前端运行地址)
// hostUrl: 'https://www.coujio.com/prod-api', // H5地址(前端运行地址)
websocketUrl: '', // websocket服务端地址
weixinAppId: '', // 微信公众号appid
codeHeadUrl:"",
......
......@@ -47,9 +47,9 @@
<text class="text-gray">修改资料</text>
</view>
<!-- <view v-if="loginStatus" class="nav-right nav-right-2" @tap.stop="onNavToShare">
<view v-if="loginStatus" class="nav-right nav-right-2" @tap.stop="onNavToShare">
<text class="text-gray">邀请有礼</text>
</view> -->
</view>
</view>
<view class="remeber-info-box">
......@@ -236,14 +236,14 @@
</view>
</view>
<!-- <view v-if="userInfo.consumerMember && userInfo.consumerMember.isRights" class="item-box" @tap="onNavByPath('equityFundLog')">
<view v-if="userInfo.consumerMember && userInfo.consumerMember.isRights" class="item-box" @tap="onNavByPath('equityFundLog')">
<view class="icon-img">
<image :src="assetsPath+'/user/tool_4.png'" mode="scaleToFill"></image>
</view>
<view class="text-box">
<text class="text-gray">收益明细</text>
</view>
</view> -->
</view>
<view class="item-box" @tap="onNavByPath('payRecord')">
......@@ -294,14 +294,14 @@
<text class="text-gray">联系我们</text>
</view>
</view>
<!-- <view v-if="loginStatus" class="item-box" @tap="onShareByQrcode">
<view v-if="loginStatus" class="item-box" @tap="onShareByQrcode">
<view class="icon-img">
<image :src="assetsPath+'/user/tool_7.png'" mode="scaleToFill"></image>
</view>
<view class="text-box">
<text class="text-gray">二维码分享</text>
</view>
</view> -->
</view>
</view>
</view>
......
......@@ -39,7 +39,7 @@
<view class="part part-right" @tap="onTabChange(2)">
<image v-if="tabIndex ==2" :src="assetsPath+'/vip/btn_1_a.png'" class="active"
mode="widthFix"></image>
<image v-else :src="assetsPath+'/vip/btn_1_v1.png'" class="unactive" mode="widthFix">
<image v-else :src="assetsPath+'/vip/btn_1.png'" class="unactive" mode="widthFix">
</image>
</view>
</view>
......@@ -250,7 +250,6 @@
<button class="cu-btn bg-pink" open-type="getPhoneNumber" @getphonenumber="onGetPhoneNumber">
</button>
</view>
</view>
</view>
</uni-popup>
......@@ -520,12 +519,12 @@
this.onGetRechargeConf();
this.onLoading();
},
// onShareAppMessage() {
// return {
// title: "邀新注册并购买得返利",
// path: `/pages/vipCreate/vipCreate?uid=${this.userInfo.id}`
// }
// },
onShareAppMessage() {
return {
title: "邀新注册并购买得返利",
path: `/pages/vipCreate/vipCreate?uid=${this.userInfo.id}`
}
},
methods: {
onConfirmPay() {
if (this.tabIndex == 1) {
......@@ -616,7 +615,6 @@
})
},
onTabChange(val) {
return
if (this.tabIndex == val) return;
this.tabIndex = val;
this.checked = false;
......
......@@ -3,34 +3,29 @@
<view class="content-box">
<view class="list-content">
<view v-for="(item,index) in list" :key="index" class="list-item" @tap="onNavToOrderInfo(item)">
<view class="flex-between">
<text class="">支付金额</text>
<text class="text-bold text-pink text-lg">{{item.payPrice}}</text>
<text class="">获益金额</text>
<text class="text-pink text-bold text-lg">{{item.equityFund}}</text>
</view>
<view class="flex-between">
<text class="">购买期限</text>
<text class="text-black text-bold text-lg">一年</text>
</view>
<view class="flex-between">
<text class="">支付方式</text>
<text>{{payTypeEnum[item.payType]}}</text>
</view>
<view class="flex-between">
<text class="">订单编号</text>
<text class="text-black">{{item.equityOrderNo}}</text>
<text class="">获益方式</text>
<text class="text-black">{{equityFundTypeEnum[item.equityFundType]}}</text>
</view>
<view class="flex-between">
<text class="">操作日期</text>
<text>{{item.payTime}}</text>
<text class="">创建时间</text>
<text>{{item.createTime}}</text>
</view>
</view>
</view>
</view>
<view v-if="loginStatus && list.length == 0" class="empty-box">
<view v-if="list.length == 0" class="empty-box">
<u-empty text="暂无数据" textColor='#C1C1C1' width="120" :icon="listBlankImage">
</u-empty>
</view>
<view v-if="loginStatus && list.length" style="padding: 12px 6% 0;">
<view v-if="list.length" style="padding: 12px 6% 0;">
<u-loadmore :status="status" :icon="true" :line='true' :loading-text="loadingText"
:loadmore-text="loadmoreText" :nomore-text="nomoreText" />
</view>
......@@ -59,31 +54,14 @@
nomoreText: '到底啦',
statusIndex: 0,
list: [],
statusList: [{
label: "全部",
value: "",
},
{
label: "已预约",
value: "0",
},
{
label: "使用中",
value: "1",
},
{
label: "已完成",
value: "2",
},
{
label: "退单",
value: "3",
}
],
queryParams: {
pageNum: 1,
pageSize: 100,
id: uni.getStorageSync("userInfo").id
pageSize: 10
},
equityFundTypeEnum:{
0: "金额充值",
1: "权益购买"
},
orderStatusEnum: {},
payTypeEnum: {
......@@ -131,17 +109,29 @@
title: '加载中'
})
this.status = 'loading'
// this.queryParams.status = this.statusList[this.statusIndex].value;
equityFundLog(this.queryParams).then(res => {
console.log(res)
uni.hideLoading()
this.status = "nomore"
if (res.data.code == 200) {
this.list = res.data.data.map(item => {
let list = res.data.rows.map(item => {
return {
...item
}
})
if(this.queryParams.pageNum ===1){
this.list = list
}else{
this.list.push(...list);
}
if(this.list.length < res.data.total){
this.status = "loadmore"
}else{
this.status = "nomore"
}
} else if (res.data.code == 401) {
this.loginStatus = false
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment