初始化项目, 添加TDesign等包
This commit is contained in:
61
miniprogram/pages/agreement/agreement.js
Normal file
61
miniprogram/pages/agreement/agreement.js
Normal file
@@ -0,0 +1,61 @@
|
||||
// pages/agreement/agreement.js
|
||||
Page({
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
type: "",
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.setData({
|
||||
type: options.type,
|
||||
});
|
||||
wx.setNavigationBarTitle({
|
||||
title:
|
||||
options.type == "user"
|
||||
? "易宝赞数据化管理系统平台用户服务协议"
|
||||
: "易宝赞数据化管理系统隐私权政策",
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
// onShareAppMessage() {
|
||||
|
||||
// }
|
||||
});
|
||||
4
miniprogram/pages/agreement/agreement.json
Normal file
4
miniprogram/pages/agreement/agreement.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": ""
|
||||
}
|
||||
151
miniprogram/pages/agreement/agreement.wxml
Normal file
151
miniprogram/pages/agreement/agreement.wxml
Normal file
@@ -0,0 +1,151 @@
|
||||
<!--pages/agreement/agreement.wxml-->
|
||||
<view wx:if="{{type == 'user'}}" class="agreement-content">
|
||||
<view class="agreement-h1 text-center"> 易宝赞数据化管理系统平台用户服务协议 </view>
|
||||
<view style="text-indent: 0">
|
||||
<text class="text-bold">易宝赞数据化管理系统:</text>福州晨丰科技有限公司(易宝赞数据化管理系统所有者)
|
||||
</view>
|
||||
<view class="text-bold" style="text-indent: 0"> 用户: </view>
|
||||
<view>
|
||||
用户在使用易宝赞数据化管理系统提供的各项服务之前,请务必审慎阅读、充分理解本协议各条款内容,特别是免除或者限制易宝赞数据化管理系统责任的条款。用户阅读并勾选“同意”(具体以页面载明为准),或登录、或开始使用易宝赞数据化管理系统平台提供的服务等,即意味着用户同意本协议全部条款,并同意受其约束。
|
||||
</view>
|
||||
<view class="agreement-h2"> 一、易宝赞数据化管理系统简介 </view>
|
||||
<view>
|
||||
易宝赞数据化管理系统是一款服务于全屋定制家居行业的小程序,门店或者工厂只需要登录小程序就能看到海量的定制衣柜模块以及效果图。便于助力全屋定制门店的客户选定款式,快速助力门店签单。
|
||||
</view>
|
||||
<view class="agreement-h2"> 二、用户登录 </view>
|
||||
<view>
|
||||
购买福州晨丰科技有限公司开发的“晨丰家具设计生产管理系统2.0”软件的用户可用webcad或平台(晨丰爱家网管理系统)注册的手机号直接通过微信绑定的手机号码一键登录。
|
||||
</view>
|
||||
<view class="agreement-h2"> 三、四个功能模块 </view>
|
||||
<view> • 商品:用户可以看到自己店铺上传的商品模块 </view>
|
||||
<view> • 收藏:查看已收藏的商品模块 </view>
|
||||
<view> • 公库:系统开放的商品模块 </view>
|
||||
<view> • 我的:用户的店铺信息以及用户的账户信息 </view>
|
||||
<view class="agreement-h2"> 四、账户安全 </view>
|
||||
<view>
|
||||
用户应妥善保管账户信息,并对该用户账号进行的所有活动和事件承担法律责任。该账户仅限用户本人使用,禁止转让、交易、出租、出借,否则由此带来的包括但不限于用户资料和服务等的清空损失由用户自行承担。
|
||||
</view>
|
||||
<view class="agreement-h2"> 五、用户承诺 </view>
|
||||
<view>
|
||||
用户在使用易宝赞数据化管理系统时必须遵守《中华人民共和国网络安全法》等我国相关法律法规的相关规定,承诺不利用本服务进行任何违法或不正当的活动,否则由此造成的一切后果由用户自行承担。
|
||||
</view>
|
||||
<view class="agreement-h2"> 六、服务提供、暂停与终止 </view>
|
||||
<view>
|
||||
1、鉴于计算机及互联网的特殊性,易宝赞数据化管理系统在有以下正当理由的情况下可以随时调整或暂停或终止部分或全部的服务:
|
||||
</view>
|
||||
<view> (1)因黑客、病毒、电信部门技术调整和骨干线路中断等引起的事件; </view>
|
||||
<view>
|
||||
(2)易宝赞数据化管理系统在进行网络调整和维护时需要中断服务,或由于互联网通路的阻塞造成用户暂时无法使用易宝赞数据化管理系统服务;
|
||||
</view>
|
||||
<view>
|
||||
(3)易宝赞数据化管理系统提供的常规维护,包含但不限于故障处理、系统升级、系统调优、系统扩容等导致的易宝赞数据化管理系统服务不可用等;
|
||||
</view>
|
||||
<view>
|
||||
(4)用户操作不当或用户的电脑软件、系统、硬件和通信线路出现故障;
|
||||
</view>
|
||||
<view> (5)因国家或运营商政策调整导致易宝赞数据化管理系统无法提供服务的; </view>
|
||||
<view>
|
||||
(6)其他非易宝赞数据化管理系统过错、易宝赞数据化管理系统无法控制或无法预见的情形。但是,易宝赞数据化管理系统会尽可能事前通知用户,以便用户做好相关数据的转移备份以及业务调整等,以保护用户的合法权益。
|
||||
</view>
|
||||
<view>
|
||||
2、如本协议或本服务因为任何原因终止的(包括但不限于不可抗力、用户欠费、用户违规等情形),对于用户的易宝赞数据化管理系统用户帐号中的全部数据或用户因使用易宝赞数据化管理系统服务而存储在易宝赞数据化管理系统服务器中的数据等任何信息,易宝赞数据化管理系统将为用户保留180天。用户应及时完成全部数据的迁移和备份。保留期限届满后,易宝赞数据化管理系统将终止服务,服务系统将自动删除用户的所有数据。
|
||||
</view>
|
||||
<view>
|
||||
3、用户服务或用户账户的暂停、中断或终止不代表用户责任的终止,用户仍应对使用易宝赞数据化管理系统服务期间的行为承担可能的违约或损害赔偿责任,同时易宝赞数据化管理系统仍可保有用户的相关信息。
|
||||
</view>
|
||||
<view class="agreement-h2"> 七、责任免除 </view>
|
||||
<view>
|
||||
1、易宝赞数据化管理系统保留自行对易宝赞数据化管理系统平台及其相关功能、应用软件变更、升级、修改、迁移的权利;也保留开发新的模块、功能、软件和服务的权利。上述所有新的模块、功能、软件和服务的提供,除非易宝赞数据化管理系统另有说明,否则仍适用本协议。
|
||||
</view>
|
||||
<view>
|
||||
2、由于可能存在的计算机病毒、网络通讯故障、系统维护等方面的因素以及可能发生的不可抗力事件,用户同意易宝赞数据化管理系统在没有重大过失或恶意的情况下,易宝赞数据化管理系统无需对用户在使用易宝赞数据化管理系统平台服务时在数据传输中的迟延、不准确、错误、断点或疏漏及因此而致使的损害负责。
|
||||
</view>
|
||||
<view class="agreement-h2"> 八、知识产权 </view>
|
||||
<view>
|
||||
1、易宝赞数据化管理系统平台上的所有内容,包括但不限于所有产品、图片、资料、平台页面的安排、设计等,均由易宝赞数据化管理系统或其他权利人依法拥有其知识产权,包括但不限于商标权、专利权、著作权、商业秘密等。
|
||||
</view>
|
||||
<view>
|
||||
2、易宝赞数据化管理系统平台的Logo、“易宝赞数据化管理系统”等文字、图形及其组合,以及易宝赞数据化管理系统平台的其他标识、徵记、产品和服务名称均为福州晨丰科技有限公司依法拥有的商标,未经书面授权,任何人不得以任何方式展示、使用或作其他处理。
|
||||
</view>
|
||||
<view class="agreement-h2"> 九、协议效力及纠纷解决 </view>
|
||||
<view>
|
||||
1、本协议的订立、效力、解释、履行和争议的解决均适用中华人民共和国法律法规。
|
||||
</view>
|
||||
<view>
|
||||
2、有关本协议的任何争议应由双方友好协商解决,协商不成的,双方同意将争议提交至福州晨丰科技有限公司所在地人民法院诉讼解决。
|
||||
</view>
|
||||
<view>
|
||||
3、本协议自易宝赞数据化管理系统平台上线后立即生效,自用户勾选“同意”(具体以页面载明为准)后对双方产生约束力,具体时间以易宝赞数据化管理系统平台记录的时间为准。
|
||||
</view>
|
||||
</view>
|
||||
<view wx:elif="{{type == 'privacy'}}" class="agreement-content">
|
||||
<view class="agreement-h1 text-center"> 易宝赞数据化管理系统隐私权政策 </view>
|
||||
<view style="text-indent: 0">
|
||||
<text class="text-bold">易宝赞数据化管理系统:</text>福州晨丰科技有限公司(易宝赞数据化管理系统所有者)
|
||||
</view>
|
||||
<view class="text-bold" style="text-indent: 0"> 用户: </view>
|
||||
<view>
|
||||
用户在使用易宝赞数据化管理系统提供的各项服务之前,请务必审慎阅读、充分理解本隐私权政策的各条款内容,特别是免除或者限制易宝赞数据化管理系统责任的条款。用户阅读并勾选“同意”(具体以页面载明为准),或登录、或开始使用易宝赞数据化管理系统平台提供的服务等,即意味着用户同意本隐私权政策的全部条款,并同意受其约束。
|
||||
</view>
|
||||
<view class="agreement-h2"> 一、服务范围 </view>
|
||||
<view>
|
||||
本政策适用于易宝赞数据化管理系统平台提供的所有产品和服务。易宝赞数据化管理系统尊重并保护所有使用易宝赞数据化管理系统服务用户的个人隐私权。为了给所有用户提供更准确、更有个性化的服务,易宝赞数据化管理系统按照本隐私权政策使用和披露用户个人信息,易宝赞数据化管理系统郑重承诺将以高度的勤勉、审慎义务对待这些信息,未经用户授权,易宝赞数据化管理系统不会将这些信息对外披露或向第三方提供。
|
||||
</view>
|
||||
<view class="agreement-h2"> 二、登录过程中的信息获取 </view>
|
||||
<view>
|
||||
1、易宝赞数据化管理系统在用户授权下从webcad或平台(晨丰爱家网管理系统)处获取用户的第三方账户信息,并与用户的易宝赞数据化管理系统账户进行绑定,便于用户通过第三方账户注册的手机号直接通过微信绑定的手机号码一键登录易宝赞数据化管理系统,易宝赞数据化管理系统将在用户同意范围内使用用户的相关信息。
|
||||
</view>
|
||||
<view>
|
||||
2、易宝赞数据化管理系统在用户授权同意后向第三方共享用户的账户信息(头像、昵称及其他页面提示的信息),便于用户便捷地实现第三方账户的注册或登录。
|
||||
</view>
|
||||
<view>
|
||||
3、在用户授权同意下,易宝赞数据化管理系统“我的“模块中展示的用户的店铺信息以及用户的账户信息将显示上述用户个人资料。
|
||||
</view>
|
||||
<view class="agreement-h2"> 三、提供商品或服务过程中的信息获取 </view>
|
||||
<view> 易宝赞数据化管理系统向用户提供服务时,将收集和使用用户以下信息: </view>
|
||||
<view>
|
||||
1、在访问或使用易宝赞数据化管理系统平台时的浏览、搜索记录及设备信息、服务日志信息,提取用户的偏好特征。
|
||||
</view>
|
||||
<view>
|
||||
2、获取用户的设备信息、设备所在位置相关信息(在用户开启位置权限后访问获取用户位置信息,根据位置信息为用户提供更契合需求的页面展示、产品或服务)、设备摄像头(用户在开启相机/摄像头权限后使用该功能进行扫码用于登录、更换头像、发表评论/分享、拍摄照片或视频用于评论、分享等)等相关经用户授权获取的信息。
|
||||
</view>
|
||||
<view>
|
||||
3、在用户浏览易宝赞数据化管理系统小程序的过程中,可选择对感兴趣的柜子款式点击收藏、通过平台提供的功能组件向其他第三方分享信息。在用户使用上述功能的过程中,平台会收集包括用户的收藏、分享历史在内的服务日志信息用于实现上述功能及其他平台明确告知的目的。
|
||||
</view>
|
||||
<view>
|
||||
4、按照微信平台规则读取用户的手机号、微信openID、UnionID和其他微信公开信息(如昵称、头像),其中手机号用于登录,openID、UnionID用于将微信绑定易宝赞数据化管理系统平台账号。易宝赞数据化管理系统将按照腾讯微信平台规则及按照用户自愿填写并展示的信息进行展示。
|
||||
</view>
|
||||
<view>
|
||||
5、其他易宝赞数据化管理系统在提供服务过程中必须获取才能为用户提供所有产品服务且经用户授权的相关个人信息。
|
||||
</view>
|
||||
<view class="agreement-h2"> 四、信息披露 </view>
|
||||
<view>
|
||||
用户充分理解并同意,易宝赞数据化管理系统在以下情况下收集、使用用户的个人信息无需用户的授权同意:
|
||||
</view>
|
||||
<view>
|
||||
1、根据法律规定,或者按行政机关或公检法机关要求,向第三方或者行政机关或公检法机关披露;
|
||||
</view>
|
||||
<view> 2、与国家安全、国防安全有关的披露; </view>
|
||||
<view> 3、与公共安全、公共卫生、重大公共利益有关的披露; </view>
|
||||
<view> 4、出于维护用户或其他个人的生命、财产重大合法权益所需的披露; </view>
|
||||
<view> 5、其他易宝赞数据化管理系统根据法律、法规或者平台政策要求的披露。 </view>
|
||||
<view class="agreement-h2"> 五、信息安全 </view>
|
||||
<view>
|
||||
易宝赞数据化管理系统账号均有安全保护功能,请用户妥善保管账户信息。如用户发现个人信息泄密,尤其是易宝赞数据化管理系统账号及密码发生泄漏,请立即联络易宝赞数据化管理系统客服,以便易宝赞数据化管理系统采取相应措施。
|
||||
</view>
|
||||
<view class="agreement-h2"> 六、责任免除 </view>
|
||||
<view>
|
||||
由于可能存在的黑客、计算机病毒等方面的因素以及可能发生的不可抗力事件,用户同意易宝赞数据化管理系统在没有重大过失或恶意的情况下,易宝赞数据化管理系统无需对用户在使用易宝赞数据化管理系统平台服务时个人信息泄露及因此而致使的损害负责。
|
||||
</view>
|
||||
<view class="agreement-h2"> 七、隐私权政策效力及争议解决 </view>
|
||||
<view>
|
||||
1、本隐私权政策的订立、效力、解释、履行和争议的解决均适用中华人民共和国法律法规。
|
||||
</view>
|
||||
<view>
|
||||
2、本隐私权政策是《易宝赞数据化管理系统平台用户服务协议》不可分割的组成部分。有关本隐私权政策的任何争议应由双方友好协商解决,协商不成的,双方同意将争议提交至福州晨丰科技有限公司所在地人民法院诉讼解决。
|
||||
</view>
|
||||
<view>
|
||||
3、隐私权政策自易宝赞数据化管理系统平台上线后立即生效,自用户勾选“同意”(具体以页面载明为准)后对双方产生约束力,具体时间以易宝赞数据化管理系统平台记录的时间为准。
|
||||
</view>
|
||||
</view>
|
||||
<text wx:else></text>
|
||||
32
miniprogram/pages/agreement/agreement.wxss
Normal file
32
miniprogram/pages/agreement/agreement.wxss
Normal file
@@ -0,0 +1,32 @@
|
||||
/* pages/agreement/agreement.wxss */
|
||||
|
||||
page {
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
/*兼容 IOS<11.2*/
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
/*兼容 IOS>11.2*/
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.agreement-content {
|
||||
padding: 12px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.agreement-content > view {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.agreement-content > view:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.agreement-content > .agreement-h1 {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.agreement-content > .agreement-h2 {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
9
miniprogram/pages/components/page-plugin/index.json
Normal file
9
miniprogram/pages/components/page-plugin/index.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-button": "tdesign-miniprogram/button/button",
|
||||
"t-checkbox": "tdesign-miniprogram/checkbox/checkbox",
|
||||
"t-divider": "tdesign-miniprogram/divider/divider",
|
||||
"t-link": "tdesign-miniprogram/link/link"
|
||||
}
|
||||
}
|
||||
115
miniprogram/pages/components/page-plugin/index.ts
Normal file
115
miniprogram/pages/components/page-plugin/index.ts
Normal file
@@ -0,0 +1,115 @@
|
||||
import { base, defaultAvatarUrl } from "@/utils/config";
|
||||
import { Subscribe } from "@/utils/subscribe";
|
||||
import { getCurrentPageRoute, getStorage, setStorage } from "@/utils/util";
|
||||
// import { IStorage } from "@/utils/storage";
|
||||
|
||||
// const app = getApp();
|
||||
// const Storage: IStorage = app.Storage;
|
||||
|
||||
Component({
|
||||
options: { addGlobalClass: true },
|
||||
properties: {
|
||||
isLogin: Boolean,
|
||||
loading: Boolean,
|
||||
isAuth: null,
|
||||
style: null,
|
||||
},
|
||||
|
||||
attached() {
|
||||
this.setData({ isLogin: getStorage("isLogin") == 1 });
|
||||
|
||||
console.log("attached");
|
||||
Subscribe.on("isLogin", getCurrentPageRoute(), () => {
|
||||
this.setData({ isLogin: getStorage("isLogin") == 1 });
|
||||
console.log("监听到 isLogin 变化:");
|
||||
});
|
||||
},
|
||||
detached() {
|
||||
console.log("detached");
|
||||
Subscribe.off("isLogin", getCurrentPageRoute());
|
||||
},
|
||||
|
||||
data: {
|
||||
avatarUrl: defaultAvatarUrl,
|
||||
isAgree: false,
|
||||
appletName: base.appletName,
|
||||
show: false,
|
||||
companyList: [],
|
||||
encryptedData: "",
|
||||
iv: "",
|
||||
},
|
||||
methods: {
|
||||
handleLogin(e: any) {
|
||||
this.triggerEvent("handleLogin", e.detail);
|
||||
},
|
||||
getPhoneNumberToast() {
|
||||
setStorage("isLogin", 1);
|
||||
Subscribe.set("isLogin", "zzzuz");
|
||||
wx.showToast({ title: "请先勾选协议", icon: "none" });
|
||||
},
|
||||
changeAgreementCheck(event: any) {
|
||||
this.setData({ isAgree: event.detail.checked });
|
||||
},
|
||||
navAgreement(e: any) {
|
||||
wx.navigateTo({
|
||||
url: "../agreement/agreement?type=" + e.target.dataset.type,
|
||||
});
|
||||
},
|
||||
// getPhoneNumber(e) {
|
||||
// this.triggerEvent("getPhoneNumber", e);
|
||||
// },
|
||||
getPhoneNumber(e: any) {
|
||||
if (e.detail.encryptedData) {
|
||||
this.data.encryptedData = e.detail.encryptedData;
|
||||
this.data.iv = e.detail.iv;
|
||||
console.log(e);
|
||||
|
||||
// login(e.detail.encryptedData, e.detail.iv)
|
||||
// .then((res) => {
|
||||
// console.log(res);
|
||||
// if (isArray(res.data)) {
|
||||
// this.setData({
|
||||
// companyList: res.data,
|
||||
// show: true,
|
||||
// });
|
||||
// } else {
|
||||
// this.triggerEvent("handleLogin", true);
|
||||
// }
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// this.triggerEvent("handleLogin", false);
|
||||
// });
|
||||
} else {
|
||||
wx.showToast({ title: e.detail.errMsg, icon: "none" });
|
||||
}
|
||||
},
|
||||
login2(e: any) {
|
||||
console.log(e.currentTarget.dataset.company_id);
|
||||
// login(
|
||||
// this.data.encryptedData,
|
||||
// this.data.iv,
|
||||
// 2,
|
||||
// e.currentTarget.dataset.company_id
|
||||
// )
|
||||
// .then((res) => {
|
||||
// console.log(res);
|
||||
// if (isArray(res.data)) {
|
||||
// this.setData({
|
||||
// companyList: res.data,
|
||||
// });
|
||||
// } else {
|
||||
// this.setData({
|
||||
// show: false,
|
||||
// });
|
||||
// this.triggerEvent("handleLogin", true);
|
||||
// }
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// this.triggerEvent("handleLogin", false);
|
||||
// });
|
||||
},
|
||||
close() {
|
||||
this.setData({ show: false });
|
||||
},
|
||||
},
|
||||
});
|
||||
37
miniprogram/pages/components/page-plugin/index.wxml
Normal file
37
miniprogram/pages/components/page-plugin/index.wxml
Normal file
@@ -0,0 +1,37 @@
|
||||
<block wx:if="{{isLogin}}">
|
||||
<view wx:if="{{!isAuth}}" style="padding: 12px;padding-bottom: env(safe-area-inset-bottom);{{style ||''}}">
|
||||
<slot></slot>
|
||||
</view>
|
||||
<no_auth_plugin wx:else />
|
||||
</block>
|
||||
<block wx:else>
|
||||
<!-- <loading_plugin wx:if="{{loading}}" /> -->
|
||||
<view style="padding: 0 16px;height: 90vh;justify-content: center;display: flex;flex-direction: column;">
|
||||
<view style="display: flex;justify-content: center;">
|
||||
<view style="width: 80px;height: 80px;overflow: hidden;border-radius: 80px;">
|
||||
<image style="width: 100%;height: 100%;object-fit: cover;" src="{{avatarUrl}}" mode="cover"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding: 20px 0">
|
||||
<view>本小程序仅供{{appletName}}用户使用</view>
|
||||
<view>申请获取以下权限</view>
|
||||
<view>获取您的公开信息(昵称,头像等)</view>
|
||||
</view>
|
||||
<t-button wx:if="{{isAgree}}" block open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" theme="primary">
|
||||
一键登录
|
||||
</t-button>
|
||||
<t-button wx:else block type="primary" bindtap="getPhoneNumberToast">
|
||||
一键登录
|
||||
</t-button>
|
||||
|
||||
<t-checkbox borderless style="padding: 0;margin: 1em 0;" value="{{isAgree}}" bind:change="changeAgreementCheck">
|
||||
我已阅读并同意
|
||||
</t-checkbox>
|
||||
<!-- <t-divider /> -->
|
||||
<t-link theme="primary" bindtap="navAgreement" data-type="user" style="margin-bottom: 8px;">
|
||||
《{{appletName}}平台用户服务协议》</t-link>
|
||||
<t-link theme="primary" bindtap="navAgreement" data-type="privacy" style="margin-bottom: 8px;">
|
||||
《{{appletName}}隐私权政策》</t-link>
|
||||
|
||||
</view>
|
||||
</block>
|
||||
1
miniprogram/pages/components/page-plugin/index.wxss
Normal file
1
miniprogram/pages/components/page-plugin/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* components/page-plugin/index.wxss */
|
||||
6
miniprogram/pages/index/index.json
Normal file
6
miniprogram/pages/index/index.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-button": "tdesign-miniprogram/button/button",
|
||||
"t-icon": "tdesign-miniprogram/icon/icon"
|
||||
}
|
||||
}
|
||||
59
miniprogram/pages/index/index.ts
Normal file
59
miniprogram/pages/index/index.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
// pages/index/index.ts
|
||||
|
||||
import { Subscribe } from "@/utils/subscribe";
|
||||
|
||||
// const app = getApp();
|
||||
// const Storage = app.Storage;
|
||||
Page({
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {},
|
||||
|
||||
change() {
|
||||
Subscribe.set("isLogin", "zzzuz");
|
||||
// wx.navigateTo({ url: "/pages/my/my" });
|
||||
},
|
||||
navToMy() {
|
||||
wx.navigateTo({ url: "/pages/my/my" });
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {},
|
||||
});
|
||||
6
miniprogram/pages/index/index.wxml
Normal file
6
miniprogram/pages/index/index.wxml
Normal file
@@ -0,0 +1,6 @@
|
||||
<page-plugin>
|
||||
<text>pages/index/index.wxml</text>
|
||||
<t-button bind:tap="change">change</t-button>
|
||||
<t-button bind:tap="navToMy">my</t-button>
|
||||
<t-icon name="user-vip" style="color: #0052D9" size="20px"></t-icon>
|
||||
</page-plugin>
|
||||
1
miniprogram/pages/index/index.wxss
Normal file
1
miniprogram/pages/index/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/index/index.wxss */
|
||||
5
miniprogram/pages/my/my.json
Normal file
5
miniprogram/pages/my/my.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-button": "tdesign-miniprogram/button/button"
|
||||
}
|
||||
}
|
||||
50
miniprogram/pages/my/my.ts
Normal file
50
miniprogram/pages/my/my.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
import { Subscribe } from "@/utils/subscribe";
|
||||
import { setStorage } from "@/utils/util";
|
||||
|
||||
Page({
|
||||
data: {},
|
||||
change() {
|
||||
setStorage("isLogin", 1);
|
||||
Subscribe.set("isLogin", "zzzuz");
|
||||
// wx.navigateTo({ url: "/pages/my/my" });
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {},
|
||||
});
|
||||
5
miniprogram/pages/my/my.wxml
Normal file
5
miniprogram/pages/my/my.wxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<page-plugin>
|
||||
|
||||
<text>pages/my/my.wxml</text>
|
||||
<t-button bind:tap="change">change</t-button>
|
||||
</page-plugin>
|
||||
1
miniprogram/pages/my/my.wxss
Normal file
1
miniprogram/pages/my/my.wxss
Normal file
@@ -0,0 +1 @@
|
||||
/* pages/my/my.wxss */
|
||||
Reference in New Issue
Block a user