diff --git a/App.vue b/App.vue index 6290180..4304ad7 100644 --- a/App.vue +++ b/App.vue @@ -189,7 +189,7 @@ url: path, }); } else { - this.$navigateTo({ + uni.navigateTo({ url: path, }); } @@ -214,7 +214,7 @@ url: `/${path}`, }); } else { - this.$navigateTo({ + uni.navigateTo({ url: `/${path}`, }); } diff --git a/components/m-buy/goods.vue b/components/m-buy/goods.vue index e73204f..46f1678 100644 --- a/components/m-buy/goods.vue +++ b/components/m-buy/goods.vue @@ -263,7 +263,7 @@ buy(data) { API_trade.addToCart(data).then((res) => { if (res.data.success) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/order/fillorder?way=${ data.cartType }&addr=${""}&parentOrder=${encodeURIComponent( @@ -314,7 +314,7 @@ API_trade.addToCart(data).then((res) => { if (res.data.code == 200) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/order/fillorder?way=${data.cartType}&addr=${ this.addr.id || "" }&parentOrder=${encodeURIComponent(JSON.stringify(this.parentOrder))}`, diff --git a/components/m-goods-list/promotion.vue b/components/m-goods-list/promotion.vue new file mode 100644 index 0000000..361bbcb --- /dev/null +++ b/components/m-goods-list/promotion.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/components/m-goods-list/seckill.vue b/components/m-goods-list/seckill.vue deleted file mode 100644 index 4e7b834..0000000 --- a/components/m-goods-list/seckill.vue +++ /dev/null @@ -1,190 +0,0 @@ - - - - - diff --git a/components/m-goods-recommend/index.vue b/components/m-goods-recommend/index.vue index dc19323..8f60967 100644 --- a/components/m-goods-recommend/index.vue +++ b/components/m-goods-recommend/index.vue @@ -62,7 +62,7 @@ export default { this.goodsList.push(...goodsList.data.result.content); }, handleClick(item) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${item.content.id}&goodsId=${item.content.goodsId}`, }); }, diff --git a/config/api.js b/config/api.js index e8461b2..96131ba 100644 --- a/config/api.js +++ b/config/api.js @@ -4,14 +4,8 @@ */ // 开发环境 const dev = { - // common: "https://common-api.pickmall.cn", - // buyer: "https://buyer-api.pickmall.cn", - - common: "http://192.168.0.106:8890", - buyer: "http://192.168.0.106:8888", - - - + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", }; // 生产环境 const prod = { diff --git a/main.js b/main.js index 3ea0c2b..9b47071 100644 --- a/main.js +++ b/main.js @@ -3,7 +3,7 @@ import App from "./App"; import * as filters from "./utils/filters.js"; // global filter import uView from "uview-ui"; import store from "./store"; -import {navigateTo} from '@/utils/navigateRoute.js' + /** * 仅在h5中显示唤醒app功能 @@ -32,8 +32,6 @@ Object.keys(filters).forEach((key) => { Vue.prototype.$store = store; -// // 引入Vuex -Vue.prototype.$navigateTo = navigateTo; Vue.use(uView); Vue.config.productionTip = false; diff --git a/pages.json b/pages.json index 4d1a33f..115501b 100644 --- a/pages.json +++ b/pages.json @@ -465,7 +465,9 @@ "pages": [ { "path": "seckill", "style": { - "navigationBarTitleText": "限时抢购", + "navigationBarTitleText": "限时抢购", + "navigationStyle": "custom", // 隐藏系统导航栏 + "navigationBarTextStyle": "white" , "app-plus": { "titleNView": { "homeButton":true @@ -478,7 +480,8 @@ "path": "joinGroup", "style": { "navigationBarTitleText": "拼团活动", - "navigationStyle": "custom", // 隐藏系统导航栏 + "navigationStyle": "custom", // 隐藏系统导航栏 + "navigationBarTextStyle": "white" , "app-plus": { // 将回弹属性关掉 "bounce": "none" diff --git a/pages/cart/coupon/couponCenter.vue b/pages/cart/coupon/couponCenter.vue index 5c8e818..e8806ad 100644 --- a/pages/cart/coupon/couponCenter.vue +++ b/pages/cart/coupon/couponCenter.vue @@ -145,7 +145,7 @@ }, }, onNavigationBarButtonTap(e) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/cart/coupon/couponIntro", }); }, diff --git a/pages/cart/coupon/myCoupon.vue b/pages/cart/coupon/myCoupon.vue index 1d63237..ac59a4a 100644 --- a/pages/cart/coupon/myCoupon.vue +++ b/pages/cart/coupon/myCoupon.vue @@ -189,7 +189,7 @@ export default { */ useItNow(item) { if (item.storeId && item.storeId!='0') { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/shopPage?id=${item.storeId}`, }); } else { @@ -203,7 +203,7 @@ export default { * 优惠券详情 */ couponDetail(item) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/cart/coupon/couponDetail?item=" + encodeURIComponent(JSON.stringify(item)), diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue index 179422b..71be635 100644 --- a/pages/cart/payment/payOrder.vue +++ b/pages/cart/payment/payOrder.vue @@ -120,7 +120,7 @@ * 支付成功后跳转 */ callback(paymentMethod){ - this.$navigateTo({ + uni.navigateTo({ url: "/pages/cart/payment/success?paymentMethod=" + paymentMethod + "&payPrice=" + diff --git a/pages/mine/address/add.vue b/pages/mine/address/add.vue index 08bac21..33723f9 100644 --- a/pages/mine/address/add.vue +++ b/pages/mine/address/add.vue @@ -162,7 +162,7 @@ export default { delete this.form.updateTime; editAddress(this.form).then((res) => { if (res.data.success) { - this.$navigateTo({ + uni.navigateTo({ url: `/${beforePage.route}`, }); } diff --git a/pages/mine/address/address.vue b/pages/mine/address/address.vue index 22b4feb..e025746 100644 --- a/pages/mine/address/address.vue +++ b/pages/mine/address/address.vue @@ -129,7 +129,7 @@ export default { //新建。编辑地址 addAddress(id) { if (id) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/mine/address/add?id=" + id + @@ -138,7 +138,7 @@ export default { "&type=order", }); } else { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/mine/address/add?way=" + this.routerVal.way + "&type=order", }); diff --git a/pages/mine/address/addressManage.vue b/pages/mine/address/addressManage.vue index 0d70500..f28382c 100644 --- a/pages/mine/address/addressManage.vue +++ b/pages/mine/address/addressManage.vue @@ -86,23 +86,9 @@ export default { * 进入页面检测当前账户是否登录 */ onShow() { - let that = this; - if (this.$options.filters.isLogin("auth")) { + if (this.$options.filters.tipsToLogin()) { this.getAddressList(); - } else { - uni.showModal({ - title: "提示", - content: "检测到您的账号还未登录,是否去登录?", - confirmColor: this.$lightColor, - success: function (res) { - if (res.confirm) { - that.$options.filters.navigateToLogin(); - } else if (res.cancel) { - uni.navigateBack(); - } - }, - }); - } + } }, methods: { //获取地址列表 @@ -145,7 +131,7 @@ export default { }, //新建。编辑地址 addAddress(id) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/mine/address/add${id ? "?id=" + id : ""}`, }); }, diff --git a/pages/mine/deposit/operation.vue b/pages/mine/deposit/operation.vue index 8832a3b..e9c8dff 100644 --- a/pages/mine/deposit/operation.vue +++ b/pages/mine/deposit/operation.vue @@ -50,7 +50,7 @@ export default { * 跳转 */ navgition(url) { - this.$navigateTo({ + uni.navigateTo({ url, }); }, diff --git a/pages/mine/deposit/recharge.vue b/pages/mine/deposit/recharge.vue index 0d16c8e..c9272d5 100644 --- a/pages/mine/deposit/recharge.vue +++ b/pages/mine/deposit/recharge.vue @@ -38,7 +38,7 @@ export default { let res = await recharge({ price: this.price }); if (res.data.success) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/cart/payment/payOrder?orderType=RECHARGE&recharge_sn=${res.data.result.rechargeSn}`, }); } diff --git a/pages/mine/distribution/home.vue b/pages/mine/distribution/home.vue index e2029a9..7dda626 100644 --- a/pages/mine/distribution/home.vue +++ b/pages/mine/distribution/home.vue @@ -58,12 +58,12 @@ export default { }, methods: { handleClick(url) { - this.$navigateTo({ + uni.navigateTo({ url, }); }, queryGoods(src) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/mine/distribution/${src}`, }); }, diff --git a/pages/mine/distribution/list.vue b/pages/mine/distribution/list.vue index 852f523..989daf3 100644 --- a/pages/mine/distribution/list.vue +++ b/pages/mine/distribution/list.vue @@ -221,7 +221,7 @@ export default { * 查看图片 */ handleNavgationGoods(val) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${val.skuId}&goodsId=${val.goodsId}`, }); }, diff --git a/pages/mine/msgTips/main.vue b/pages/mine/msgTips/main.vue index 6ceed10..eb383da 100644 --- a/pages/mine/msgTips/main.vue +++ b/pages/mine/msgTips/main.vue @@ -56,7 +56,7 @@ methods: { ...mapMutations(["logout"]), navigateTo(url) { - this.$navigateTo({ + uni.navigateTo({ url }); }, diff --git a/pages/mine/msgTips/packageMsg/index.vue b/pages/mine/msgTips/packageMsg/index.vue index aa2df11..619cf4e 100644 --- a/pages/mine/msgTips/packageMsg/index.vue +++ b/pages/mine/msgTips/packageMsg/index.vue @@ -45,7 +45,7 @@ export default { }, methods: { goDetail(sn,logi_id,ship_no){ - this.$navigateTo({ + uni.navigateTo({ url:'/pages/msgTips/packagemsg/logisticsDetail?order_sn=' + sn +'&logi_id='+logi_id+'&ship_no='+ship_no, }) }, diff --git a/pages/mine/myCollect.vue b/pages/mine/myCollect.vue index e39c4e8..18ee619 100644 --- a/pages/mine/myCollect.vue +++ b/pages/mine/myCollect.vue @@ -174,7 +174,7 @@ */ goGoodsDetail(val) { //商品详情 - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/goods?id=" + val.skuId + "&goodsId=" + val.goodsId, }); }, @@ -184,7 +184,7 @@ */ goStoreMainPage(id) { //店铺主页 - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/shopPage?id=" + id, }); }, diff --git a/pages/mine/myTracks.vue b/pages/mine/myTracks.vue index c6119f1..00a130f 100644 --- a/pages/mine/myTracks.vue +++ b/pages/mine/myTracks.vue @@ -84,7 +84,7 @@ * 导航到店铺 */ navgaiteToStore(val) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/shopPage?id=" + val.storeId, }); }, @@ -100,7 +100,7 @@ * 跳转详情 */ navgaiteToDetail(item) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/goods?id=" + item.id + "&goodsId=" + item.goodsId, }); }, diff --git a/pages/mine/set/editionIntro.vue b/pages/mine/set/editionIntro.vue index 63b6056..4e90bdd 100644 --- a/pages/mine/set/editionIntro.vue +++ b/pages/mine/set/editionIntro.vue @@ -88,7 +88,7 @@ export default { }, navigateTo(url) { - this.$navigateTo({ + uni.navigateTo({ url, }); }, diff --git a/pages/mine/set/securityCenter/securityCenter.vue b/pages/mine/set/securityCenter/securityCenter.vue index 956a0f1..64c07f4 100644 --- a/pages/mine/set/securityCenter/securityCenter.vue +++ b/pages/mine/set/securityCenter/securityCenter.vue @@ -16,7 +16,7 @@ export default { methods: { navigateTo(url) { - this.$navigateTo({ + uni.navigateTo({ url: url, }); }, diff --git a/pages/mine/set/setUp.vue b/pages/mine/set/setUp.vue index f09afcc..df48137 100644 --- a/pages/mine/set/setUp.vue +++ b/pages/mine/set/setUp.vue @@ -49,7 +49,7 @@ export default { if (url == "/pages/set/securityCenter/securityCenter") { url += `?mobile=${this.userInfo.mobile}`; } - this.$navigateTo({ + uni.navigateTo({ url: url, }); }, diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index 7b76ac6..1d9fbf0 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -488,13 +488,13 @@ export default { }, // 跳转到商品详情 navigateToDetailPage(item) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${item.content.id}&goodsId=${item.content.goodsId}`, }); }, // 跳转地址 navigateToStoreDetailPage(item) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/shopPage?id=${item.content.storeId}`, }); }, diff --git a/pages/order/afterSales/afterSales.vue b/pages/order/afterSales/afterSales.vue index 44bc5cc..9fcdac3 100644 --- a/pages/order/afterSales/afterSales.vue +++ b/pages/order/afterSales/afterSales.vue @@ -352,7 +352,7 @@ export default { * 售后详情 */ afterDetails(order) { - this.$navigateTo({ + uni.navigateTo({ url: "./applyDetail?sn=" + order.sn, }); }, @@ -395,7 +395,7 @@ export default { ...sku, }; storage.setAfterSaleData(data); - this.$navigateTo({ + uni.navigateTo({ url: `/pages/order/afterSales/afterSalesSelect?sn=${sn}`, }); }, @@ -411,7 +411,7 @@ export default { }; storage.setAfterSaleData(data); - this.$navigateTo({ + uni.navigateTo({ url: `./afterSalesDetailExpress?serviceSn=${order.sn}`, }); }, @@ -422,13 +422,13 @@ export default { onDetail(goods, sku) { // 售后申请 if (this.current == 0) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${sku.skuId}&goodsId=${ sku.goodsId || sku.goodsId }`, }); } else { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${goods.skuId}&goodsId=${ goods.goodsId || goods.goodsId }`, diff --git a/pages/order/afterSales/afterSalesSelect.vue b/pages/order/afterSales/afterSalesSelect.vue index fb8e3fc..d298151 100644 --- a/pages/order/afterSales/afterSalesSelect.vue +++ b/pages/order/afterSales/afterSalesSelect.vue @@ -94,7 +94,7 @@ export default { * 跳转到商品信息 */ navigateToGoodsDetail(id) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${id}&goodsId=${goodsId}`, }); }, diff --git a/pages/order/afterSales/applyDetail.vue b/pages/order/afterSales/applyDetail.vue index 54fce3a..c8564d9 100644 --- a/pages/order/afterSales/applyDetail.vue +++ b/pages/order/afterSales/applyDetail.vue @@ -381,7 +381,7 @@ export default { * 访问商品详情 */ navgiateToGoodsDetail(item) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${item.id}&goodsId=${item.goodsId}`, }); }, @@ -390,7 +390,7 @@ export default { * 进度 */ onProgress() { - this.$navigateTo({ + uni.navigateTo({ url: `./applyProgress?sn=${ this.serviceDetail.sn }&createTime=${encodeURIComponent(this.serviceDetail.createTime)} diff --git a/pages/order/complain/complainList.vue b/pages/order/complain/complainList.vue index 45777d9..ccdec07 100644 --- a/pages/order/complain/complainList.vue +++ b/pages/order/complain/complainList.vue @@ -86,7 +86,7 @@ export default { methods: { // 点击跳转到商品 handleToGoods(val) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/goods?id=" + val.skuId + "&goodsId=" + val.goodsId, }); }, @@ -120,7 +120,7 @@ export default { * 查看详情 */ handleInfo(val) { - this.$navigateTo({ + uni.navigateTo({ url: "./complainInfo?id=" + val.id, }); }, diff --git a/pages/order/evaluate/myEvaluate.vue b/pages/order/evaluate/myEvaluate.vue index 99c5798..35dc244 100644 --- a/pages/order/evaluate/myEvaluate.vue +++ b/pages/order/evaluate/myEvaluate.vue @@ -219,7 +219,7 @@ export default { */ talkCommont(sku) { console.log(sku); - this.$navigateTo({ + uni.navigateTo({ url: `./releaseEvaluate?sn=${sku.sn}&sku=${encodeURIComponent( JSON.stringify(sku) )}`, @@ -270,7 +270,7 @@ export default { * 评价详情 */ onDetail(comment) { - this.$navigateTo({ + uni.navigateTo({ url: "./evaluateDetail?comment=" + encodeURIComponent(JSON.stringify(comment)), diff --git a/pages/order/fillorder.vue b/pages/order/fillorder.vue index 71aa936..e0c03a8 100644 --- a/pages/order/fillorder.vue +++ b/pages/order/fillorder.vue @@ -481,7 +481,7 @@ export default { // 跳转到店铺 navigateToStore(val) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/shopPage?id=" + val.storeId, }); }, @@ -555,7 +555,7 @@ export default { * 跳转 */ navigateTo(url) { - this.$navigateTo({ + uni.navigateTo({ url, }); }, diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue index 45ac708..2d1eb1c 100644 --- a/pages/order/myOrder.vue +++ b/pages/order/myOrder.vue @@ -326,10 +326,10 @@ export default { // this.loadData(this.status); }, onShow() { - if (!this.tabCurrentIndex) { - this.initData(0); - } else { - + if(this.$options.filters.tipsToLogin()){ + if (!this.tabCurrentIndex) { + this.initData(0); + } } // this.loadData(this.status); }, @@ -364,14 +364,14 @@ export default { methods: { // 售后 applyService(order) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/order/afterSales/afterSales?orderSn=${order.sn}`, }); }, // 店铺详情 navigateToStore(val) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/shopPage?id=" + val.storeId, }); }, @@ -423,7 +423,7 @@ export default { }).pay(); // #endif // #ifndef MP-WEIXIN - this.$navigateTo({ + uni.navigateTo({ url: "/pages/cart/payment/payOrder?order_sn=" + val.sn, }); // #endif @@ -522,7 +522,7 @@ export default { * 跳转到订单详情 */ navigateToOrderDetail(sn) { - this.$navigateTo({ + uni.navigateTo({ url: "./orderDetail?sn=" + sn, }); }, @@ -588,7 +588,7 @@ export default { * 评价商品 */ onComment(sn) { - this.$navigateTo({ + uni.navigateTo({ url: "./evaluate/myEvaluate", }); }, @@ -599,7 +599,7 @@ export default { reBuy(order) { console.log(order); return; - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/goods?id=" + order.id + "&goodsId=" + order.goodsId, }); @@ -609,7 +609,7 @@ export default { * 查看物流 */ navigateToLogistics(order) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/mine/msgTips/packageMsg/logisticsDetail?order_sn=" + order.sn, }); diff --git a/pages/order/orderDetail.vue b/pages/order/orderDetail.vue index d1b2e88..4014a7e 100644 --- a/pages/order/orderDetail.vue +++ b/pages/order/orderDetail.vue @@ -277,7 +277,7 @@ export default { }, methods: { tostore(val) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/shopPage?id=" + val.storeId, }); }, @@ -294,7 +294,7 @@ export default { }, // #TODO 这块需要写一下 目前没有拼团的详细信息 ByUserMessage(order) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/cart/payment/shareOrderGoods?sn=" + order.sn + @@ -318,12 +318,12 @@ export default { }); }, onReceipt(val) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/order/invoice/invoiceDetail?id=" + val.id, }); }, gotoGoodsDetail(sku) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${sku.skuId}&goodsId=${sku.goodsId}`, }); }, @@ -363,7 +363,7 @@ export default { * 投诉 */ complaint(sku) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/order/complain/complain?sn=" + this.sn + @@ -373,7 +373,7 @@ export default { }, //售后按钮 onAfterSales(sn, sku) { - this.$navigateTo({ + uni.navigateTo({ url: `./afterSales/afterSalesSelect?sn=${sn}&sku=${encodeURIComponent( JSON.stringify(sku) )}`, @@ -382,7 +382,7 @@ export default { // 去支付 toPay(val) { val.sn - ? this.$navigateTo({ + ? uni.navigateTo({ url: "/pages/cart/payment/payOrder?order_sn=" + val.sn, }) : false; @@ -459,12 +459,12 @@ export default { }, //评价商品 onComment(sn) { - this.$navigateTo({ + uni.navigateTo({ url: "./evaluate/myEvaluate", }); }, //查看物流 onLogistics(order) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/mine/msgTips/packageMsg/logisticsDetail?logi_id=" + order.logi_id + @@ -480,7 +480,7 @@ export default { this.reason = reason; }, reBuy(order) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/product/goods?id=" + order.id + "&goodsId=" + order.goodsId, }); diff --git a/pages/passport/login.vue b/pages/passport/login.vue index b2e2d5d..227da4e 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -545,7 +545,7 @@ export default { if (user.data.result.mobile) { whetherNavigate(); } else { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/passport/bindUserPhone", }); } @@ -639,13 +639,13 @@ export default { }, // 跳转 navigateToPrivacy(val) { - this.$navigateTo({ + uni.navigateTo({ url: "/pages/mine/help/tips?type=" + val, }); console.log(val) }, navigateToPrivacys(val){ - this.$navigateTo({ + uni.navigateTo({ url:"/pages/mine/help/tips?type="+ val, }) }, diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 418295a..76ac9e1 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -710,13 +710,13 @@ export default { linkMsgDetail() { // lili 基础客服 - this.$navigateTo({ + uni.navigateTo({ url: `/pages/tabbar/home/web-view?IM=${this.storeDetail.storeId}`, }); // udesk 代码 // if (this.storeDetail.merchantEuid) { - // this.$navigateTo({ + // uni.navigateTo({ // url: `/pages/tabbar/home/web-view?src=${this.IM}`, // }); // } @@ -736,7 +736,7 @@ export default { // sign: this.storeDetail.yzfSign, // mpSign: this.storeDetail.yzfMpSign, // }; - // this.$navigateTo({ + // uni.navigateTo({ // url: // "/pages/product/customerservice/index?params=" + // encodeURIComponent(JSON.stringify(params)), @@ -744,7 +744,7 @@ export default { // // #endif // // #ifndef MP-WEIXIN // const sign = this.storeDetail.yzfSign; - // this.$navigateTo({ + // uni.navigateTo({ // url: // "/pages/tabbar/home/web-view?src=https://yzf.qq.com/xv/web/static/chat/index.html?sign=" + // sign, @@ -908,7 +908,7 @@ export default { * 跳转到店铺页面 */ navigateToStore(store_id) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/shopPage?id=` + store_id, }); }, diff --git a/pages/product/product/evaluation/-evaluation.vue b/pages/product/product/evaluation/-evaluation.vue index e19c39b..27ad2fd 100644 --- a/pages/product/product/evaluation/-evaluation.vue +++ b/pages/product/product/evaluation/-evaluation.vue @@ -94,7 +94,7 @@ export default { ); }, toComment(id, grade) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/comment?id=${id}&grade=${grade}`, }); }, diff --git a/pages/product/product/popup/address.vue b/pages/product/product/popup/address.vue index a2a4829..50ce0b9 100644 --- a/pages/product/product/popup/address.vue +++ b/pages/product/product/popup/address.vue @@ -54,7 +54,7 @@ export default { this.getShippingAddress() } else{ - this.$navigateTo({ + uni.navigateTo({ url: 'pages/passport/login' }); } @@ -71,7 +71,7 @@ export default { getpicker() { // this.$refs.cityPicker.show(); - this.$navigateTo({ + uni.navigateTo({ url: "/pages/mine/address/add", }); this.closeAddress(); diff --git a/pages/product/product/shop/-shop.vue b/pages/product/product/shop/-shop.vue index 2ab359c..3220628 100644 --- a/pages/product/product/shop/-shop.vue +++ b/pages/product/product/shop/-shop.vue @@ -57,13 +57,13 @@ export default { }, // 点击商品 clickGoods(val) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/goods?id=${val.content.id}&goodsId=${val.content.goodsId}`, }); }, tostorePage(val) { - this.$navigateTo({ + uni.navigateTo({ url: "../product/shopPage?id=" + val.storeId, }); }, diff --git a/pages/product/shopList.vue b/pages/product/shopList.vue index 8ba4ecc..c91daa8 100644 --- a/pages/product/shopList.vue +++ b/pages/product/shopList.vue @@ -74,7 +74,7 @@ export default { }, methods: { handleClickStore(val){ - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/shopPage?id=${val.id}` }); }, diff --git a/pages/product/shopPage.vue b/pages/product/shopPage.vue index f7b018b..cbceb11 100644 --- a/pages/product/shopPage.vue +++ b/pages/product/shopPage.vue @@ -152,7 +152,7 @@ export default { methods: { getStoreLicencePhoto() { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/licencePhoto?id=${this.storeId}`, }); }, @@ -190,7 +190,7 @@ export default { // sign: this.storeInfo.yzfSign, // mpSign: this.storeInfo.yzfMpSign, // }; - // this.$navigateTo({ + // uni.navigateTo({ // url: // "/pages/product/customerservice/index?params=" + // encodeURIComponent(JSON.stringify(params)), @@ -198,14 +198,14 @@ export default { // // #endif // // #ifndef MP-WEIXIN // const sign = this.storeInfo.yzfSign; - // this.$navigateTo({ + // uni.navigateTo({ // url: // "/pages/tabbar/home/web-view?src=https://yzf.qq.com/xv/web/static/chat/index.html?sign=" + // sign, // }); // // #endif - this.$navigateTo({ + uni.navigateTo({ url: `/pages/tabbar/home/web-view?IM=${this.storeId}`, }); }, @@ -227,7 +227,7 @@ export default { /**商品分类中商品集合 */ getCategoryGoodsList(val) { - this.$navigateTo({ + uni.navigateTo({ url: `/pages/product/shopPageGoods?title=${val.labelName}&id=${val.id}&storeId=${this.storeId}`, }); }, @@ -237,7 +237,7 @@ export default { */ search() { console.log("点击") - this.$navigateTo({ + uni.navigateTo({ url: `/pages/navigation/search/searchPage?storeId=${this.storeId}&keyword=${this.keyword}`, }); }, diff --git a/pages/promotion/bargain/detail.vue b/pages/promotion/bargain/detail.vue index 52cf0dc..185407d 100644 --- a/pages/promotion/bargain/detail.vue +++ b/pages/promotion/bargain/detail.vue @@ -3,7 +3,7 @@ -
+
@@ -106,10 +106,6 @@ - -
- -
@@ -352,11 +348,11 @@ page { align-items: center; padding: 10rpx 0; } -.wrapper { - background: url("https://lilishop-oss.oss-cn-beijing.aliyuncs.com/aac88f4e8eff452a8010af42c4560b04.png"); +.wrapper-box { + background: url("https://lili-system.oss-cn-beijing.aliyuncs.com/kanjia.png"); background-repeat: no-repeat; background-size: 100% 100%; - height: 700rpx; + height: 506rpx; width: 100%; } @@ -371,16 +367,16 @@ page { } } .box1 { - top: 750rpx; + top: 560rpx; } .box2 { - top: 770rpx; + top: 580rpx; } .box3 { - top: 790rpx; + top: 600rpx; } .box4 { - top: 810rpx; + top: 620 rpx; height: 200rpx; } .bargain-item { diff --git a/pages/promotion/bargain/list.vue b/pages/promotion/bargain/list.vue index b80f856..d553050 100644 --- a/pages/promotion/bargain/list.vue +++ b/pages/promotion/bargain/list.vue @@ -6,22 +6,7 @@
-
-
-
- -
-
-
- {{item.goodsName}} -
-
-
最低:¥{{item.purchasePrice | unitPrice}}
-
参与砍价
-
-
-
-
+
@@ -32,7 +17,9 @@ diff --git a/pages/promotion/lives.vue b/pages/promotion/lives.vue index eeedaad..bd0a728 100644 --- a/pages/promotion/lives.vue +++ b/pages/promotion/lives.vue @@ -229,7 +229,7 @@ export default { let customParams = encodeURIComponent( JSON.stringify({ path: "pages/index/index", pid: 1 }) ); // 开发者在直播间页面路径上携带自定义参数,后续可以在分享卡片链接和跳转至商详页时获取,详见【获取自定义参数】、【直播间到商详页面携带参数】章节(上限600个字符,超过部分会被截断) - this.$navigateTo({ + uni.navigateTo({ url: "plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=" + roomId + diff --git a/pages/promotion/point/pointList.vue b/pages/promotion/point/pointList.vue index c34799a..59ddfd6 100644 --- a/pages/promotion/point/pointList.vue +++ b/pages/promotion/point/pointList.vue @@ -23,8 +23,8 @@ {{ item.goodsName }} - - {{ item.points }}积分 + +
{{ item.points }}积分
¥{{ item.originalPrice | unitPrice }}
@@ -137,14 +137,14 @@ export default { methods: { // 跳转 navigateTo(url) { - this.$navigateTo({ + uni.navigateTo({ url, }); }, toGoods(item) { //跳转详情 - this.$navigateTo({ + uni.navigateTo({ url: `/pages/promotion/point/detail?id=${item.id}`, }); }, @@ -194,46 +194,12 @@ page { height: 100%; } .tipsMkt { - float: right; color: #c0c4cc; - font-size: 24rpx; + font-size: 24rpx !important; text-decoration: line-through; - margin-right: 20rpx; + margin-right: 20rpx !important; } -.header { - background: $light-color; - position: relative; - color: #fff; - display: flex; - height: 80rpx; - align-items: center; - justify-content: center; - font-size: 26rpx; - font-size: 34rpx; - - .left, - .right { - position: absolute; - width: max-content; - height: max-content; - top: 0; - bottom: 0; - margin: auto; - } - - .left { - float: left; - top: 0; - bottom: 0; - left: 20rpx; - } - - .right { - float: right; - right: 20rpx; - } -} .index { height: 100vh; @@ -341,15 +307,19 @@ page { overflow: hidden; } -.index-item-title-desc { - font-size: 25rpx; - color: #999999; - margin-top: 10rpx; -} + .index-item-price { font-size: 28rpx; - color: #ff5a10; + overflow: hidden; + color: $main-color; padding: 20rpx 0 0 20rpx; + >.point{ + >span{ + font-size: 42rpx; + font-weight: bold; + margin-right:10rpx; + } + } } diff --git a/pages/promotion/seckill.vue b/pages/promotion/seckill.vue index 2f5a527..5d1566b 100644 --- a/pages/promotion/seckill.vue +++ b/pages/promotion/seckill.vue @@ -1,7 +1,8 @@