DaMowang 2 éve
szülő
commit
76899fbe8b

+ 6 - 0
src/pages.json

@@ -278,6 +278,12 @@
 						"navigationBarTitleText": "订单详情"
 					}
 				},
+				{
+					"path": "orderingfood/incomeExpenses",
+					"style": {
+						"navigationBarTitleText": "收支明细"
+					}
+				},
 				{
 					"path": "cinema/cinemaList",
 					"style": {

+ 4 - 0
src/pages/my/index.vue

@@ -164,6 +164,10 @@
             <image class="fun_img" src="/static/my/upgrade.png" mode=""></image>
             <view class="fun_text">激活升级</view>
           </navigator>
+          <!-- <navigator class="fun_list flex_c flex_ac" url="/pagesB/orderingfood/incomeExpenses" hover-class="none">
+            <image class="fun_img" src="/static/my/detail.png" mode=""></image>
+            <view class="fun_text">收支明细</view>
+          </navigator> -->
           <!-- <navigator class="fun_list flex_c flex_ac" @click="getToCash('local')" hover-class="none">
             <image class="fun_img" src="/static/my/deposit.png" mode=""></image>
             <view class="fun_text">提现</view>

+ 1 - 1
src/pagesB/cinema/choiceMovie.vue

@@ -130,7 +130,7 @@ export default {
             let name = this.cinemaInfo.restaurant_name;
             let address = this.cinemaInfo.restaurant_address;
             uni.openLocation({
-                latitude, longitude, scale: 5, name, address,
+                latitude, longitude, scale: 18, name, address,
                 success: function () {
                     console.log('success');
                 }

+ 100 - 0
src/pagesB/orderingfood/incomeExpenses.vue

@@ -0,0 +1,100 @@
+<template>
+    <div class="incomeExpenses">
+        <div class="head_card">
+            <div class="property">余额:{{local_uinfo.property}}</div>
+        </div>
+        <div class="detailList" v-if="List.length">
+            <div class="li" v-for="(i,s) in List" :key="s">
+                <p class="flex_r flex_jb">
+                    <span class="s1">{{ i.remark }}</span>
+                    <span class="s2">{{ parseFloat(i.money).toFixed(2) }}</span>
+                </p>
+                <p class="flex_r flex_jb">
+                    <span class="s3">{{ i.create_time }}</span>
+                </p>
+            </div>
+        </div>
+        <div class="zanwu" v-else>
+            <img src="http://teaclub.oss-cn-chengdu.aliyuncs.com/CloudShop/head_pic/5a3c6b1e2d098aa6695394c927c38586545188b8png" alt="" class="zanwuimg">
+            <view class="zanwutxt">暂无收支记录</view>
+        </div>
+    </div>
+</template>
+<script>
+import { post } from "@/request/api.js";
+export default {
+    name: "incomeExpenses",
+    props: {},
+    components: {},
+    data() {
+        return {
+            List: [],
+            Query: {
+                page: 1,
+                rows: 20
+            },
+            local_uinfo: {},
+        };
+    },
+    methods: {
+        async getLU() {
+            this.local_uinfo = await uni.Luserfun()
+        },
+        getList() {
+            post("local/revenue").then(res => {
+                if (res.code == 0) {
+                    let list = res.data.data;
+                    this.List = [...this.List, ...list]
+                    this.Query.page++
+                }
+            })
+        },
+    },
+    onLoad(da) {
+        this.getList();
+        this.getLU();
+    },
+    onShow() {},
+    mounted() {},
+    onReachBottom() {
+        if (this.Query.page < this.merchant.last_page) this.getlists();
+    },
+};
+</script>
+<style scoped lang='scss'>
+.incomeExpenses{
+    min-height: 100vh;
+    background-color: #fff;
+}
+.head_card {
+    background-color: #d3aa79;
+    padding: 30rpx;
+    margin-bottom: 20rpx;
+
+    .property {
+        color: #fff;
+    }
+}
+.detailList{
+    .li{
+        padding: 22rpx 30rpx;
+        border-bottom: 1px solid rgba($color: #d3aa79, $alpha: 0.3);
+        p{
+            margin-bottom: 8rpx;
+            font-size: 30rpx;
+            &:last-child{
+                margin-bottom: 0;
+                font-size: 25rpx;
+                color: #999;
+            }
+        }
+        .s2{
+            font-weight: bold;
+            &::before{
+                content: "¥";
+                font-size: 25rpx;
+            }
+        }
+    }
+}
+</style>

+ 1 - 5
src/pagesB/orderingfood/orderingfood.vue

@@ -583,11 +583,7 @@ export default {
             let name = this.MerchantInfo.brand_name;
             let address = this.MerchantInfo.restaurant_address;
             uni.openLocation({
-                latitude,
-                longitude,
-                scale: 18,
-                name,
-                address,
+                latitude, longitude, scale: 18, name, address,
                 success: function() {
                     console.log('success');
                 }

BIN
src/static/my/detail.png


BIN
src/static/my/l_group.png


BIN
src/static/my/order_history.png


BIN
src/static/my/upgrade.png