Commit ebc1d51a authored by lg's avatar lg

chore: 工具/会员卡片和会员权益/新增状态跳转到注册页

parent f0fc260c
...@@ -16,8 +16,8 @@ const { ...@@ -16,8 +16,8 @@ const {
// request.js // request.js
// 通常可以吧 baseUrl 单独放在一个 js 文件了 // 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.230.108:7777/pmall"; // const baseUrl = "http://172.16.230.108:7777/pmall";
const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境 // const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
// let baseUrl = "https://momclub.feihe.com/pmall";//生产环境 let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock // const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
// const baseUrl = "https://feihe.m.duibatest.com.cn/pmall" // const baseUrl = "https://feihe.m.duibatest.com.cn/pmall"
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<template v-if="type == '2'"> <template v-if="type == '2'">
{{ isType == '0' ? '添加状态' : isType == '3' ? '我知道了' : isType == '1' ? '切换状态' : '修改状态' }} {{ isType == '0' ? '添加状态' : isType == '3' ? '我知道了' : isType == '1' ? '切换状态' : '修改状态' }}
</template> </template>
<button v-if="isNotLogin" type="primary" class="phone-button" open-type="getPhoneNumber" <button v-if="false && isNotLogin" type="primary" class="phone-button" open-type="getPhoneNumber"
@getphonenumber="getRealtimePhoneNumber" /> @getphonenumber="getRealtimePhoneNumber" />
</view> </view>
</view> </view>
...@@ -60,6 +60,7 @@ import { ...@@ -60,6 +60,7 @@ import {
watch watch
} from 'vue' } from 'vue'
import { useUserStore } from "@/stores/user"; import { useUserStore } from "@/stores/user";
import {jump, JumpType} from "@/utils";
// 接受父组件参数 // 接受父组件参数
const props = defineProps({ const props = defineProps({
type: { type: {
...@@ -147,6 +148,10 @@ const modifyState = async () => { ...@@ -147,6 +148,10 @@ const modifyState = async () => {
// 跳转新增产检页面 // 跳转新增产检页面
const onAdd = () => { const onAdd = () => {
if (props.isNotLogin == true) { if (props.isNotLogin == true) {
jump({
type: JumpType.INNER,
url: "/pages/activity/register",
})
return; return;
} }
// 0 添加状态或者宝宝 1 切换状态 2 修改状态 3 宝宝已达上限 // 0 添加状态或者宝宝 1 切换状态 2 修改状态 3 宝宝已达上限
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment