bug修正

This commit is contained in:
mactj 2021-01-20 18:08:35 +08:00
parent 017632c1a6
commit 720185aef0
5 changed files with 11 additions and 12 deletions

View File

@ -95,7 +95,7 @@ public class AppMerchantController extends BaseController {
* 获取商户详细信息
*/
@PreAuthorize("@ss.hasPermi('winery:merchant:query')")
@GetMapping(value = "dept/{id}")
@GetMapping(value = "dept/{deptId}")
public AjaxResult getInfoByDeptId(@PathVariable("deptId") String deptId) {
return AjaxResult.success(iAppMerchantService.getOne(new LambdaQueryWrapper<AppMerchant>().eq(AppMerchant::getDeptId, deptId)));

View File

@ -4,8 +4,8 @@
*
*/
// export const baseUrl = 'http://127.0.0.1:18989/'
export const baseUrl = 'https://mall.xiao4r.com/api/'
export const baseUrl = 'http://127.0.0.1:18989/'
// export const baseUrl = 'https://mall.xiao4r.com/api/'
export const imgbaseUrl = 'https://www.xiao4r.com/xiao4rstatic/img/winery/'

View File

@ -34,7 +34,7 @@ module.exports.parseImage = parseImage;
</swiper>
<van-cell :title="goodsItems.goodsName" value="内容能显示多长" label="描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息"
<van-cell :title="goodsItems.goodsName" value="特价" label="goodsItems.goodsAlias"
border="{{ false }}" />
<van-cell title="立即下单" is-link @tap="onShowSpec" />
@ -105,7 +105,7 @@ import mallApis from '../../../apis/mallApis'
import { navDefine } from '../../../store/constant/navDefine'
import appManager from '../../../appManager'
import { shoppingCarList } from '../../../store/constant/nav/pages'
import { shoppingCarList, wineryDetailPage } from '../../../store/constant/nav/pages'
wepy.page({
store,
@ -218,7 +218,10 @@ wepy.page({
this.setShoppingCarAction(this.shoppingCar)
},
onWinery() {
appManager.showToast('建设中')
// appManager.showToast('建设中')
appManager.navigateTo(wineryDetailPage + '?deptId=' + this.goodsItem.deptId)
},
onShppingCar() {
appManager.navigateTo(shoppingCarList)

View File

@ -36,7 +36,7 @@ wepy.page({
</script>
<config>
{
navigationBarText: '详情',
navigationBarTitleText: '详情',
navigationBarTextStyle: 'black',
}

View File

@ -12,12 +12,10 @@
width: 400rpx;
height: 60px;
margin-bottom: 20px;
box-shadow: 4px 4px 10px #cccccc;
border: #ffffff 1px solid;
border-radius: 20px;
background-color: white;
padding: 15px 70rpx;
@ -126,15 +124,13 @@ wepy.page({
},
onLoad(options) {
console.log(options)
if (options.id) {
this.init(options.id)
} else if (options.deptId) {
this.initByDept(options.deptId)
}
}
}
})
</script>