feat: 解决wgt更新问题

This commit is contained in:
2025-08-19 22:38:55 +08:00
parent 2e76fec9d6
commit 849b25fa3c
7 changed files with 26 additions and 51 deletions
+4 -3
View File
@@ -2,8 +2,8 @@
"name" : "信任桥", "name" : "信任桥",
"appid" : "__UNI__4910728", "appid" : "__UNI__4910728",
"description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。", "description" : "信任桥优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。",
"versionName" : "1.0.2", "versionName" : "1.0.1",
"versionCode" : 127, "versionCode" : 128,
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus" : { "app-plus" : {
@@ -46,7 +46,8 @@
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios" : {
"dSYMs" : false "dSYMs" : false,
"idfa" : false
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs" : {
+1 -1
View File
@@ -305,7 +305,6 @@ export default {
const self = this, const self = this,
localAppVersonName = uni.getStorageSync('version'), localAppVersonName = uni.getStorageSync('version'),
localAppVerson = uni.getStorageSync('versionCode'); localAppVerson = uni.getStorageSync('versionCode');
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.getProperty(plus.runtime.appid, function (widgetInfo) { plus.runtime.getProperty(plus.runtime.appid, function (widgetInfo) {
const params = { const params = {
@@ -313,6 +312,7 @@ export default {
versionCode: localAppVerson, versionCode: localAppVerson,
} }
checkAppVersion(params).then(res => { checkAppVersion(params).then(res => {
console.log("wgt更新-1", res)
if (res && res.bizcode === 100) { if (res && res.bizcode === 100) {
const data = res.data || {}; const data = res.data || {};
// app大版本更新,versionName:1.0.1 versionCode:102 // app大版本更新,versionName:1.0.1 versionCode:102
@@ -563,23 +563,36 @@ export default {
.product_info_header_warp { .product_info_header_warp {
position: relative; position: relative;
// .product_info_header_swiper {
// height: 562.5rpx !important;
// ::v-deep(.u-swiper__wrapper) {
// height: 562.5rpx !important;
// .u-swiper__wrapper {
// height: 562.5rpx !important;
// .u-swiper__wrapper__item__wrapper__image {
// height: 562.5rpx !important;
// }
// }
// }
// }
.product_info_header_swiper { .product_info_header_swiper {
height: 562.5rpx !important; height: 800rpx !important;
::v-deep(.u-swiper__wrapper) { ::v-deep(.u-swiper__wrapper) {
height: 562.5rpx !important; height: 800rpx !important;
.u-swiper__wrapper { .u-swiper__wrapper {
height: 562.5rpx !important; height: 800rpx !important;
.u-swiper__wrapper__item__wrapper__image { .u-swiper__wrapper__item__wrapper__image {
height: 562.5rpx !important; height: 800rpx !important;
} }
} }
} }
} }
.img_comm { .img_comm {
@@ -1,27 +0,0 @@
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
{
"bsonType": "object",
"required": ["name"],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID"
},
"name": {
"bsonType": "string",
"label": "%name%",
"minLength": 1,
"maxLength": 8,
"errorMessage": {
"format": "{label}%name.format%",
"minLength": "{label}%name.minLength%",
"maxLength": "{label}%name.maxLength%"
}
}
}
}
@@ -1,6 +0,0 @@
{
"name": "Name",
"name.format": " invalid format",
"name.minLength": "{label} length cannot be less than {{minLength}}",
"name.maxLength": "{label} length cannot exceed {{maxLength}}"
}
@@ -1,6 +0,0 @@
{
"name": "姓名",
"name.format": "格式无效",
"name.minLength": "{label}不能小于{{minLength}}个字符",
"name.maxLength": "{label}不能大于{{maxLength}}个字符"
}
+1 -1
View File
@@ -3,7 +3,7 @@
// export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境 // export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境
export const BASE_URL = "https://api.tbmall.xin"; //生产 export const BASE_URL = "https://api.tbmall.xin"; //生产
// export const BASE_URL ='http://www.hm.a-d.work/api' //测试 // export const BASE_URL ='http://api.hm.a-d.work' // 测试