fix: 修改商户生成码推广链接

pull/2/head
TianYu 2023-05-22 14:00:59 +08:00
parent 0799a89b0e
commit e2f85963ca
3 changed files with 25 additions and 23 deletions

View File

@ -346,7 +346,7 @@ export default {
}, },
handleQRCode(row) { handleQRCode(row) {
const baseUrl = 'http://yuxy.perrymake.com' const baseUrl = 'http://yuxy.perrymake.com'
const url =`${baseUrl}/pages/index/index?redirectUrl=${baseUrl}&tenantId=${row.id}` const url =`${baseUrl}/pages/member_application/index?redirectUrl=${baseUrl}&tenantId=${row.id}`
QRCode.toCanvas(document.getElementById(`id-${row.id}`), url, { QRCode.toCanvas(document.getElementById(`id-${row.id}`), url, {
scale: 2 scale: 2
}, function (error) { }, function (error) {

View File

@ -567,30 +567,31 @@
"selectedColor": "#fc4141", "selectedColor": "#fc4141",
"borderStyle": "white", "borderStyle": "white",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"list": [{ "list": [
"pagePath": "pages/index/index", // {
"iconPath": "static/images/tabbar/nav_icon_shop.png", // "pagePath": "pages/index/index",
"selectedIconPath": "static/images/1-002.png", // "iconPath": "static/images/tabbar/nav_icon_shop.png",
"text": "商城" // "selectedIconPath": "static/images/1-002.png",
}, // "text": "商城"
{ // },
"pagePath": "pages/goods_cate/goods_cate", // {
"iconPath": "static/images/tabbar/nav_icon_sort.png", // "pagePath": "pages/goods_cate/goods_cate",
"selectedIconPath": "static/images/2-002.png", // "iconPath": "static/images/tabbar/nav_icon_sort.png",
"text": "分类" // "selectedIconPath": "static/images/2-002.png",
}, // "text": "分类"
// },
{ {
"pagePath": "pages/member_application/index", "pagePath": "pages/member_application/index",
"iconPath": "static/images/2-001.png", "iconPath": "static/images/2-001.png",
"selectedIconPath": "static/images/tabbar/nav_icon_member_active.png", "selectedIconPath": "static/images/tabbar/nav_icon_member_active.png",
"text": "会员申请" "text": "会员申请"
}, },
{ // {
"pagePath": "pages/order_addcart/order_addcart", // "pagePath": "pages/order_addcart/order_addcart",
"iconPath": "static/images/tabbar/nav_icon_cart.png", // "iconPath": "static/images/tabbar/nav_icon_cart.png",
"selectedIconPath": "static/images/3-002.png", // "selectedIconPath": "static/images/3-002.png",
"text": "购物车" // "text": "购物车"
}, // },
{ {
"pagePath": "pages/user/index", "pagePath": "pages/user/index",
"iconPath": "static/images/tabbar/nav_icon_my.png", "iconPath": "static/images/tabbar/nav_icon_my.png",

View File

@ -269,10 +269,11 @@
getUserInfo().then(res => { getUserInfo().then(res => {
this.$store.commit("UPDATE_USERINFO", res.data); this.$store.commit("UPDATE_USERINFO", res.data);
// let backUrl = this.$Cache.get(BACK_URL) || "/pages/index/index"; // let backUrl = this.$Cache.get(BACK_URL) || "/pages/index/index";
let backUrl = "/pages/index/index"; let backUrl = "/pages/member_application/index";
if (backUrl.indexOf('/pages/users/login/index') !== -1) { // let backUrl = "/pages/index/index";
backUrl = '/pages/index/index'; // if (backUrl.indexOf('/pages/users/login/index') !== -1) {
} // backUrl = '/pages/index/index';
// }
uni.reLaunch({ uni.reLaunch({
url: backUrl url: backUrl
}); });