Commit f11c0c9f by zhangzhen

细节优化

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