123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <template>
- <view class="address">
- <uni-forms ref="form" class="flex1" :model="datainfo">
- <view class="adrbox">
- <view class="chtop flexc">
- <view class="line"></view>
- <view>报修信息</view>
- </view>
- <view class="plr15">
- <uni-forms-item label="项目" required="true" name="realName">
- <picker range-key='text' :value="syqxidx" :range="sexs" @change='bindDateChange'>
- <view class="flexc">
- <view class="flex1 txr f13" :class="datainfo.iszc?'co27':'coa'">{{datainfo.iszc?'是':'请选择项目'}}</view>
- <view class="rimg"><image :src="rimg"></image></view>
- </view>
- </picker>
- </uni-forms-item>
- <uni-forms-item label="标题" required="true" name="phonenumber">
- <view class="flexc">
- <uni-easyinput v-model="datainfo.phonenumber" :inputBorder='false' placeholder="请输入报修标题" />
- <view class="rimg"></view>
- </view>
- </uni-forms-item>
- <uni-easyinput type="textarea" autoHeight v-model="datainfo.companyIntroduction" :inputBorder='false' placeholder="请详细描述您要报修的内容(最多可输入200字哦" />
- <view class="voice mb28">
- <view class="flexc">
- <image :src="voice"></image>
- 语音输入
- </view>
- </view>
- </view>
- <!-- 图片 -->
- <view class="imgs">
- <view class="img" @click="getPreview">
- <image :src="photo" class="pico"></image>
- <image :src="del" class="del" @click="getDelFn"></image>
- </view>
- <view class="img" @click="getPreview">
- <image :src="photo" class="pico"></image>
- <image :src="del" class="del" @click="getDelFn"></image>
- </view>
- <view class="img" @click="getPreview">
- <image :src="photo" class="pico"></image>
- <image :src="del" class="del" @click="getDelFn"></image>
- </view>
- <view class="img" @click="getPreview">
- <image :src="photo" class="pico"></image>
- <image :src="del" class="del" @click="getDelFn"></image>
- </view>
- <view class="addbox" @click="getaddImage">
- <image :src="photo" class="pico"></image>
- <view>添加图片</view>
- </view>
- </view>
- </view>
- <view class="adrbox">
- <view class="plr15">
- <uni-forms-item label="联系方式" name="phonenumber">
- <view class="flexc">
- <uni-easyinput v-model="datainfo.phonenumber" :inputBorder='false' placeholder="请输入联系方式" />
- <view class="rimg"></view>
- </view>
- </uni-forms-item>
- </view>
- </view>
-
- </uni-forms>
-
- <view class="rhbtn mt30" @click="getAddFn">提交信息</view>
- <loading></loading>
- </view>
- </template>
- <script>
- import config from '@/config'
- const baseUrl = config.baseUrl
- import { addressPermi, addressRole } from "@/utils/permission"; // 权限判断函数
- export default{
- components:{},
- data(){
- return{
- rimg:require('@/static/images/rimg.png'),
- check: require('@/mine/static/check.png'),
- ncheck: require('@/mine/static/ncheck.png'),
- voice: require('@/work/static/voice.png'),
- photo:require("@/work/static/service/photo.png"),
- del:require('@/work/static/service/rdel.png'),
- list:[{tit:'123',isdefault:true},{tit:'212123',isdefault:false,isuser:true},],
- text:"",
- datainfo:{},
- mjlist:[{tit:'80m²以内',val:'0'},{tit:'80-90m²',val:'1'},{tit:'90-119m²',val:'2'},{tit:'120-139m²',val:'3'},{tit:'140-159m²',val:'4'},{tit:'160m²以上',val:'5'},],
- checkflag:true,
- tabval:'0',
- sexs: [{
- text: '男',
- value: 0
- }, {
- text: '女',
- value: 1
- }],
- }
- },
- onLoad: function() {
-
- },
- methods:{
- addressPermi, addressRole,
- getAddFn(){
- // this.$tab.navigateTo("/mine/pages/house/addaddress")
- },
- getTabFn(val){
- this.tabval=val
- },
- getDataFn(){
- return
- var params={
- pageSize:this.pageSize,
- pageNum: this.pageNum,
- }
- params.noticeType=this.tabidx
- getNoticeList(params).then(res=>{
- if(res.code==200){
-
- }else{
- this.$toast(res.msg)
- }
- })
-
- },
- }
- }
- </script>
- <style>
- page{background: #F3F3F0;}
- </style>
- <style lang="scss" scoped>
- .address /deep/ .uni-forms-item{min-height: 106rpx;box-sizing: border-box;display: flex;align-items: center;margin-bottom: 0;border-bottom: 2rpx solid #E6E6E6;padding:10rpx 0;}
- .address /deep/ .uni-forms-item:last-child{border-bottom: none;}
- .address /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;padding-left: 12rpx;}
- .address /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
- .address /deep/ .uni-easyinput__content-textarea{min-height: 140rpx;font-size: 26rpx;
- border-radius: 10rpx;padding: 20rpx 14rpx;text-align: left;}
- .address /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
- .address /deep/ .uni-input-input{font-size: 26rpx;}
- .address /deep/ .uni-textarea-textarea{font-size: 26rpx;}
- .address /deep/ .is-required{font-size: 26rpx;color: #F40027;margin-right: 4rpx;}
- .address /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
- .address{min-height: 100vh;padding: 20rpx 18rpx 100rpx;display: flex;flex-direction: column;}
- .adrbox{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
- .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
- image{width: 100%;height: 100%;}
- }
- &.mjbox{
- padding: 36rpx 24rpx 18rpx;
- .tit{font-weight: bold;font-size: 26rpx;color: #272727;padding-left: 18rpx;}
- .adrlist{
- view{font-weight: bold;font-size: 26rpx;color: #666666;min-width: 198rpx;padding: 0 10rpx;box-sizing: border-box;margin: 0 12rpx 24rpx;height: 64rpx;display: flex;align-items: center;justify-content: center;border-radius: 10rpx;border: 2rpx solid #C1C1C1;
- &.act{background: #DFEAFF;border: 2rpx solid #0256FD;color: #0256FD;}
- }
- }
- }
- .chtop{margin-bottom: 8rpx;padding-top: 32rpx;
- view{font-weight: bold;font-size: 28rpx;color: #272727;}
- .line{width: 14rpx;height: 48rpx;background: #0256FD;border-radius:0 12rpx 12rpx 0;margin-right: 18rpx;}
- }
- .voice{font-weight: 500;display: flex;justify-content:flex-end;align-items: center;margin-top: 40rpx;font-size: 24rpx;color: #45CB99;
- image{width: 24rpx;height: 24rpx;margin-right: 8rpx;}
- }
- .imgs{display: flex;align-items: center;flex-wrap: wrap;padding: 0 24rpx;
- .img{width: 198rpx;height:142rpx;border-radius: 20rpx;margin: 0 12rpx 20rpx 12rpx;position: relative;
- // &:nth-of-type(2n){margin-right: 0;}
- }
- .pico{width: 100%;height: 100%;border-radius: 20rpx;}
- .del{width: 24rpx;height: 24rpx;position: absolute;right: 0;top: 0;}
- .addbox{background: #F0F0F0;border-radius: 20rpx;display: flex;align-items: center;flex-direction: column;width: 198rpx;height:142rpx;justify-content: center;margin:0 12rpx 20rpx 12rpx;
- image{width: 48rpx;height: 42rpx;margin-bottom: 12rpx;}
- view{font-weight: 500;font-size: 24rpx;color: #666666;}
- }
- }
- .checkimg{width: 80rpx;height: 40rpx;margin-right: 8rpx;}
- }
- </style>
|