修改分包问题

This commit is contained in:
张凯 2025-05-21 10:36:51 +08:00
parent 3967a563f6
commit 08788f2996
18 changed files with 91 additions and 88 deletions

View File

@ -169,7 +169,7 @@
// //
// toDetail(id, orderId) { // toDetail(id, orderId) {
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/center/detail?id=" + id + "&orderId=" + orderId // url: "/packageA/center/detail?id=" + id + "&orderId=" + orderId
// }) // })
// } // }
} }

View File

@ -253,12 +253,12 @@
// //
toDetail(id) { toDetail(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/detail?id=" + id url: "/packageA/center/detail?id=" + id
}) })
}, },
toTeacher(id) { toTeacher(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/teacherDetail?id=" + id url: "/packageA/center/teacherDetail?id=" + id
}) })
} }
} }

View File

@ -358,7 +358,7 @@
}, },
getShare() { getShare() {
uni.$u.http.post('/api/wechat_util/link', { uni.$u.http.post('/api/wechat_util/link', {
path: 'pages/center/detail', path: 'packageA/center/detail',
query: `id=${this.id}`, query: `id=${this.id}`,
}).then(res => { }).then(res => {
if (res.code == 1) { if (res.code == 1) {
@ -433,7 +433,7 @@
this.type = 3; this.type = 3;
// uni.navigateTo({ // uni.navigateTo({
// url: '/pages/center/orderDetail?id=' + this.id // url: '/packageA/center/orderDetail?id=' + this.id
// }) // })
}, },

View File

@ -393,7 +393,7 @@ export default {
return { return {
title: this.detail.title, // title: this.detail.title, //
imageUrl: this.detail.images[0], //httphttps imageUrl: this.detail.images[0], //httphttps
path: `/pages/center/detail?id=${this.id}&isShare=1` path: `/packageA/center/detail?id=${this.id}&isShare=1`
} }
}, },
// //
@ -529,7 +529,7 @@ export default {
}, },
getShare() { getShare() {
uni.$u.http.post('/api/wechat_util/link', { uni.$u.http.post('/api/wechat_util/link', {
path: 'pages/center/detail', path: 'packageA/center/detail',
query: `id=${this.id}`, query: `id=${this.id}`,
}).then(res => { }).then(res => {
if (res.code == 1) { if (res.code == 1) {
@ -676,7 +676,7 @@ export default {
sign() { sign() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/center/applyDetail?id=' + this.id url: '/packageA/center/applyDetail?id=' + this.id
}) })
}, },
@ -712,7 +712,7 @@ export default {
// //
toMeDetail() { toMeDetail() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/MechanismDetail?id=" + this.detail.shop.id url: "/packageA/center/MechanismDetail?id=" + this.detail.shop.id
}) })
}, },

View File

@ -337,7 +337,7 @@
}, },
toSgindetail(){ toSgindetail(){
uni.navigateTo({ uni.navigateTo({
url: '/pages/center/signDetail?id=' + this.id url: '/packageA/center/signDetail?id=' + this.id
}); });
}, },
// //
@ -428,7 +428,7 @@
// this.type = 3; // this.type = 3;
uni.navigateTo({ uni.navigateTo({
url: '/pages/center/applyDetail?id=' + this.id url: '/packageA/center/applyDetail?id=' + this.id
}) })
}, },
@ -519,7 +519,7 @@
// //
toMeDetail() { toMeDetail() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/MechanismDetail?id=" + this.detail.shop.id url: "/packageA/center/MechanismDetail?id=" + this.detail.shop.id
}) })
}, },

View File

@ -460,14 +460,14 @@
// //
toTeacher(id) { toTeacher(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/center/teacherDetail?id=${id}` url: `/packageA/center/teacherDetail?id=${id}`
}) })
}, },
// //
toMeDetail() { toMeDetail() {
const jigouId = this.detail.shop.id const jigouId = this.detail.shop.id
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/MechanismDetail?id=" + jigouId url: "/packageA/center/MechanismDetail?id=" + jigouId
}) })
}, },

View File

@ -185,7 +185,7 @@
// //
// toDetail(id, orderId) { // toDetail(id, orderId) {
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/center/detail?id=" + id + "&orderId=" + orderId // url: "/packageA/center/detail?id=" + id + "&orderId=" + orderId
// }) // })
// } // }
} }

View File

@ -261,7 +261,7 @@
}, },
againBuy(id) { againBuy(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/detail?id=" + id url: "/packageA/center/detail?id=" + id
}) })
}, },
// //
@ -285,8 +285,8 @@
// //
toMake(id, orderId, classes_lib_id, type) { toMake(id, orderId, classes_lib_id, type) {
uni.navigateTo({ uni.navigateTo({
// url: "/pages/center/applyDetail?id=" + id + "&orderId=" + orderId + "&type=" + 2 // url: "/packageA/center/applyDetail?id=" + id + "&orderId=" + orderId + "&type=" + 2
url: "/pages/center/orderDetail?id=" + id + "&orderId=" + orderId + "&type=" + 2 + url: "/packageA/center/orderDetail?id=" + id + "&orderId=" + orderId + "&type=" + 2 +
"&classes_lib_id=" + classes_lib_id "&classes_lib_id=" + classes_lib_id
}) })
}, },

View File

@ -20,7 +20,7 @@
</view> --> </view> -->
<view class="centerBox flex justify-start align-items flex-column"> <view class="centerBox flex justify-start align-items flex-column">
<view class="flex w-100 center flex-column" style="align-items: center;" v-for="(item,index) in list" <view class="flex w-100 center flex-column" style="align-items: center;" v-for="(item,index) in list"
:key="index" @click.stop="openUrl('/pages/center/applyDetail?id='+item.id)"> :key="index" @click.stop="openUrl('/packageA/center/applyDetail?id='+item.id)">
<view class="flex" style="width: 690rpx;"> <view class="flex" style="width: 690rpx;">
<image :src="item.detail.headimage" mode="" style="width: 280rpx; height: 200rpx;border-radius: 12rpx;"></image> <image :src="item.detail.headimage" mode="" style="width: 280rpx; height: 200rpx;border-radius: 12rpx;"></image>
<view class="flex flex-column rightBox"> <view class="flex flex-column rightBox">
@ -351,7 +351,7 @@
// //
// toDetail(id, orderId) { // toDetail(id, orderId) {
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/center/detail?id=" + id + "&orderId=" + orderId // url: "/packageA/center/detail?id=" + id + "&orderId=" + orderId
// }) // })
// } // }
} }

View File

@ -271,7 +271,7 @@
// //
// toDetail(id, orderId) { // toDetail(id, orderId) {
// uni.navigateTo({ // uni.navigateTo({
// url: "/pages/center/detail?id=" + id + "&orderId=" + orderId // url: "/packageA/center/detail?id=" + id + "&orderId=" + orderId
// }) // })
// } // }
} }

View File

@ -268,7 +268,7 @@ export default {
// //
detail(id) { detail(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/detailSys?id=" + id, url: "/packageA/center/detailSys?id=" + id,
}); });
}, },
tofb() { tofb() {
@ -336,7 +336,7 @@ export default {
}, },
againBuy(id) { againBuy(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/detail?id=" + id, url: "/packageA/center/detail?id=" + id,
}); });
}, },
toHexiao(){ toHexiao(){
@ -394,9 +394,9 @@ export default {
// //
toMake(id, orderId, classes_lib_id, type) { toMake(id, orderId, classes_lib_id, type) {
uni.navigateTo({ uni.navigateTo({
// url: "/pages/center/applyDetail?id=" + id + "&orderId=" + orderId + "&type=" + 2 // url: "/packageA/center/applyDetail?id=" + id + "&orderId=" + orderId + "&type=" + 2
url: url:
"/pages/center/orderDetail?id=" + "/packageA/center/orderDetail?id=" +
id + id +
"&orderId=" + "&orderId=" +
orderId + orderId +
@ -423,7 +423,7 @@ export default {
} }
uni.navigateTo({ uni.navigateTo({
url: url:
"/pages/center/orderDetail?id=" + "/packageA/center/orderDetail?id=" +
id + id +
"&orderId=" + "&orderId=" +
orderId + orderId +
@ -439,7 +439,7 @@ export default {
toPay(id, orderId, classes_lib_id, order_no, type) { toPay(id, orderId, classes_lib_id, order_no, type) {
uni.navigateTo({ uni.navigateTo({
url: url:
"/pages/center/orderDetail?id=" + "/packageA/center/orderDetail?id=" +
id + id +
"&orderId=" + "&orderId=" +
orderId + orderId +

View File

@ -342,7 +342,7 @@
}, },
getShare() { getShare() {
uni.$u.http.post('/api/wechat_util/link', { uni.$u.http.post('/api/wechat_util/link', {
path: 'pages/center/detail', path: 'packageA/center/detail',
query: `id=${this.id}`, query: `id=${this.id}`,
}).then(res => { }).then(res => {
if (res.code == 1) { if (res.code == 1) {
@ -483,7 +483,7 @@
// this.type = 3; // this.type = 3;
uni.navigateTo({ uni.navigateTo({
url: '/pages/center/applyDetail?id=' + this.id url: '/packageA/center/applyDetail?id=' + this.id
}) })
}, },
@ -598,7 +598,7 @@
// //
toTeacher(id) { toTeacher(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/center/teacherDetail?id=${id}` url: `/packageA/center/teacherDetail?id=${id}`
}) })
}, },
// //
@ -615,7 +615,7 @@
// //
toMeDetail() { toMeDetail() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/MechanismDetail?id=" + this.detail.shop.id url: "/packageA/center/MechanismDetail?id=" + this.detail.shop.id
}) })
}, },

View File

@ -395,7 +395,7 @@
}, },
getShare() { getShare() {
uni.$u.http.post('/api/wechat_util/link', { uni.$u.http.post('/api/wechat_util/link', {
path: 'pages/center/detail', path: 'packageA/center/detail',
query: `id=${this.id}`, query: `id=${this.id}`,
}).then(res => { }).then(res => {
if (res.code == 1) { if (res.code == 1) {
@ -478,7 +478,7 @@
// this.type = 3; // this.type = 3;
uni.navigateTo({ uni.navigateTo({
url: '/pages/center/applyDetail?id=' + this.id url: '/packageA/center/applyDetail?id=' + this.id
}) })
}, },
@ -559,7 +559,7 @@
// //
toTeacher(id) { toTeacher(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/center/teacherDetail?id=${id}` url: `/packageA/center/teacherDetail?id=${id}`
}) })
}, },
// //
@ -576,7 +576,7 @@
// //
toMeDetail() { toMeDetail() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/MechanismDetail?id=" + this.detail.shop.id url: "/packageA/center/MechanismDetail?id=" + this.detail.shop.id
}) })
}, },

View File

@ -9,7 +9,7 @@
<view style="font-size: 28rpx;color: #C2C2C2;text-align: center;margin: 20rpx;">上午</view> <view style="font-size: 28rpx;color: #C2C2C2;text-align: center;margin: 20rpx;">上午</view>
<view style="display: flex;align-self: center;align-items: center; margin-top: 32rpx;" <view style="display: flex;align-self: center;align-items: center; margin-top: 32rpx;"
v-for="(item,index) in morning" :key="index" v-for="(item,index) in morning" :key="index"
@click.stop="openUrl('/pages/center/applyDetail?id='+item.id)"> @click.stop="openUrl('/packageA/center/applyDetail?id='+item.id)">
<view style="width: 45%;"> <view style="width: 45%;">
<image :src="item.detail.headimage" style="width: 280rpx; height: 200rpx;border-radius: 12rpx;" mode="aspectFill"> <image :src="item.detail.headimage" style="width: 280rpx; height: 200rpx;border-radius: 12rpx;" mode="aspectFill">
</image> </image>

View File

@ -17,6 +17,13 @@
"navigationStyle": "custom" // "navigationStyle": "custom" //
} }
}, },
{
"path": "pages/index/Apply",
"style": {
"navigationBarTitleText": "申请入驻"
}
},
{ {
"path": "pages/activity/index", "path": "pages/activity/index",
"style": { "style": {
@ -25,10 +32,10 @@
} }
}, },
{ {
"path": "pages/center/index", // tabBar "path": "pages/activity/stationStemys",
"style": { "style": {
"navigationBarTitleText": "选课中心", "navigationBarTitleText": "系统消息",
"navigationStyle": "custom" // "navigationStyle": "custom"
} }
}, },
{ {
@ -46,56 +53,13 @@
} }
}, },
{ {
"path": "pages/center/detail", "path": "pages/center/index", // tabBar
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "选课中心",
"navigationStyle": "custom" // "navigationStyle": "custom" //
} }
},
{
"path": "pages/center/detailSys",
"style": {
"navigationBarTitleText": "", //
"navigationStyle": "custom"
}
},
{
"path": "pages/center/signDetail",
"style": {
"navigationBarTitleText": "报名信息"
}
},
{
"path": "pages/center/MechanismDetail",
"style": {
"navigationBarTitleText": "机构详情"
}
},
{
"path": "pages/index/Apply",
"style": {
"navigationBarTitleText": "申请入驻"
}
},
{
"path": "pages/center/orderDetail",
"style": {
"navigationBarTitleText": "订单详情"
}
},
{
"path": "pages/center/applyDetail",
"style": {
"navigationBarTitleText": "支付参加"
}
},
{
"path": "pages/activity/stationStemys",
"style": {
"navigationBarTitleText": "系统消息",
"navigationStyle": "custom"
}
} }
], ],
"subPackages": [{ "subPackages": [{
"root": "packageA", "root": "packageA",
@ -281,6 +245,45 @@
"style": { "style": {
"navigationBarTitleText": "发起退款" "navigationBarTitleText": "发起退款"
} }
},
{
"path": "center/detail",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom" //
}
},
{
"path": "center/detailSys",
"style": {
"navigationBarTitleText": "", //
"navigationStyle": "custom"
}
},
{
"path": "center/signDetail",
"style": {
"navigationBarTitleText": "报名信息"
}
},
{
"path": "center/MechanismDetail",
"style": {
"navigationBarTitleText": "机构详情"
}
},
{
"path": "center/orderDetail",
"style": {
"navigationBarTitleText": "订单详情"
}
},
{
"path": "center/applyDetail",
"style": {
"navigationBarTitleText": "支付参加"
}
} }
] ]
}], }],

View File

@ -587,7 +587,7 @@ export default {
}else{ }else{
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: 'wx867e324c44b9e016', appId: 'wx867e324c44b9e016',
path: 'pages/center/detail?id='+id, path: 'packageA/center/detail?id='+id,
extraData: res.data, extraData: res.data,
envVersion: 'trial', envVersion: 'trial',
success(res) { success(res) {
@ -617,7 +617,7 @@ export default {
}else{ }else{
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/detail?id=" + id, url: "/packageA/center/detail?id=" + id,
}); });
} }
}, },

View File

@ -394,7 +394,7 @@ export default {
// //
detail(id) { detail(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/center/detail?id=" + id, url: "/packageA/center/detail?id=" + id,
}); });
}, },
iszhuliren() { iszhuliren() {