Jiedanset.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view>
  3. <customNav :shownav="true" :title="$t('user.jiedanshezhi')" tinColor="#006AFF" jiantou="0" titledetl=''></customNav>
  4. <view style="width: 94%;margin-left: 3%;">
  5. <view class="contentInRowS contentItem" @click="setjiedanmoshi">
  6. <text class="titleText">{{$t('shouye.dangqianjdms')}}</text>
  7. <view>
  8. <text class="titleText">{{$t('shouye.jindanms')}}</text>
  9. <image class="imageSize" src="/static/imags/youjian@3x.png" mode="scaleToFill"></image>
  10. </view>
  11. </view>
  12. <view class="contentInRowS contentItem" @click="setjiedanL">
  13. <text class="titleText">{{$t('shouye.tongshijdl')}}</text>
  14. <view>
  15. <text class="titleText">{{jiedanL}}</text>
  16. <image class="imageSize" src="/static/imags/youjian@3x.png" mode="scaleToFill"></image>
  17. </view>
  18. </view>
  19. <view class="contentItem" >
  20. <view class="contentInRowS" style="padding-top: 12rpx;">
  21. <text class="titleText">{{$t('shouye.paidanshez')}}</text>
  22. </view>
  23. <view class="contentInRowS" style="padding-top: 12rpx;">
  24. <text class="ditileText">{{$t('shouye.changzhuqy')}}</text>
  25. <view>
  26. <text class="ditileText">{{$t('shouye.qushezhi')}}</text>
  27. <image class="imageSize" src="/static/imags/youjian@3x.png" mode="scaleToFill"></image>
  28. </view>
  29. </view>
  30. <view class="contentInRowS" style="padding-top: 12rpx;">
  31. <view class="contentColumn">
  32. <text class="ditileText">{{$t('shouye.zhidongjpd')}}</text>
  33. <text class="noteText">{{$t('shouye.zhidongjpdN')}}</text>
  34. </view>
  35. <view>
  36. <switch checked @change="switch1Change" />
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <popViewGG :tips="$t('shouye.tongshijdl')" :show="showpop" :maskClosable="true" :isCancel="true" @chooseCancel="chooseCancel">
  42. <picker-view :indicator-style="indicatorStyle" :value="pvalue" @change="bindChange" class="picker-view">
  43. <picker-view-column>
  44. <view class="item" v-for="(item,index) in range" :key="index">{{item}}</view>
  45. </picker-view-column>
  46. </picker-view>
  47. </popViewGG>
  48. <popViewGG :tips="$t('shouye.shezhijdms')" :show="showjsms" :maskClosable="true" :isCancel="true" @chooseCancel="chooseCancel">
  49. <view style="width: 100%;background-color: whitesmoke;">
  50. <view class="">
  51. <view class="jiedanCententV">
  52. <view class="contentInRowS" style="margin-top: 10rpx;margin-bottom: 10rpx;">
  53. <text class="moshiTitle">近单模式</text>
  54. <view class="contentInRowC">
  55. <text style="font-size: 28rpx;color: #006AFF;padding-right: 20rpx;">当前模式</text>
  56. <image class="imageIcon" src="/static/imags/tuoyuanx@2x.png" mode="scaleToFill"></image>
  57. </view>
  58. </view>
  59. <view class="contentColumn">
  60. <text class="moshinote">推单范围3公里</text>
  61. <text style="width: 100%;height: 4rpx;background-color: darkgray;"></text>
  62. <text class="moshideatle">优先展示近单,可系统派单,同时接6-8单</text>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </popViewGG>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. showpop:false,
  75. showjsms:false,
  76. indicatorStyle: `height: 50px;`,
  77. range: ["1","2","3","4","5","6"],
  78. jiedanL:1,
  79. pvalue: [0]
  80. }
  81. },
  82. methods: {
  83. switch1Change: function (e) {
  84. console.log('switch1 发生 change 事件,携带值为', e.detail.value)
  85. },
  86. setjiedanL(){
  87. this.showpop = true;
  88. },
  89. setjiedanmoshi(){
  90. this.showjsms = true;
  91. },
  92. bindChange (e) {
  93. if(this.showpop==true){
  94. var val = e.detail.value[0];
  95. this.jiedanL=this.range[val];
  96. }
  97. },
  98. chooseCancel(i){
  99. this.showpop=false;
  100. this.showjsms = false;
  101. },
  102. },
  103. }
  104. </script>
  105. <style lang="scss">
  106. @import '@/common/common.scss';
  107. page{
  108. background-color: #F0F0F2;
  109. }
  110. .contentItem{
  111. padding: 20rpx;
  112. margin-top: 20rpx;
  113. background-color: white;
  114. }
  115. .imageSize{
  116. width: 26rpx;
  117. height: 26rpx;
  118. }
  119. .imageIcon{
  120. width: 40rpx;
  121. height: 40rpx;
  122. }
  123. .titleText{
  124. font-size: 30rpx;
  125. font-weight: bold;
  126. }
  127. .ditileText{
  128. font-size: 28rpx;
  129. }
  130. .noteText{
  131. font-size: 22rpx;
  132. color: darkgray;
  133. }
  134. .picker-view {
  135. width: 750rpx;
  136. height: 300rpx;
  137. margin-top: 10rpx;
  138. }
  139. .item {
  140. line-height: 90rpx;
  141. text-align: center;
  142. }
  143. .jiedanCententV{
  144. width: auto;
  145. background-color: white;
  146. box-shadow: 0rpx 0rpx 10rpx 0rpx lightgray;
  147. padding: 20rpx;
  148. margin: 30rpx;
  149. border-radius: 10rpx;
  150. }
  151. .moshiTitle{
  152. font-size: 32rpx;
  153. font-weight: bold;
  154. }
  155. .moshinote{
  156. font-size: 30rpx;
  157. padding-bottom: 10rpx;
  158. }
  159. .moshideatle{
  160. font-size: 26rpx;
  161. color: darkgray;
  162. padding-top: 20rpx;
  163. padding-bottom: 20rpx;
  164. }
  165. </style>