多个bug修改

This commit is contained in:
丁杰 2026-04-09 16:10:17 +08:00
parent e4b7646da9
commit 35dca559d3
9 changed files with 2615 additions and 2587 deletions

View File

@ -7,8 +7,8 @@
"type" : "uni-app:app-ios"
},
{
"customPlaygroundType" : "device",
"playground" : "standard",
"customPlaygroundType" : "local",
"playground" : "custom",
"type" : "uni-app:app-android"
}
]

View File

@ -3,7 +3,7 @@
"apps": [],
"details": [
{
"appID": "wx5b1c0c8d01ded35d",
"appID": "wx17eef65c270b4869",
"paths": ["*"]
}
]

View File

@ -107,7 +107,7 @@
"payment" : {
"weixin" : {
"__platform__" : [ "ios", "android" ],
"appid" : "wx2381a791a52a402d",
"appid" : "wx17eef65c270b4869",
"UniversalLinks" : "https://app.mrrweb.com.cn/"
},
"appleiap" : {},
@ -117,7 +117,7 @@
},
"share" : {
"weixin" : {
"appid" : "wx2381a791a52a402d",
"appid" : "wx17eef65c270b4869",
"UniversalLinks" : "https://app.mrrweb.com.cn/"
}
},
@ -134,7 +134,7 @@
},
"oauth" : {
"weixin" : {
"appid" : "wx2381a791a52a402d",
"appid" : "wx17eef65c270b4869",
"UniversalLinks" : "https://app.mrrweb.com.cn/"
}
}
@ -197,7 +197,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wxb486b10a60d2c78d",
"appid" : "wx17eef65c270b4869",
"privacy" : {
"requiredPrivateInfos" : [ "getBackgroundFetchData" ]
},

View File

@ -868,6 +868,16 @@
} else {
url = "/user/serverupdate";
}
console.log(this.formData, '-0-0-0-0-0-');
delete this.formData.shop_business_time
delete this.formData.shop_head_photo
delete this.formData.shop_address
delete this.formData.shop_dependency
delete this.formData.shop_class
delete this.formData.team_buy
request.post(url, this.formData).then((res) => {
if (res.state == 1) {
const pages = getCurrentPages();

View File

@ -226,10 +226,11 @@
console.log("wechatpayfor", wechatpayfor);
const systemInfo = uni.getSystemInfoSync();
if (systemInfo.platform === "ios") {
let appId = wechatpayfor.data.appid;
delete wechatpayfor.data.appid;
let appId = wechatpayfor.data.appId;
// delete wechatpayfor.data.appid;
wechatpayfor.data["appId"] = appId;
console.log("wechatpayfor2", wechatpayfor);
console.log(that.orderInfo, 'that.orderInfothat.orderInfo');
}
console.log("================================");
uni.hideLoading();
@ -267,6 +268,7 @@
});
},
fail: function(err) {
console.log(err,'erererererer');
uni.showModal({
title: "提示",
content: "该订单未成功支付",
@ -545,7 +547,7 @@
.pay-btn {
width: 680rpx;
height: 88rpx;
background: linear-gradient( 180deg, #F52540 0%, #E8101E 100%);
background: linear-gradient(180deg, #F52540 0%, #E8101E 100%);
border-radius: 43rpx;
font-weight: 500;
font-size: 30rpx;

View File

@ -369,6 +369,7 @@
uni.showLoading({
title: '上传中'
})
console.log(this.formData,'=============================');
if (this.formData.type == 1) {
res = await uploadImage.handleUpload(this.userInfo.id, 3);
} else {

View File

@ -9,13 +9,14 @@
</view>
<view class="titles-right">
<text class="titles-text">展示位置及拍摄技巧</text>
<image src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/b153e8d5-37b1-4205-a4a1-9f6603f30c2a.png" mode="widthFix" style="width: 24rpx;margin-top: 2rpx;margin-left: 6rpx;"></image>
</view>
</view>
<view class="container-card" v-for="(item,index) in cardList[type]" :key="index">
<view class="card-header flex-row-center-between">
<text class="card-title">{{ item.title }}</text>
<view class="card-header-right" @click="goList(item.id)">
<text class="card-header-right-text">查看详情</text>
<text class="card-header-right-text">查看全部</text>
<image class="card-header-right-img" src="/static/images/icons/right_gray14.png"></image>
</view>
</view>
@ -142,6 +143,7 @@
return obj
},
goList(id) {
console.log(id,'ididididididi');
uni.navigateTo({
url: `/pages/shop/photoAlbum/videoList?id=${id}&type=${this.type}`
});
@ -156,7 +158,7 @@
},
goAdd(id, item) {
if (this.type == 1) {
if ( this.imgVideoList[id] && this.imgVideoList[id].length >= 20) {
if ( this.imgVideoList[id] && this.imgVideoList[id].length >= 21) {
uni.showToast({
title: '最多上传20张图片',
icon: 'none',
@ -255,6 +257,7 @@
}
.titles-right {
display: flex;
.titles-text {
font-family: PingFangSC, PingFang SC;
font-weight: 400;

View File

@ -1,6 +1,6 @@
<template>
<view class="container">
<custom-navbar title="店铺图片" :leftImg="'/static/images/back.png'" :showUser="true" backgroundColor="#fff"
<custom-navbar :title="pagestitle" :leftImg="'/static/images/back.png'" :showUser="true" backgroundColor="#fff"
titleColor="#000" borderBottom="none">
<template #right>
<text class="custom-right" @click="toggleManage">{{ isManage ? '取消' : '管理' }}</text>
@ -8,13 +8,13 @@
</custom-navbar>
<view class="review">
<view class="review-title">
<text class="review-title-text">添加环境图片吸引更多顾客到店消费</text>
<text class="review-title-text">添加{{pagestitle}}吸引更多顾客到店消费</text>
</view>
</view>
<view class="container-card">
<view class="card-content flex-row-center" v-if="type==1">
<view class="card-content-page">{{ imgVideoList.length }}/20</view>
<view class="card-content-page" v-if="class_type!=1">{{ imgVideoList.length }}/20</view>
<view class="content-default" @click="goAdd(class_type)"
v-if="!(class_type == 1 && imgVideoList && imgVideoList.length)">
<image class="content-default-img" src="/static/images/icons/addPhoto.png"></image>
@ -84,18 +84,29 @@
type: 2, //1 2
class_type: 4, //1(/) 2(/) 3(/) 4(/)
isManage: false, //
selectedItems: [] //
selectedItems: [], //
pagestitle: "店铺图片"
}
},
async onShow() {
await this.getList()
},
async onLoad(options) {
console.log(options, '查看option');
if (options.type) {
this.type = options.type
}
if (options.id) {
this.class_type = options.id
if (this.class_type == 2) {
this.pagestitle = "环境图片"
} else if (this.class_type == 3) {
this.pagestitle = "作品图片"
} else if (this.class_type == 4) {
this.pagestitle = "其它图片"
} else {
this.pagestitle = "店铺图片"
}
}
},
methods: {
@ -210,8 +221,7 @@
});
// + 访
this.imgVideoList = res.code === 200 ?
res.data?.list?.[this.type]?.[this.class_type] || [] :
[];
res.data?.list?.[this.type]?.[this.class_type] || [] : [];
} catch (err) {
//
console.error("获取媒体列表失败:", err);

View File

@ -173,7 +173,7 @@ const uploadFile = async (file, userId, type, uploadType) => {
let imageType;
if (uploadType == 'image') {
//imageType = file.path.split('.')
imageType = file.name.split('.')
imageType = file.path.split('.')
} else if (uploadType == 'video') {
// #ifdef H5
imageType = file.name.split('.')
@ -252,7 +252,9 @@ const uploadToOss = (file, ossConfig, name, uploadType) => {
if (uploadType == 'image') {
path = file.path
// 获取文件扩展名并设置 Content-Type
console.log('111111');
const ext = file.path.split('.').pop().toLowerCase()
console.log('33333333');
const mimeTypes = {
jpg: 'image/jpeg',
jpeg: 'image/jpeg',