wangxiaoping 4 years ago
parent 86d662b5d4
commit f6d94b3724

@ -76,6 +76,7 @@
}
this.reqByToken('/api/member/order-add', this.info, r => {
uni.showLoading({title: '加载中',mask:true});
uni.request({
url: this.baseUrl + '/api/member/order-payment',
method: 'GET',
@ -85,6 +86,7 @@
openid: this.openid
},
success: res => {
setTimeout(function () {uni.hideLoading();}, 100);
let payParams = JSON.parse(res.data.jsApiParameters)
payParams.provider = 'wxpay'
payParams.success = result => {

@ -5,8 +5,7 @@
<view class="h3">您已经购买成功</view>
<view class="p">请等待客户人员联系您</view>
</view>
<navigator url="../../../packageOrder/pages/myOrder/myOrder" open-type="switchTab"><view class="pinkBtn">我的订单</view></navigator>
<navigator url="../../../../pages/home/home" open-type="switchTab"><view class="pinkBtn">返回首页</view></navigator>
<view class="pinkBtn" @tap="goMyOrder"></view>
</view>
</template>
@ -20,7 +19,11 @@
},
methods: {
goMyOrder(){
uni.navigateTo({
url:"../../../packageOrder/pages/myOrder/myOrder"
})
}
}
}
</script>

@ -9,6 +9,7 @@
<view class="statusBox">
<text v-for="(item,index) in statusLabels" :key="index" @click="changeStatus(index)" :class="{cur: index == status}">{{item}}</text>
</view>
<view style="height:120rpx;"></view>
  <view class="orderCol" v-for="(item, index) in list" :key="item.id" @click="goDetail(item.id)">
<view class="title">
<view>{{item.order_name || '暂无'}}<!-- <text class="free">免费</text> --></view>
@ -87,6 +88,7 @@
},
getOrderList() {
const phone_token = uni.getStorageSync('phone_token')
uni.showLoading({title: '加载中',mask:true});
uni.request({
url: this.baseUrl + '/api/member/get-orders',
method: 'GET',
@ -96,6 +98,7 @@
token: phone_token.token
},
success: r => {
setTimeout(function () {uni.hideLoading();}, 100);
this.list = this.list.concat(r.data.data)
this.page++
}
@ -210,12 +213,15 @@
height:120rpx;
background: #fff;
display: flex;
paddind:0 30rpx;
padding:0 30rpx;
justify-content: space-around;
align-items: center;
align-content: center;
color:#666;
font-size:28rpx;
position: fixed;
left:0;
top:-1rpx;
text{display:block;width: 156rpx;height: 64rpx;background: #F0F0F0;border-radius: 32rpx;text-align: center;line-height:64rpx;}
.cur{background: #FF578A;color:#fff;}
}

@ -257,7 +257,7 @@
}
.myOrder{width:710rpx;background:rgba(255,255,255,1);border-radius: 16rpx;margin:30rpx auto 0 auto;}
.orderTab{
font-size: 32rpx;font-weight: 400;width:60%;margin-left:10rpx;padding:30rpx 30rpx 0 30rpx;
font-size: 34rpx;font-weight: 400;width:60%;margin-left:10rpx;padding:30rpx 30rpx 0 30rpx;
}
.segmented-control__item--text{border-color: rgba(255,255,255,0)!important;}
.segmented-control__text{color:#666666;}

Loading…
Cancel
Save