shopEvaStar.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <template>
  2. <view class="content">
  3. <view class="zdyNav">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="nav">
  6. <view @click="back"><image src="../../static/img/baiheiback.png" mode="" class="baiheiback" @click="back"></image></view>
  7. <view >提交成功</view>
  8. <view style="width:70px;"></view>
  9. </view>
  10. </view>
  11. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  12. <view style="height: 44px;"></view>
  13. <view class="top">
  14. <view class="toptop">
  15. <image src="../../static/img/icon_select_per@2x.png" mode="" class="toptopIMg"></image>
  16. <view class="topTitle">提交成功</view>
  17. </view>
  18. <view class="topCont">
  19. <view class="topContBtn" @click="goHome">回到首页</view>
  20. <view class="topContBtn">查看详情</view>
  21. <view class="topContBtn dz" @click="clickDz">发给店长</view>
  22. </view>
  23. </view>
  24. <view class="competeCont">
  25. <view class="competeContTitle">对该门店上次行动完成情况打分</view>
  26. <view class="xxBox">
  27. <uni-rate :max="5" v-model="xx" @change="onXXChange"/>
  28. </view>
  29. <view>
  30. <textarea placeholder-style="color:#CCCCCC" placeholder="请填写十字以上的评价内容~" v-model="userEvaContent" class="textareaCont"/>
  31. </view>
  32. <view class="submitBox">
  33. <view class="submit" @click="submit">提交</view>
  34. </view>
  35. </view>
  36. <!-- 弹框 -->
  37. <view class="dzTk" v-if="dzShow" @click="dzShow">
  38. <view class="dztkBox">
  39. <view class="dzTitle">发给店主</view>
  40. <image src="../../static/img/gaunbi.png" mode="" class="dzGbImg" @click.stop="dzShow=false"></image>
  41. <view class="dzShop">吉安娜汽修</view>
  42. <view class="dziphone">联系人:安老师</view>
  43. <view class="dzCont">
  44. <view class="dzLine" @click.stop="">
  45. <image src="../../static/img/icon_duanxin@2x.png" mode="" class="dzlineImg"></image>
  46. <view class="dzLineTxt">短信推送</view>
  47. </view>
  48. <view class="dzLine" @click.stop="dzShow=false">
  49. <image src="../../static/img/icon_gongzhong@2x.png" mode="" class="dzlineImg"></image>
  50. <view class="dzLineTxt">公众号推送</view>
  51. </view>
  52. <view class="dzLine" @click.stop="share">
  53. <image src="../../static/img/icon_weixin@2x.png" mode="" class="dzlineImg"></image>
  54. <view class="dzLineTxt">发送给好友</view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. data() {
  64. return {
  65. sheetID:'',
  66. userEvaContent:'',
  67. userEvaStar:0,
  68. xx:0,
  69. dzShow:false,
  70. }
  71. },
  72. onLoad(opt) {
  73. this.sheetID=opt.id
  74. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  75. },
  76. onShow() {
  77. },
  78. methods: {
  79. clickDz(){
  80. this.dzShow =true
  81. },
  82. back(){
  83. uni.navigateTo({
  84. url:'entryReport'
  85. })
  86. },
  87. goHome(){
  88. uni.navigateTo({
  89. url:'../index/index'
  90. })
  91. },
  92. onXXChange(e){
  93. console.log(e)
  94. this.userEvaStar=e.value
  95. },
  96. submit(){
  97. uni.showLoading({ });
  98. this.$http('accompany/SuperCheckSheet/shopEvaStar', {
  99. sheetID:this.sheetID,
  100. shopEvaStar:this.userEvaStar,
  101. shopEvaContent:this.userEvaContent
  102. }, 'POST').then(res => {
  103. //this.submitSuperCheckSheet()
  104. uni.showToast({
  105. title: '提交成功',
  106. icon:'none',
  107. duration: 2000,
  108. });
  109. uni.navigateTo({
  110. url:'entryReport'
  111. })
  112. })
  113. }
  114. }
  115. }
  116. </script>
  117. <style scoped>
  118. .dzTk{
  119. width: 100vw;
  120. height: 100vh;
  121. top: 0;
  122. left: 0;
  123. z-index: 11;
  124. position: fixed;
  125. background: rgba(0, 0, 0, 0.4);
  126. }
  127. .dztkBox{
  128. width: 626rpx;
  129. height: 456rpx;
  130. background: #FFFFFF;
  131. border-radius: 24rpx;
  132. margin-left: 62rpx;
  133. margin-top: 20vh;
  134. position: relative;
  135. }
  136. .dzGbImg{
  137. width: 32rpx;
  138. height: 32rpx;
  139. position: absolute;
  140. top: 30rpx;
  141. right: 30rpx;
  142. }
  143. .dzShop{
  144. font-size: 30rpx;
  145. text-align: center;
  146. color: #3C3C3C;
  147. padding-top: 28rpx;
  148. padding-bottom: 10rpx;
  149. }
  150. .dziphone{
  151. font-size: 26rpx;
  152. color: #999999;
  153. text-align: center;
  154. }
  155. .content {
  156. background: #F4F5F7;
  157. min-height: 100vh;
  158. }
  159. /* #ifdef H5 */
  160. .content {
  161. background: #F4F5F7;
  162. }
  163. /* #endif */
  164. .status_bar{
  165. background: #FFFFFF;
  166. }
  167. .nav{
  168. width: 100vw;
  169. height: 44px;
  170. background: #FFFFFF;
  171. display: flex;
  172. justify-content: space-between;
  173. font-size: 34rpx;
  174. line-height: 44px;
  175. }
  176. .baiheiback{
  177. width: 70px;
  178. height: 44px;
  179. }
  180. .zdyNav{
  181. position: fixed;
  182. left: 0;
  183. top: 0;
  184. background: #FFFFFF;
  185. z-index: 11;
  186. }
  187. .top{
  188. background: #FFFFFF;
  189. }
  190. .toptop{
  191. display: flex;
  192. justify-content: center;
  193. padding-top: 20rpx;
  194. }
  195. .toptopIMg{
  196. width: 44rpx;height: 44rpx;
  197. }
  198. .topTitle{
  199. font-size: 36rpx;
  200. padding-left: 10rpx;
  201. color: #3C3C3C;
  202. }
  203. .topCont{
  204. display: flex;
  205. justify-content: space-around;
  206. padding: 40rpx;
  207. }
  208. .topContBtn{
  209. width: 150rpx;
  210. height: 56rpx;
  211. border-radius: 34rpx;
  212. border: 2rpx solid #DDDDDD;
  213. line-height: 56rpx;
  214. text-align: center;
  215. font-size: 28rpx;
  216. color: #3C3C3C;
  217. }
  218. .competeCont{
  219. margin-top: 20rpx;
  220. background: #FFFFFF;
  221. padding: 40rpx 24rpx;
  222. }
  223. .competeContTitle{
  224. font-size: 30rpx;
  225. color: #3C3C3C;
  226. text-align: center;
  227. }
  228. .textareaCont{
  229. width: 662rpx;
  230. height: 200rpx;
  231. background: #F4F5F7;
  232. border-radius: 10rpx;
  233. padding: 20rpx;
  234. margin-top: 20rpx;
  235. font-size: 28rpx;
  236. }
  237. .submit{
  238. width: 420rpx;
  239. height: 74rpx;
  240. background: #FF4F00;
  241. border-radius: 50rpx;
  242. line-height: 74rpx;
  243. text-align: center;
  244. font-size: 30rpx;
  245. color: #FFFFFF;
  246. }
  247. .submitBox{
  248. display: flex;
  249. justify-content: center;
  250. padding-top: 40rpx;
  251. }
  252. .xxBox{
  253. display: flex;
  254. justify-content: center;
  255. padding-top: 20rpx;
  256. padding-bottom: 20rpx;
  257. }
  258. .dz{
  259. border: 1px solid #FF4F00;
  260. color: #FF4F00;
  261. }
  262. .dzTitle{
  263. font-size: 32rpx;
  264. color: #3C3C3C;
  265. text-align: center;
  266. line-height: 100rpx;
  267. border-bottom: 1px solid #EEEEEE;
  268. }
  269. .dzlineImg{
  270. width: 108rpx;
  271. height: 108rpx;
  272. }
  273. .dzCont{
  274. display: flex;
  275. justify-content: space-around;
  276. padding-top: 40rpx;
  277. }
  278. .dzLine{
  279. text-align: center;
  280. }
  281. .dzLineTxt{
  282. font-size: 26rpx;
  283. color: #666666;
  284. }
  285. </style>