第一次上传

This commit is contained in:
Ls
2026-03-09 16:39:03 +08:00
commit 3d9efaf15c
924 changed files with 326227 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<template>
<view>
112222
<view class="" v-if="props.show">
<qf-image-cropper :src="props.url" :width="props.width" :height="props.height" :radius="20"
@crop="handleCrop"></qf-image-cropper>
</view>
</view>
</template>
<script setup lang="ts">
import { ref, watch } from 'vue';
import { onBeforeUnmount, onMounted, reactive } from 'vue';
import { Service } from '@/Service/Service'
// const props = defineProps({
// show : string,
// // url : string,
// // width : number,
// // height:number,
// // upType:string,
// // retFun:Function
// });
let props = defineProps(["show","url",'width','height','upType',"retFun","imgName"]);
onMounted(() => {
});
const handleCrop = (e) => {
let arr = e.tempFilePath.split('.')
let name = arr[arr.length - 1]
Service.UpLoadMedia(props.upType, name, '', e.tempFilePath).then(rest => {
if (rest.code == 0) {
uni.showToast({
title: rest.msg,
icon: 'none'
})
props.retFun( {name:props.imgName,url:rest.data.file})
} else {
uni.showToast({
title: rest.msg,
icon: 'none'
})
}
})
}
</script>
<style>
</style>

View File

@@ -0,0 +1,64 @@
import { Service } from '@/Service/Service';
/*****用户*****/
class vpUserService {
private static GetUserInfoPath : string = '/User/GetUserInfo';
/*****获取用户信息*****/
static GetUserInfo() {
var result = Service.Request(this.GetUserInfoPath, 'GET', {});
return result;
}
private static GetUserAccInfoPath : string = '/User/GetUserAccInfo';
/*****获取用户账户信息*****/
static GetUserAccInfo(page : number) {
var result = Service.Request(this.GetUserAccInfoPath, 'GET', { page });
return result;
}
private static UpdateUserPath : string = '/User/UpdateUser';
/*****修改用户信息*****/
static UpdateUser(headImg:string,nick:string,sex:string,phone:string) {
var result = Service.Request(this.UpdateUserPath, 'POST', { headImg,nick,sex,phone });
return result;
}
private static PayMerchPath : string = '/Order/PayMerch';
/*****支付*****/
static PayMerch(merchId:string,amount:number,payway:string,openId:string) {
var result = Service.Request(this.PayMerchPath, 'POST', { merchId,amount,payway,openId });
return result;
}
private static GetShareEwmPath : string = '/User/GetShareEwm';
/*****获取用户二维码*****/
static GetShareEwm() {
var result = Service.Request(this.GetShareEwmPath, 'GET', { });
return result;
}
private static GetAddressInfoPath : string = '/User/GetAddressInfo';
/*****根据经纬度获取地址*****/
static GetAddressInfo(lon:number,lat:number) {
var result = Service.Request(this.GetAddressInfoPath, 'GET', {lon ,lat});
return result;
}
private static CollectMerchPath : string = '/User/CollectMerch';
/*****用户收藏*****/
static CollectMerch(merchId:string) {
var result = Service.Request(this.CollectMerchPath, 'POST', {merchId});
return result;
}
private static GetUserCollectListPath : string = '/User/GetUserCollectList';
/*****用户收藏列表*****/
static GetUserCollectList(lon:Number,lat:Number,page:number) {
var result = Service.Request(this.GetUserCollectListPath, 'POST', {lon,lat,page});
return result;
}
}
export { Service, vpUserService };

View File

@@ -0,0 +1,371 @@
{
"easycom": {
// 注意一定要放在custom里否则无效https://ask.dcloud.net.cn/question/131175
"custom": {
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue"
}
},
"pages": [ //pages数组中第一项表示应用启动页参考https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页",
"navigationBarBackgroundColor": "#36394D",
"navigationStyle": "custom",
"backgroundColor": "#F8F8F8"
}
},
{
"path": "pages/index/community",
"style": {
"navigationBarTitleText": "社区",
"navigationStyle": "custom"
}
},
{
"path": "pages/index/user",
"style": {
"navigationBarTitleText": "我的",
"navigationStyle": "custom"
}
},
{
"path" : "pages/index/shop",
"style" :
{
"navigationBarTitleText" : "积分商城"
}
},
{
"path" : "pages/index/order",
"style" :
{
"navigationBarTitleText" : "我的订单"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "v派商家",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#F8F8F8"
},
"subPackages": [{
"root": "pages/community",
"pages": [{
"path": "noticeList",
"style": {
"navigationBarTitleText": "社区公告"
}
},
{
"path": "merchantCom",
"style": {
"navigationBarTitleText": "社区商家"
}
},
{
"path" : "merchantDetail",
"style" :
{
"navigationBarTitleText" : "美食小店"
}
}
]
},
{
"root": "pages/goods",
"pages": [
{
"path": "integralGoods",
"style": {
"navigationBarTitleText": "积分商品"
}
},
{
"path": "merchant",
"style": {
"navigationBarTitleText": "热门商家"
}
},
{
"path" : "goodsDetail",
"style" :
{
"navigationBarTitleText" : "商品详情"
}
},
{
"path" : "goodsContro",
"style" :
{
"navigationBarTitleText" : "商品管理"
}
},
{
"path" : "addGoods",
"style" :
{
"navigationBarTitleText" : "添加商品"
}
},
{
"path" : "Pay",
"style" :
{
"navigationBarTitleText" : "付款"
}
},
{
"path": "goodsPay",
"style": {
"navigationBarTitleText": "积分订单"
}
},
{
"path" : "search",
"style" :
{
"navigationBarTitleText" : "搜索",
"navigationStyle": "custom"
}
},
{
"path" : "goodsClass",
"style" :
{
"navigationBarTitleText" : "分类",
"navigationStyle": "custom"
}
}
]
},
{
"root": "pages/article",
"pages": [{
"path": "articleCom",
"style": {
"navigationBarTitleText": "社区公告"
}
},
{
"path": "newsList",
"style": {
"navigationBarTitleText": "新闻公告"
}
},
{
"path": "news",
"style": {
"navigationBarTitleText": "新闻详情"
}
}
]
}, {
"root": "pages/userFunc",
"pages": [{
"path" : "setData",
"style" :
{
"navigationBarTitleText" : "编辑资料"
}
},
{
"path" : "integration",
"style" :
{
"navigationBarTitleText" : "积分明细",
"navigationStyle": "custom"
}
},
{
"path" : "trade",
"style" :
{
"navigationBarTitleText" : "交易记录"
}
},
{
"path" : "editStore",
"style" :
{
"navigationBarTitleText" : "编辑店铺"
}
},
{
"path" : "statistics",
"style" :
{
"navigationBarTitleText" : "数据统计"
}
},
{
"path" : "set",
"style" :
{
"navigationBarTitleText" : "设置",
"navigationStyle": "custom"
}
},
{
"path" : "bind",
"style" :
{
"navigationBarTitleText" : "绑定手机号"
}
},
{
"path" : "password",
"style" :
{
"navigationBarTitleText" : "修改支付密码"
}
},
{
"path" : "storeInter",
"style" :
{
"navigationBarTitleText" : "积分明细"
}
},
{
"path" : "withdrow",
"style" :
{
"navigationBarTitleText" : "提现"
}
},
{
"path" : "vip",
"style" :
{
"navigationBarTitleText" : "会员码",
"navigationStyle": "custom"
}
},
{
"path" : "promoteCode",
"style" :
{
"navigationBarTitleText" : "推广码"
}
},
{
"path" : "addressList",
"style" :
{
"navigationBarTitleText" : "收货地址"
}
},
{
"path" : "addAddress",
"style" :
{
"navigationBarTitleText" : "添加地址"
}
},
{
"path": "alliance-card",
"style": {
"navigationBarTitleText": "我的联盟卡",
"navigationStyle": "custom"
}
},
{
"path": "member-benefits",
"style": {
"navigationBarTitleText": "会员权益",
"navigationStyle": "custom"
}
},
{
"path": "promotion",
"style": {
"navigationBarTitleText": "我的推广",
"navigationStyle": "custom"
}
},
{
"path": "invite",
"style": {
"navigationBarTitleText": "邀请好友",
"navigationStyle": "custom"
}
},
{
"path": "feedback",
"style": {
"navigationBarTitleText": "意见反馈",
"navigationStyle": "custom"
}
},
{
"path": "about-us",
"style": {
"navigationBarTitleText": "关于我们",
"navigationStyle": "custom"
}
},
{
"path": "coupon",
"style": {
"navigationBarTitleText": "优惠券",
"navigationStyle": "custom"
}
},
{
"path": "favorites",
"style": {
"navigationBarTitleText": "我的收藏",
"navigationStyle": "custom"
}
}
]
}
],
"tabBar": {
"color": "#8a8a8a",
"selectedColor": "#EC754B",
"backgroundColor": "#ffffff",
"list": [{
"text": "首页",
"pagePath": "pages/index/index",
"iconPath": "/static/tabBar/home.png",
"selectedIconPath": "/static/tabBar/homed.png"
},
// {
// "text": "社区",
// "pagePath": "pages/index/community",
// "iconPath": "/static/tabBar/community.png",
// "selectedIconPath": "/static/tabBar/communityed.png"
// }
// ,
// {
// "text": "积分商城",
// "pagePath": "pages/index/shop",
// "iconPath": "/static/tabBar/shop.png",
// "selectedIconPath": "/static/tabBar/shoped.png"
// },
{
"text": "我的订单",
"pagePath": "pages/index/order",
"iconPath": "/static/tabBar/shop.png",
"selectedIconPath": "/static/tabBar/shoped.png"
},
{
"text": "个人中心",
"pagePath": "pages/index/user",
"iconPath": "/static/tabBar/user.png",
"selectedIconPath": "/static/tabBar/usered.png"
}]
}
}