perf: 🎨 改善促销部分荣誉代码 封装为组件使用 更加便捷以及好看。 优化部分页面显示问题

删除部分原有的老样式  更新新版促销样式 页面更加好看 删除冗余代码 封装多种方法以及组件
This commit is contained in:
lemon橪
2022-09-15 15:40:50 +08:00
parent 8c8522c68e
commit 1e9df74034
70 changed files with 721 additions and 814 deletions

View File

@@ -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}`,
});
}

View File

@@ -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",
});

View File

@@ -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 : ""}`,
});
},

View File

@@ -50,7 +50,7 @@ export default {
* 跳转
*/
navgition(url) {
this.$navigateTo({
uni.navigateTo({
url,
});
},

View File

@@ -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}`,
});
}

View File

@@ -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}`,
});
},

View File

@@ -221,7 +221,7 @@ export default {
* 查看图片
*/
handleNavgationGoods(val) {
this.$navigateTo({
uni.navigateTo({
url: `/pages/product/goods?id=${val.skuId}&goodsId=${val.goodsId}`,
});
},

View File

@@ -56,7 +56,7 @@
methods: {
...mapMutations(["logout"]),
navigateTo(url) {
this.$navigateTo({
uni.navigateTo({
url
});
},

View File

@@ -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,
})
},

View File

@@ -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,
});
},

View File

@@ -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,
});
},

View File

@@ -88,7 +88,7 @@ export default {
},
navigateTo(url) {
this.$navigateTo({
uni.navigateTo({
url,
});
},

View File

@@ -16,7 +16,7 @@ export default {
methods: {
navigateTo(url) {
this.$navigateTo({
uni.navigateTo({
url: url,
});
},

View File

@@ -49,7 +49,7 @@ export default {
if (url == "/pages/set/securityCenter/securityCenter") {
url += `?mobile=${this.userInfo.mobile}`;
}
this.$navigateTo({
uni.navigateTo({
url: url,
});
},