提交 3f579656 编写于 作者: DCloud_JSON's avatar DCloud_JSON 提交者: study夏羽

修改错误的文章表的读权限表达式

上级 f2ac920b
## 1.1.4(2021-08-31)
修改错误的文章表`SChema`的读权限表达式
## 1.1.3(2021-08-31) ## 1.1.3(2021-08-31)
修复在微信小程序端默认语言为英文的问题 修复在微信小程序端默认语言为英文的问题
## 1.1.2(2021-08-30) ## 1.1.2(2021-08-30)
......
{ {
"id": "uni-starter", "id": "uni-starter",
"displayName": "uni-starter", "displayName": "uni-starter",
"version": "1.1.3", "version": "1.1.4",
"description": "云端一体应用快速开发基本项目模版", "description": "云端一体应用快速开发基本项目模版",
"keywords": [ "keywords": [
"login", "login",
......
...@@ -17,16 +17,20 @@ ...@@ -17,16 +17,20 @@
<template v-if="!loading && data"> <template v-if="!loading && data">
<uni-list :border="false"> <uni-list :border="false">
<uni-list-item thumbSize="lg" :thumb="data.image"> <uni-list-item thumbSize="lg" :thumb="data.image">
<!-- 通过body插槽定义作者信息内容 --> <!-- 通过body插槽定义作者信息内容 -->
<view slot="body" class="header-content"> <template v-slot:body>
<view class="uni-title">{{data.user_id && data.user_id[0].username}}</view> <view class="header-content">
</view> <view class="uni-title">{{data.user_id && data.user_id[0].username}}</view>
<view slot="footer" class="footer"> </view>
<view class="uni-note">更新于 </template>
<uni-dateformat :date="data.last_modify_date" format="yyyy-MM-dd hh:mm" <template v-slot:footer>
:threshold="[60000, 2592000000]" /> <view class="footer">
</view> <view class="uni-note">更新于
</view> <uni-dateformat :date="data.last_modify_date" format="yyyy-MM-dd hh:mm"
:threshold="[60000, 2592000000]" />
</view>
</view>
</template>
</uni-list-item> </uni-list-item>
</uni-list> </uni-list>
<view class="banner"> <view class="banner">
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<uni-forms-item name="code"> <uni-forms-item name="code">
<uni-easyinput :focus="formData.phone.length==11" type="number" class="easyinput" :inputBorder="false" <uni-easyinput :focus="formData.phone.length==11" type="number" class="easyinput" :inputBorder="false"
v-model="formData.code" maxlength="6" :placeholder="$t('common.verifyCodePlaceholder')"> v-model="formData.code" maxlength="6" :placeholder="$t('common.verifyCodePlaceholder')">
<template slot="right"> <template v-slot:right>
<uni-send-sms-code ref="shortCode" :phone="formData.phone"></uni-send-sms-code> <uni-send-sms-code ref="shortCode" :phone="formData.phone"></uni-send-sms-code>
</template> </template>
</uni-easyinput> </uni-easyinput>
......
...@@ -19,10 +19,12 @@ ...@@ -19,10 +19,12 @@
<uni-list-item v-for="(item,i) in sublist" :title="item.title" link :rightText="item.rightText" :key="i" <uni-list-item v-for="(item,i) in sublist" :title="item.title" link :rightText="item.rightText" :key="i"
:clickable="true" :to="item.to" @click="ucenterListClick(item)" :show-extra-icon="true" :clickable="true" :to="item.to" @click="ucenterListClick(item)" :show-extra-icon="true"
:extraIcon="{type:item.icon,color:'#999'}"> :extraIcon="{type:item.icon,color:'#999'}">
<view v-if="item.showBadge" class="item-footer" slot="footer"> <template v-slot:footer>
<text class="item-footer-text">{{item.rightText}}</text> <view v-if="item.showBadge" class="item-footer">
<view class="item-footer-badge"></view> <text class="item-footer-text">{{item.rightText}}</text>
</view> <view class="item-footer-badge"></view>
</view>
</template>
</uni-list-item> </uni-list-item>
</uni-list> </uni-list>
</view> </view>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
maxlength="11" :placeholder="$t('common.phonePlaceholder')"></uni-easyinput> maxlength="11" :placeholder="$t('common.phonePlaceholder')"></uni-easyinput>
<uni-easyinput clearable type="number" class="input-box" :inputBorder="false" v-model="formData.code" maxlength="6" <uni-easyinput clearable type="number" class="input-box" :inputBorder="false" v-model="formData.code" maxlength="6"
:placeholder="$t('common.verifyCodePlaceholder')"> :placeholder="$t('common.verifyCodePlaceholder')">
<template slot="right"> <template v-slot:right>
<uni-send-sms-code ref="shortCode" code-type="bind" :phone="formData.phone"></uni-send-sms-code> <uni-send-sms-code ref="shortCode" code-type="bind" :phone="formData.phone"></uni-send-sms-code>
</template> </template>
</uni-easyinput> </uni-easyinput>
......
...@@ -269,7 +269,8 @@ ...@@ -269,7 +269,8 @@
.chooseAvatar { .chooseAvatar {
border: dotted 1px #ddd; border: dotted 1px #ddd;
border-radius: 10px; border-radius: 10px;
text-align: center;
width: 50px; width: 50px;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"bsonType": "object", "bsonType": "object",
"required": ["user_id", "title", "content"], "required": ["user_id", "title", "content"],
"permission": { "permission": {
"read": "doc.article_status == 0 || doc.article_status == 1", "read": "doc.article_status == 1",
"create": "auth.uid != null", "create": "auth.uid != null",
"update": "doc.uid == auth.uid", "update": "doc.uid == auth.uid",
"delete": "doc.uid == auth.uid" "delete": "doc.uid == auth.uid"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 600, "tokenExpiresThreshold": 600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": true,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
......
...@@ -117,10 +117,6 @@ ...@@ -117,10 +117,6 @@
flex-direction: column; flex-direction: column;
} }
scroll-view {
-webkit-overflow-scrolling: touch;
}
.background-img { .background-img {
width: 600rpx; width: 600rpx;
height: 600rpx; height: 600rpx;
......
{ {
"passwordSecret": "passwordSecret-demo", "passwordSecret": "passwordSecret-demo",
"tokenSecret": "tokenSecret-demo", "tokenSecret": "tokenSecret-demo",
"tokenExpiresIn": 7200, "tokenExpiresIn": 7200,
"tokenExpiresThreshold": 600, "tokenExpiresThreshold": 600,
"passwordErrorLimit": 6, "passwordErrorLimit": 6,
"bindTokenToDevice": false, "bindTokenToDevice": true,
"passwordErrorRetryTime": 3600, "passwordErrorRetryTime": 3600,
"autoSetInviteCode": false, "autoSetInviteCode": false,
"forceInviteCode": false, "forceInviteCode": false,
"app-plus": { "app-plus": {
"tokenExpiresIn": 2592000, "tokenExpiresIn": 2592000,
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "wxffdd8fa6ec4ef2a0", "appid": "",
"appsecret": "6c9119430d7be0a147bcbbb73ef33acf" "appsecret": ""
}, },
"apple": { "apple": {
"bundleId": "苹果开发者后台获取的bundleId" "bundleId": ""
} }
} }
}, },
"mp-weixin": { "mp-weixin": {
"oauth": { "oauth": {
"weixin": { "weixin": {
"appid": "wx81dbb061d2258234", "appid": "",
"appsecret": "51977820eb14cd71377d4048a1b4754e" "appsecret": ""
} }
} }
}, },
"mp-alipay": { "mp-alipay": {
"oauth": { "oauth": {
"alipay": { "alipay": {
"appid": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr", "appid": "",
"privateKey": "支付宝小程序登录用到的appid、privateKey请参考支付宝小程序的文档进行设置或者获取,https://opendocs.alipay.com/open/291/105971#LDsXr" "privateKey": ""
} }
} }
}, },
"service": { "service": {
"sms": { "sms": {
"name": "应用名称,对应短信模版的name", "name": "",
"codeExpiresIn": 300, "codeExpiresIn": 300,
"smsKey": "短信密钥key,开通短信服务处可以看到", "smsKey": "",
"smsSecret": "短信密钥secret,开通短信服务处可以看到" "smsSecret": ""
}, },
"univerify": { "univerify": {
"appid": "当前应用的appid,使用云函数URL化,此项必须配置", "appid": "",
"apiKey": "apiKey 和 apiSecret 在开发者中心获取,开发者中心:https://dev.dcloud.net.cn/uniLogin/index?type=0,文档:https://ask.dcloud.net.cn/article/37965", "apiKey": "",
"apiSecret": "" "apiSecret": ""
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册