|
@@ -228,6 +228,19 @@
|
|
<view class="tn-color-gray tn-icon-right"></view>
|
|
<view class="tn-color-gray tn-icon-right"></view>
|
|
</view>
|
|
</view>
|
|
</tn-list-cell>
|
|
</tn-list-cell>
|
|
|
|
+ <tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" v-if="!showLogin" >
|
|
|
|
+ <view class="tn-flex tn-flex-col-center">
|
|
|
|
+ <view
|
|
|
|
+ class="icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center" style="color: #7C8191;">
|
|
|
|
+ <view class="tn-icon-message" :style="{fontSize:(wxFontSize+1)+'px'}"></view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="tn-margin-left-sm tn-flex-1" :style="{fontSize:(wxFontSize-1)+'px'}">接收通知</view>
|
|
|
|
+ <view class="tn-color-gray">
|
|
|
|
+ <switch color="#46c603" @change="switchChange" :style="{transform:'scale('+(0.9+((wxFontSize-17)/25))+')'}" :checked="personInfo.smsNotice==1" />
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </tn-list-cell>
|
|
|
|
+
|
|
<tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" v-if="!showLogin" @click="showLog()">
|
|
<tn-list-cell :hover="true" :unlined="true" :radius="true" :fontSize="30" v-if="!showLogin" @click="showLog()">
|
|
<view class="tn-flex tn-flex-col-center">
|
|
<view class="tn-flex tn-flex-col-center">
|
|
<view
|
|
<view
|
|
@@ -352,6 +365,25 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ switchChange: function (e) {
|
|
|
|
+ //修改smsNotice
|
|
|
|
+ const that = this;
|
|
|
|
+ let params= this.personInfo;
|
|
|
|
+ params.smsNotice = e.detail.value?1:0;
|
|
|
|
+ request.post('/slbWxma/changePersonlInfo',{userInfo:JSON.stringify(params)},{
|
|
|
|
+ headers: {
|
|
|
|
+ 'Content-Type': 'application/json', // 默认值
|
|
|
|
+ },
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ if(res.success){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title:e.detail.value?'开启成功':'关闭成功',
|
|
|
|
+ icon:'none'
|
|
|
|
+ })
|
|
|
|
+ that.getContentRectInfo()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
showFont(){
|
|
showFont(){
|
|
let that = this;
|
|
let that = this;
|
|
uni.showActionSheet({
|
|
uni.showActionSheet({
|