|
|
@@ -1,72 +1,61 @@
|
|
|
<template>
|
|
|
- <view class="app-content">
|
|
|
- <view class="billing_box_bg">
|
|
|
- <view class="top-view"> </view>
|
|
|
- <view class="result-view">
|
|
|
- <view class="iconfont iconchenggong"></view>
|
|
|
- <view class="result-title">报损成功</view>
|
|
|
- <button class="admin-button-com big blue" style="width:45vw;" @click="goBackHome">返回列表</button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-</template>
|
|
|
+<appResult :title="title">
|
|
|
+
|
|
|
+ <button class="admin-button-com big blue" @click="goDetail()">查看详情</button>
|
|
|
+ <button class="admin-button-com big blue" @click="goOn()">继续报损</button>
|
|
|
+ <button class="admin-button-com big" @click="goList()">报损记录</button>
|
|
|
+ <button class="admin-button-com big" @click="goBackHome">返回</button>
|
|
|
+
|
|
|
+ <!-- #ifdef MP-WEIXIN -->
|
|
|
+ <view style="width:688upx;height:20upx;background-color: #ece5e5;"></view>
|
|
|
+ <ad-custom unit-id="adunit-42a99bd9e25e3626" v-if="currentEnv=='production'" style="width:688upx;"></ad-custom>
|
|
|
+ <ad-custom unit-id="adunit-9523c840341ccb1f" v-else style="width:688upx;"></ad-custom>
|
|
|
+ <!-- #endif -->
|
|
|
|
|
|
+</appResult>
|
|
|
+
|
|
|
+</template>
|
|
|
<script>
|
|
|
+import appResult from "@/components/app-result"
|
|
|
+import { CURRENT_ENV } from "@/config"
|
|
|
export default {
|
|
|
- name: "success",
|
|
|
- methods: {
|
|
|
- goBackHome() {
|
|
|
- uni.navigateBack({})
|
|
|
- },
|
|
|
- init(){
|
|
|
- }
|
|
|
- }
|
|
|
+ name: "result",
|
|
|
+ components: {
|
|
|
+ appResult
|
|
|
+ },
|
|
|
+ mixins: [],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ title:'报损成功',
|
|
|
+ currentEnv:'production'
|
|
|
+ };
|
|
|
+ },
|
|
|
+ onLoad() {
|
|
|
+ //当前环境
|
|
|
+ this.currentEnv = CURRENT_ENV
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init() {
|
|
|
+ },
|
|
|
+ goDetail() {
|
|
|
+ let orderSn = this.option.orderSn?this.option.orderSn:''
|
|
|
+ this.$util.pageTo({url: "/admin/breakage/info?orderSn="+orderSn,type:2})
|
|
|
+ },
|
|
|
+ goOn(){
|
|
|
+ this.$util.pageTo({url: "/admin/breakage/index",type:2})
|
|
|
+ },
|
|
|
+ goList(){
|
|
|
+ this.$util.pageTo({url: "/admin/breakage/list",type:2})
|
|
|
+ },
|
|
|
+ goBackHome() {
|
|
|
+ uni.navigateBack({ delta: 1 });
|
|
|
+ }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
-.go-back{
|
|
|
- width: 80%;
|
|
|
- height: 80upx;
|
|
|
- color: #FFFFFF;
|
|
|
- margin-top: 50upx;
|
|
|
- background: #3385FF;
|
|
|
- border-radius: 10upx;
|
|
|
- font-size:30upx;
|
|
|
-}
|
|
|
-.billing_box_bg {
|
|
|
- position: relative;
|
|
|
- padding: 60upx 30upx;
|
|
|
- display: flex;
|
|
|
- background: white;
|
|
|
- flex-direction: column;
|
|
|
- background-color: #f5f5f5;
|
|
|
- .top-view {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
- height: 299upx;
|
|
|
- background: #3385ff;
|
|
|
- border-radius: 0upx 0upx 83upx 83upx;
|
|
|
- }
|
|
|
- .result-view {
|
|
|
- position: relative;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- padding: 70upx;
|
|
|
- width: 100%;
|
|
|
- background: #ffffff;
|
|
|
- border-radius: 20upx;
|
|
|
- z-index: 1;
|
|
|
- .iconchenggong {
|
|
|
- font-size: 170upx;
|
|
|
- color: $mainColor1;
|
|
|
- }
|
|
|
- .result-title {
|
|
|
- margin: 50upx 0 70upx;
|
|
|
- font-size: 32upx;
|
|
|
- }
|
|
|
- }
|
|
|
+.admin-button-com {
|
|
|
+ margin-bottom:30upx;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
</style>
|