适配优化的sql,将平台id改为0

This commit is contained in:
paulGao
2022-06-08 16:08:58 +08:00
committed by 学习很差啦
parent 5550285531
commit 3a705cce8e
6 changed files with 50 additions and 52 deletions

View File

@@ -32,7 +32,7 @@
<view class="content">
<view class="title-1">{{ coupon.title }}</view>
<view class="title-2">使用平台{{
coupon.scopeType == 'ALL' && coupon.id == 'platform'
coupon.scopeType == 'ALL' && coupon.storeId == '0'
? "全平台"
: coupon.scopeType == "PORTION_CATEGORY"
? "仅限品类"
@@ -188,7 +188,7 @@ export default {
* 立即使用优惠券
*/
useItNow(item) {
if (item.storeId && item.storeId!='platform') {
if (item.storeId && item.storeId!='0') {
uni.navigateTo({
url: `/pages/product/shopPage?id=${item.storeId}`,
});