Commit 3e8800cd by 胡悦

feat: 更新应用名称并修复生产环境loading问题

- 将应用名称从“展业助手”更改为“广爱展业助手”
- 修复生产环境下页面跳转后loading可能无法自动关闭的问题,在多个页面添加兜底隐藏逻辑
- 更新环境配置,将默认环境从dev切换到uat,并修正beta环境域名
- 在登录页面和设置组件中增加《用户协议》链接,与《隐私协议》并列显示
- 将门店搜索和显示的“商户号”文案统一改为“门店编码”
- 更新ICP备案号信息
1 parent 2e604188
...@@ -15,9 +15,12 @@ ...@@ -15,9 +15,12 @@
<view class="btn flex" @click="openChangePassword">修改密码</view> <view class="btn flex" @click="openChangePassword">修改密码</view>
<view class="btn flex logout" @click="logout">退出</view> <view class="btn flex logout" @click="logout">退出</view>
</view> </view>
<view class="a" @click="jump('agreement')">《用户隐私协议》</view> <view class="a flex">
<text @click="jump('privacy')">《隐私协议》</text>
<text class="ml-2" @click="jump('agreement')">《用户协议》</text>
</view>
<view class="icp flex" @click="jump('icp')"> <view class="icp flex" @click="jump('icp')">
ICP备案号:苏ICP备18023686号-2A ICP备案号:粤ICP备2023053179号-16A
<view class="sprite-icon icon-arrow-right"></view> <view class="sprite-icon icon-arrow-right"></view>
</view> </view>
<view class="app-code flex"> <view class="app-code flex">
...@@ -165,12 +168,18 @@ export default { ...@@ -165,12 +168,18 @@ export default {
}) })
}, },
jump(type) { jump(type) {
let url = type == 'icp' ? 'https://beian.miit.gov.cn/' : let url = ''
'https://img01.glsx.com.cn/weapp/resource/miniprogram/market-assistant/html/agreement.html' if (type === 'icp') {
uni.navigateTo({ url = 'https://beian.miit.gov.cn/'
url: `/pages/common/webview?url=${url}` } else if (type === 'privacy') {
}) url = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/market-assistant/html/privacy.html'
} } else {
url = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/market-assistant/html/agreement.html'
}
uni.navigateTo({
url: `/pages/common/webview?url=${url}`
})
}
} }
} }
</script> </script>
...@@ -253,6 +262,16 @@ export default { ...@@ -253,6 +262,16 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #2c66f7; color: #2c66f7;
margin: toRpx(48) 0 toRpx(16); margin: toRpx(48) 0 toRpx(16);
justify-content: center;
align-items: center;
text {
flex-shrink: 0;
}
.ml-2 {
margin-left: toRpx(20);
}
} }
.icp { .icp {
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 1 const index = 2
/** /**
* *
0本地 0本地
...@@ -80,7 +80,7 @@ const merchantDomain = { ...@@ -80,7 +80,7 @@ const merchantDomain = {
const shukeDomain = { const shukeDomain = {
ip: 'http://wescrm.test.glshuke.com', ip: 'http://wescrm.test.glshuke.com',
dev: 'http://wescrm.test.glshuke.com', dev: 'http://wescrm.test.glshuke.com',
beta: 'http://wescrm.test.glshuke.com', // beta: 'http://wescrm.beta.glshuke.com', //
uat: 'http://wescrm.test.glshuke.com', // uat: 'http://wescrm.test.glshuke.com', //
}[target[index]] }[target[index]]
......
{ {
"name" : "展业助手", "name" : "广爱展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
......
...@@ -14,6 +14,8 @@ export default { ...@@ -14,6 +14,8 @@ export default {
}) })
let userInfo = uni.$storage.get('userInfo') let userInfo = uni.$storage.get('userInfo')
if (userInfo) { if (userInfo) {
// 先隐藏 loading 再跳转,避免生产环境下 loading 无法自动关闭
uni.hideLoading()
uni.reLaunch({ uni.reLaunch({
url: '/pages/equity/index' url: '/pages/equity/index'
}) })
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
- 如果只有一个门店,自动选中并直接调用 `confirmLoginStore` - 如果只有一个门店,自动选中并直接调用 `confirmLoginStore`
- `confirmLoginStore` 返回的 `res.data.user` 需要存储到 `userInfo` 缓存 - `confirmLoginStore` 返回的 `res.data.user` 需要存储到 `userInfo` 缓存
- 登录成功后需要清理临时存储的 `loginForm` - 登录成功后需要清理临时存储的 `loginForm`
- 搜索功能通过 `filteredStores` 计算属性实现,支持门店名称和商户号搜索 - 搜索功能通过 `filteredStores` 计算属性实现,支持门店名称和门店编码搜索
--- ---
......
...@@ -76,7 +76,8 @@ ...@@ -76,7 +76,8 @@
:color="`${readingStatus ? '#2C66F7' : '#858A94'}`" :color="`${readingStatus ? '#2C66F7' : '#858A94'}`"
></uni-icons> ></uni-icons>
我已阅读并同意 我已阅读并同意
<text @click.stop="jumpUrl()">《隐私协议》</text> <text @click.stop="jumpUrl('privacy')">《隐私协议》</text>
<text @click.stop="jumpUrl('userPrivacy')">《用户协议》</text>
</view> </view>
<view <view
class="autoLogin" class="autoLogin"
...@@ -208,8 +209,13 @@ export default { ...@@ -208,8 +209,13 @@ export default {
}); });
} }
}, 200), }, 200),
jumpUrl () { jumpUrl (type) {
let url = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/market-assistant/html/privacy.html' let url = ''
if (type === 'userPrivacy') {
url = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/market-assistant/html/agreement.html'
} else {
url = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/market-assistant/html/privacy.html'
}
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/webview?url=${url}` url: `/pages/common/webview?url=${url}`
}) })
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
class="search-input" class="search-input"
type="text" type="text"
v-model="searchKeyword" v-model="searchKeyword"
placeholder="请输入门店名称/商户号搜索" placeholder="请输入门店名称/门店编码搜索"
placeholder-class="search-placeholder" placeholder-class="search-placeholder"
/> />
<view class="search-icon"> <view class="search-icon">
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</view> </view>
<view class="store-info"> <view class="store-info">
<view class="store-name">{{ item.storeName }}</view> <view class="store-name">{{ item.storeName }}</view>
<view class="store-code">商户号:{{ item.spCode || item.storeCode }}</view> <view class="store-code">门店编码:{{ item.spCode || item.storeCode }}</view>
</view> </view>
<view class="selected-icon" v-if="selectedStoreCode === item.storeCode"> <view class="selected-icon" v-if="selectedStoreCode === item.storeCode">
<uni-icons type="checkbox-filled" size="24" color="#2C66F7"></uni-icons> <uni-icons type="checkbox-filled" size="24" color="#2C66F7"></uni-icons>
......
...@@ -95,6 +95,10 @@ export default { ...@@ -95,6 +95,10 @@ export default {
// 确保初始化时清空 id,保证显示首页 // 确保初始化时清空 id,保证显示首页
this.id = '' this.id = ''
}, },
onReady () {
// 兜底:确保页面渲染完成后关闭 loading,防止生产环境下 loading 无法关闭
uni.hideLoading()
},
async onShow () { async onShow () {
this.init() this.init()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!