shopEvaStar.vue 7.0 KB

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