style:更改文件名称

This commit is contained in:
wangsongsole 2022-10-12 14:08:25 +08:00
parent 6bb8f049b6
commit 60c76fbd1c
4 changed files with 34 additions and 27 deletions

View File

@ -14,7 +14,7 @@ exchange.html 兑换页面
优惠券新增5个文件 优惠券新增5个文件
1、couponCollection.html 优惠券商品页面 1、couponCollection.html 优惠券商品页面
2、exchange.html 优惠券商品详情页面 2、details.html 优惠券商品详情页面
3、myCoupon.html 我的券页面 3、myCoupon.html 我的券页面
4、myOrder.html 我的订单页 4、myOrder.html 我的订单页
5、searchPage.html 商品页搜索组件 5、searchPage.html 商品页搜索组件

View File

@ -409,7 +409,7 @@
localStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0])); localStorage.setItem('goodsInfo', JSON.stringify(goodsArr[0]));
localStorage.setItem('key', goodsArr[0].key); localStorage.setItem('key', goodsArr[0].key);
localStorage.setItem('token', goodsArr[0].token); localStorage.setItem('token', goodsArr[0].token);
window.location.replace(goodsArr[0].type == 1 ? "./exchange.html" : "../index.html?id=" + localStorage.getItem('linkId')); window.location.replace(goodsArr[0].type == 1 ? "./details.html" : "../index.html?id=" + localStorage.getItem('linkId'));
return false; return false;
} else if (goodsArr && goodsArr.length >= 1) { } else if (goodsArr && goodsArr.length >= 1) {
self.goodsNum = true; self.goodsNum = true;
@ -444,7 +444,7 @@
self.goodsShow = res.data.length > 1; self.goodsShow = res.data.length > 1;
if (res.data && res.data.length == 1) {//单个商品直接进入详情页面 if (res.data && res.data.length == 1) {//单个商品直接进入详情页面
localStorage.setItem('goodsInfo', JSON.stringify(res.data[0])); localStorage.setItem('goodsInfo', JSON.stringify(res.data[0]));
window.location.replace(res.data[0].type == 1 ? "./exchange.html" : "./reduce.html"); window.location.replace("./details.html");
return false; return false;
} else if (res.data && res.data.length >= 1) { } else if (res.data && res.data.length >= 1) {
self.goodsNum = true; self.goodsNum = true;
@ -503,7 +503,7 @@
} }
localStorage.setItem('goodsInfo', JSON.stringify(row)); localStorage.setItem('goodsInfo', JSON.stringify(row));
//type :1 兑换码 2:立减金 //type :1 兑换码 2:立减金
window.location.replace("./exchange.html"); window.location.replace("./details.html");
} else { } else {
this.popTitle = '温馨提示' this.popTitle = '温馨提示'
this.popText = product_status(gstatus, row) this.popText = product_status(gstatus, row)

View File

@ -12,7 +12,7 @@
</script> </script>
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/js/swiper.min.js"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/js/swiper.min.js"></script>
<link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet"> <link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/exchange.css"> <link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/details.css">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script>
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/payPop.css"> <link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/payPop.css">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/payPop.js"></script> <script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/payPop.js"></script>

View File

@ -15,21 +15,28 @@
<div id="searchPage"> <div id="searchPage">
<div class="search"> <div class="search">
<div class="search-ipt"> <div class="search-ipt">
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/search.png" alt="" class="search-icon"> <img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/search.png" alt=""
class="search-icon">
<input type="text" class="ipt" v-model="wordSearch" placeholder="请输入关键字搜索" maxlength="12" ref="ipt"> <input type="text" class="ipt" v-model="wordSearch" placeholder="请输入关键字搜索" maxlength="12" ref="ipt">
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/cance.png" alt="" class="close-icon" @click="clearFn"> <img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/cance.png" alt=""
class="close-icon" @click="clearFn">
</div> </div>
<span class="cancel" @click="history.go(-1)">取消</span> <span class="cancel" @click="history.go(-1)">取消</span>
</div> </div>
<h4>搜索结果</h4> <h4>搜索结果</h4>
<ul class="search-result" v-if="searchResult.length>0"> <ul class="search-result" v-if="searchResult.length>0">
<li v-for="(item,index) in searchResult" :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''" @click="exchangeBtn(item)"> <li v-for="(item,index) in searchResult"
<img :src="item.type==1?item.entity.show_url:(item.entity.channel==1?'https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png')" alt="" class="good-pic"> :class="item.stock&&item.stock<0||item.available!=1&&item.available!=2?'changegray':''"
@click="exchangeBtn(item)">
<img :src="item.type==1?item.entity.show_url:(item.entity.channel==1?'https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/zfbreduce.png':'https://lsxdemall.oss-cn-beijing.aliyuncs.com/commonproductlogo/wxreduce.png')"
alt="" class="good-pic">
<span>{{item.type==1?item.entity.product_name:item.entity.batch_goods_name}}</span> <span>{{item.type==1?item.entity.product_name:item.entity.batch_goods_name}}</span>
<img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/next.png" alt="" class="next-icon"> <img src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/next.png" alt=""
class="next-icon">
</li> </li>
</ul> </ul>
<img src="http://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/saleNull.png" alt="" class="empty-record" v-else> <img src="http://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/saleNull.png" alt=""
class="empty-record" v-else>
</div> </div>
</body> </body>
<script> <script>
@ -63,7 +70,7 @@
} }
localStorage.setItem('goodsInfo', JSON.stringify(row)); localStorage.setItem('goodsInfo', JSON.stringify(row));
//type :1 兑换码 2:立减金 //type :1 兑换码 2:立减金
window.location.replace("./exchange.html"); window.location.replace("./details.html");
} }
}, },
}, },