Compare commits
2 Commits
9f1ff579ce
...
7afdf38b93
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7afdf38b93 | ||
|
|
06e95df676 |
@@ -10,8 +10,8 @@ import router from '../router'
|
||||
|
||||
// 基础配置
|
||||
const config = {
|
||||
// apiUrl : 'https://douhuo.douhuofalv.com/api/',
|
||||
apiUrl : 'https://douhuo.demos.uzchain.tech/api/', //测试环境
|
||||
apiUrl : 'https://douhuo.douhuofalv.com/api/',
|
||||
// apiUrl : 'https://douhuo.demos.uzchain.tech/api/', //测试环境
|
||||
timeout : 60000
|
||||
}
|
||||
|
||||
|
||||
@@ -216,6 +216,16 @@ const orderLog = (id, page) => {
|
||||
})
|
||||
}
|
||||
|
||||
// 通用订单详情
|
||||
const unifyInfo = data => {
|
||||
return request({
|
||||
url : 'unify/order/info',
|
||||
method : 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 支付订单
|
||||
export {
|
||||
lists,
|
||||
@@ -243,5 +253,6 @@ export {
|
||||
getConfirmSchemeInfo,
|
||||
sbuConfirmScheme,
|
||||
orderCancel,
|
||||
orderLog
|
||||
orderLog,
|
||||
unifyInfo
|
||||
}
|
||||
|
||||
28
main.js
28
main.js
@@ -1,26 +1,10 @@
|
||||
import App from './App'
|
||||
|
||||
import Vue from 'vue'
|
||||
import uView from "uview-ui";
|
||||
|
||||
import store from './store'
|
||||
import { router, RouterMount } from 'router'
|
||||
import Mylink from './node_modules/uni-simple-router/dist/link.vue'
|
||||
Vue.config.productionTip = false
|
||||
|
||||
import { INIT } from './im/INIT'
|
||||
|
||||
// (async () => {
|
||||
Vue.component('my-link', Mylink)
|
||||
Vue.use(uView)
|
||||
Vue.use(router)
|
||||
|
||||
// await INIT();
|
||||
|
||||
Vue.config.productionTip = false
|
||||
App.mpType = 'app'
|
||||
const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
})
|
||||
app.$mount()
|
||||
// })()
|
||||
App.mpType = 'app'
|
||||
const app = new Vue({
|
||||
...App
|
||||
})
|
||||
app.$mount()
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
"name" : "抖火法律",
|
||||
"appid" : "__UNI__C305C03",
|
||||
"description" : "纵有疾风起,人生不言弃",
|
||||
"versionName" : "1.6.4",
|
||||
"versionCode" : 1064,
|
||||
"versionName" : "1.6.5",
|
||||
"versionCode" : 1065,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
|
||||
10
pages.json
10
pages.json
@@ -929,6 +929,16 @@
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/orderInfo/orderInfo",
|
||||
"name" : "OrderInfo",
|
||||
"style" : {
|
||||
"navigationBarTitleText" : "",
|
||||
"enablePullDownRefresh" : false,
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarBackgroundColor": "#353ef4"
|
||||
}
|
||||
}],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
|
||||
122
pages/orderInfo/orderInfo.vue
Normal file
122
pages/orderInfo/orderInfo.vue
Normal file
@@ -0,0 +1,122 @@
|
||||
|
||||
<template>
|
||||
<view class="info-content">
|
||||
<view class="block">
|
||||
<view class="block-item">
|
||||
<view class="block-item-flex" v-for="(item, index) in objArr" :key="index">
|
||||
<label>{{item.name}}</label>
|
||||
<view class="val">{{item.value}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { unifyInfo } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
objArr: []
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
unifyInfo({
|
||||
order_type : this.$Route.query.orderType.replace(/\-/g, '\\'),
|
||||
order_id : this.$Route.query.id
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
this.objArr = res;
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.info-content{
|
||||
position: relative;
|
||||
background: #eeefff;
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 10rpx;
|
||||
padding-top: 30rpx;
|
||||
&::before{
|
||||
background-image: linear-gradient(180deg, #353ef4 10%, #eeefff);
|
||||
height: 50vh;
|
||||
content: " ";
|
||||
width: 100vw;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
// 模块
|
||||
.block{
|
||||
background: white;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin: 0 40rpx 30rpx;
|
||||
border-radius: 20rpx;
|
||||
.block-header{
|
||||
padding: 32rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.title{
|
||||
width: calc(100% - 200rpx);
|
||||
text{
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: gray;
|
||||
}
|
||||
view{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
line-height: 50rpx;
|
||||
@extend .nowrap;
|
||||
}
|
||||
}
|
||||
.price{
|
||||
text-align: right;
|
||||
width: 200rpx;
|
||||
padding-left: 20rpx;
|
||||
text{
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: gray;
|
||||
}
|
||||
view{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #353ef4;
|
||||
line-height: 50rpx;
|
||||
@extend .nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
.block-item{
|
||||
padding: 32rpx;
|
||||
.block-item-flex{
|
||||
padding: 20rpx 0;
|
||||
font-size: 30rpx;
|
||||
display: flex;
|
||||
color: #555;
|
||||
justify-content: space-between;
|
||||
label{ width: 240rpx; }
|
||||
.val{
|
||||
text-align: right;
|
||||
width: calc(100% - 240rpx);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view>
|
||||
<view>
|
||||
<view class="user-info">
|
||||
<block v-if="isAuth">
|
||||
<view class="user-info-left">
|
||||
@@ -42,7 +42,7 @@
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="nav-flex" @click="onNav('AccountIntegral')">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_00.png"></image>火力值
|
||||
@@ -325,6 +325,22 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
// 识别产品
|
||||
onPhone(e){
|
||||
uni.chooseImage({
|
||||
crop : {
|
||||
quality : 100,
|
||||
width : 300,
|
||||
height : 300,
|
||||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
},
|
||||
fail : err => {
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 生成海报地址
|
||||
qrcodePath(path){
|
||||
uni.hideLoading()
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
<view class="btns">
|
||||
<view class="btns-item border" v-if="item.can.cancel" @click="onCancel(item)">取消订单</view>
|
||||
<view class="btns-item" v-if="item.can.pay" @click="onPay(item)">立即支付</view>
|
||||
<view class="btns-item" v-if="item.can.look" @click="onInfo(item)">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -155,6 +156,16 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
// 订单详情
|
||||
onInfo(obj){
|
||||
this.$Router.push({
|
||||
name : 'OrderInfo',
|
||||
params : {
|
||||
id : obj.order_id,
|
||||
orderType : obj.order_type.replace(/\\/g, '-')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
<view class="btns">
|
||||
<view class="btns-item border" v-if="item.can.cancel" @click="onCancel(item)">取消订单</view>
|
||||
<view class="btns-item" v-if="item.can.pay" @click="onPay(item)">立即支付</view>
|
||||
<view class="btns-item" v-if="item.can.look" @click="onInfo(item)">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -156,6 +157,16 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
// 订单详情
|
||||
onInfo(obj){
|
||||
this.$Router.push({
|
||||
name : 'OrderInfo',
|
||||
params : {
|
||||
id : obj.order_id,
|
||||
orderType : obj.order_type.replace(/\\/g, '-')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
<view class="btns">
|
||||
<view class="btns-item border" v-if="item.can.cancel" @click="onCancel(item)">取消订单</view>
|
||||
<view class="btns-item" v-if="item.can.pay" @click="onPay(item)">立即支付</view>
|
||||
<view class="btns-item" v-if="item.can.look" @click="onInfo(item)">查看详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -155,6 +156,16 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
// 订单详情
|
||||
onInfo(obj){
|
||||
this.$Router.push({
|
||||
name : 'OrderInfo',
|
||||
params : {
|
||||
id : obj.order_id,
|
||||
orderType : obj.order_type.replace(/\\/g, '-')
|
||||
}
|
||||
})
|
||||
},
|
||||
// 复制订单号码
|
||||
copyNo(no){
|
||||
uni.setClipboardData({
|
||||
|
||||
@@ -73,7 +73,6 @@
|
||||
</view>
|
||||
<view class="flex-btn">去查看</view>
|
||||
</view>
|
||||
|
||||
<view class="flex-item" @click="onNav('AccountWork')">
|
||||
<image class="flex-icon" src="/static/icons/work_icon_30.png" mode="aspectFill"></image>
|
||||
<view class="flex-title">
|
||||
|
||||
Reference in New Issue
Block a user