提交 845d00d6 编写于 作者: DCloud_JSON's avatar DCloud_JSON

关联配置文件的协议链接

上级 5523b730
......@@ -28,11 +28,11 @@ module.exports = {
"agreements":[
{
"title":"用户服务协议",
"url":"https://uniapp.dcloud.io/"
"url":"https://ask.dcloud.net.cn/protocol.html"
},
{
"title":"隐私政策",
"url":"https://uniapp.dcloud.io/"
"url":"https://ask.dcloud.net.cn/protocol.html"
}
],
"download":"https://m3w.cn/uniapp"
......
......@@ -33,7 +33,8 @@
</view>
</template>
<script>
<script>
import {about} from '@/baseapp.config.js';
export default {
data() {
return {
......@@ -50,12 +51,12 @@
methods: {
openprotocol(e) {
uni.navigateTo({
url: "/pages/component/web-view/web-view?url=https://ask.dcloud.net.cn/protocol.html"
url: "/pages/common/webview/webview?url="+about.agreements[0].url
})
},
openPrivacyPolicy(e) {
uni.navigateTo({
url: "/pages/component/web-view/web-view?url=/hybrid/html/privacy-policy.html"
url: "/pages/common/webview/webview?url="+about.agreements[1].url
})
},
agree(e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册