diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index d43c75c..38b0b25 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -2,12 +2,13 @@
"version" : "1.0",
"configurations" : [
{
+ "customPlaygroundType" : "local",
"playground" : "custom",
"type" : "uni-app:app-ios"
},
{
- "customPlaygroundType" : "device",
- "playground" : "standard",
+ "customPlaygroundType" : "local",
+ "playground" : "custom",
"type" : "uni-app:app-android"
}
]
diff --git a/manifest.json b/manifest.json
index 353ace4..5e15f3a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"name" : "美融融商家",
"appid" : "__UNI__BBE6285",
"description" : "同城便捷到家美业“技术外卖”服务、同城预约到店服务平台美融融为同城爱美人群提供更优质的更全面的服务。",
- "versionName" : "1.0.05",
+ "versionName" : "1.0.06",
"versionCode" : 1005,
"transformPx" : false,
/* 5+App特有相关 */
@@ -197,6 +197,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
+ "appid" : "wx17eef65c270b4869",
"appid" : "wx17eef65c270b4869",
"privacy" : {
"requiredPrivateInfos" : [ "getBackgroundFetchData" ]
diff --git a/pages/shop/add-service.vue b/pages/shop/add-service.vue
index 3d7e403..3e7c7d9 100644
--- a/pages/shop/add-service.vue
+++ b/pages/shop/add-service.vue
@@ -391,9 +391,9 @@
}
// 判断是否显示上门提醒弹窗
const notShow = uni.getStorageSync('addServiceReminderNotShow');
- if (!notShow) {
- this.showReminderPopup = true;
- }
+ // if (!notShow) {
+ // this.showReminderPopup = true;
+ // }
this.getUserInfo();
},
computed: {
@@ -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();
diff --git a/pages/shop/pay.vue b/pages/shop/pay.vue
index 5d91056..9d76ba8 100644
--- a/pages/shop/pay.vue
+++ b/pages/shop/pay.vue
@@ -1,601 +1,603 @@
-
-
-
-
-
-
-
-
-
- ¥
- {{ orderInfo.pay_money }}
-
- 支付剩余时间:
-
-
-
-
-
-
- 选择支付方式
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/shop/photoAlbum/addPhoto.vue b/pages/shop/photoAlbum/addPhoto.vue
index a5df658..07c5c77 100644
--- a/pages/shop/photoAlbum/addPhoto.vue
+++ b/pages/shop/photoAlbum/addPhoto.vue
@@ -232,11 +232,32 @@
async submitPhoto() {
// 1. 防连点核心逻辑:如果正在提交中,直接return阻止后续执行
if (this.isSubmitting) return;
-
+ console.log(this.formData,'this.formData');
// 2. 表单必填项校验:校验图片和名称是否填写
if (!this.formData.url) {
+ if(this.formData.type==1){
+ if(this.formData.class_type==1){
+ uni.showToast({
+ title: '请先上传店铺主图',
+ icon: 'none',
+ duration: 2000
+ });
+ }else if(this.formData.class_type==2){
+ uni.showToast({
+ title: '请先上传环境图片',
+ icon: 'none',
+ duration: 2000
+ });
+ }else if(this.formData.class_type==3){
+ uni.showToast({
+ title: '请先上传作品图片',
+ icon: 'none',
+ duration: 2000
+ });
+ }
+ }
uni.showToast({
- title: '请先上传店铺主图',
+ title: '请先上传图片/视频',
icon: 'none',
duration: 2000
});
@@ -369,6 +390,7 @@
uni.showLoading({
title: '上传中'
})
+ console.log(this.formData,'=============================');
if (this.formData.type == 1) {
res = await uploadImage.handleUpload(this.userInfo.id, 3);
} else {
diff --git a/pages/shop/photoAlbum/photoManage.vue b/pages/shop/photoAlbum/photoManage.vue
index a4c4be1..b8ca90d 100644
--- a/pages/shop/photoAlbum/photoManage.vue
+++ b/pages/shop/photoAlbum/photoManage.vue
@@ -1,6 +1,6 @@
-
@@ -9,13 +9,14 @@
展示位置及拍摄技巧
+
@@ -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;
diff --git a/pages/shop/photoAlbum/videoList.vue b/pages/shop/photoAlbum/videoList.vue
index ed4a153..dfc18d2 100644
--- a/pages/shop/photoAlbum/videoList.vue
+++ b/pages/shop/photoAlbum/videoList.vue
@@ -1,486 +1,506 @@
-
-
-
-
- {{ isManage ? '取消' : '管理' }}
-
-
-
-
- 添加环境图片,吸引更多顾客到店消费
-
-
-
-
-
- {{ imgVideoList.length }}/20张
-
-
- 添加照片
-
-
-
-
-
-
-
- {{ getItem(item2).name }}
-
-
-
- 审核中…
-
-
-
-
- {{ imgVideoList.length }}/10张
-
-
- 添加视频
-
-
-
-
-
-
-
- {{ getItem(item2).name }}
-
-
-
-
-
-
-
- 审核中…
-
-
-
- 已驳回
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/utils/albumUploadImage.js b/utils/albumUploadImage.js
index 8ff14bc..2f17212 100644
--- a/utils/albumUploadImage.js
+++ b/utils/albumUploadImage.js
@@ -173,10 +173,10 @@ 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('.')
+ imageType = file.url.split('.')
// #endif
// #ifdef APP-PLUS || MP-WEIXIN
imageType = file.tempFilePath.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',