addoperator.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <template>
  2. <view class="container login">
  3. <view class="login-main">
  4. <text class="logo-titl">本页面协销人员不用填写!</text>
  5. <text class="logo-text">点击右上方<text class="sp">···</text>,选择“发送给朋友”,把该页面发送给该机构人员填写,填写好之后对方就能成为该机构的运营人员</text>
  6. </view>
  7. <view class="login-form clearfix">
  8. <view class="login-input">
  9. <input type="text"
  10. v-model="bindLinkName"
  11. maxlength="30"
  12. class="input"
  13. disabled="true"
  14. placeholder="请输入姓名"
  15. />
  16. </view>
  17. </view>
  18. <view class="login-form clearfix">
  19. <view class="login-input">
  20. <input type="number"
  21. v-model="bindLinkPhone"
  22. maxlength="11"
  23. class="input"
  24. disabled="true"
  25. placeholder="请输入手机号"
  26. />
  27. </view>
  28. </view>
  29. <view class="login-form clearfix">
  30. <view class="login-input code">
  31. <input type="text"
  32. v-model="imageCode"
  33. maxlength="4"
  34. class="input"
  35. disabled="true"
  36. placeholder="请输入右侧图形验证码"
  37. />
  38. </view>
  39. <view class="login-input img-btn">
  40. <view class="vscodeimg">
  41. <image :src="imageCodeUrl" mode=""></image>
  42. </view>
  43. <view class="vscod-refresh">
  44. <text class="iconfont"></text>
  45. <text class="ref-text"></text>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="login-form clearfix">
  50. <view class="login-input code">
  51. <input type="number"
  52. v-model="mobildeCode"
  53. maxlength="6"
  54. class="input"
  55. disabled="true"
  56. placeholder="请输入短信验证码"
  57. />
  58. </view>
  59. <view class="login-input btn disabled">
  60. <button type="button"
  61. disabled="true"
  62. class="input">
  63. {{ mobileCodeText }}
  64. </button>
  65. </view>
  66. </view>
  67. <view class="login-form clearfix">
  68. <view class="login-btn">确定</view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. import { mapState,mapMutations } from 'vuex'
  74. import authorize from '@/common/config/authorize.js'
  75. export default{
  76. data() {
  77. return{
  78. userID:'',
  79. imageCodeUrl:'',
  80. mobileCodeText:'获取验证码'
  81. }
  82. },
  83. onLoad(option) {
  84. this.getVerificationCode()
  85. },
  86. methods:{
  87. getVerificationCode(){//图形验证
  88. this.PublicService.GetImgVerifyCode().then(res => {
  89. this.imageCodeUrl = res.data.baseImage
  90. })
  91. },
  92. },
  93. onShareAppMessage(res){//分享转发
  94. if (res.from === 'button') { // 来自页面内转发按钮
  95. }
  96. return {
  97. title: '快来成为机构运营人员吧~',
  98. path: `pages/login/bindOperator?userID=${this.userID}`,
  99. imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
  100. }
  101. },
  102. onShow() {
  103. this.$api.getComStorage('orderUserInfo').then((resolve) =>{
  104. this.userID = resolve.userID
  105. })
  106. }
  107. }
  108. </script>
  109. <style lang="scss">
  110. .login{
  111. width: 100%;
  112. height: auto;
  113. border-top: 1px solid #F7F7F7;
  114. .model-warp.none{
  115. display: none;
  116. }
  117. .model-warp.show{
  118. display: block;
  119. }
  120. .login-main{
  121. width: 702rpx;
  122. background: rgba(225, 86, 22, 0.1);
  123. display: flex;
  124. flex-direction: column;
  125. height: 142rpx;
  126. padding: 20rpx 24rpx;
  127. margin: 24rpx 0 118rpx 0;
  128. .logo-titl{
  129. font-size: 26rpx;
  130. line-height: 34rpx;
  131. color:$text-color;
  132. margin-bottom: 40rpx;
  133. font-weight: bold;
  134. }
  135. .logo-text{
  136. font-size: 24rpx;
  137. line-height: 34rpx;
  138. color: $color-system;
  139. .sp{
  140. color: #000000;
  141. font-weight: bold;
  142. }
  143. }
  144. }
  145. .login-form{
  146. width: 702rpx;
  147. height: auto;
  148. padding: 0 24rpx;
  149. .login-input{
  150. width: 654rpx;
  151. height: 40rpx;
  152. padding: 24rpx;
  153. margin-bottom: 20rpx;
  154. background: #F7F7F7;
  155. border-radius: 14rpx;
  156. display: flex;
  157. flex-direction: column;
  158. align-items: center;
  159. &.code{
  160. width: 370rpx;
  161. float: left;
  162. margin-right: 20rpx;
  163. }
  164. &.btn{
  165. width: 258rpx;
  166. height: 88rpx;
  167. padding: 0;
  168. float: left;
  169. background: $btn-confirm;
  170. .input{
  171. width: 258rpx;
  172. height: 88rpx;
  173. line-height: 88rpx;
  174. padding: 0;
  175. border-radius: 14rpx;
  176. color: #FFFFFF;
  177. background: $btn-confirm;
  178. }
  179. &.disabled{
  180. background: #F7F7F7;
  181. .input{
  182. background: #F7F7F7;
  183. color: #999999;
  184. }
  185. }
  186. }
  187. &.img-btn{
  188. width: 250rpx;
  189. height: 88rpx;
  190. padding: 0;
  191. float: left;
  192. background: #FFFFFF;
  193. display: block;
  194. .vscodeimg{
  195. width: 180rpx;
  196. height: 88rpx;
  197. float: left;
  198. display: flex;
  199. flex-direction: column;
  200. align-items: center;
  201. border-radius: 14rpx;
  202. image{
  203. width: 180rpx;
  204. height: 88rpx;
  205. border-radius: 14rpx;
  206. }
  207. }
  208. .vscod-refresh{
  209. width: 70rpx;
  210. float: right;
  211. display: flex;
  212. flex-direction: column;
  213. align-items: center;
  214. .icon-shuaxin{
  215. font-size: 48rpx;
  216. color: #333333;
  217. }
  218. .ref-text{
  219. font-size: 24rpx;
  220. color: #333333;
  221. }
  222. }
  223. }
  224. .input{
  225. width: 100%;
  226. height: 100%;
  227. background: #F7F7F7;
  228. font-size: $font-size-28;
  229. line-height: 40rpx;
  230. color: #333333;
  231. border-radius: 14rpx;
  232. }
  233. }
  234. }
  235. .login-btn{
  236. width: 702rpx;
  237. height: 88rpx;
  238. border-radius: 44rpx;
  239. font-size: $font-size-28;
  240. line-height: 88rpx;
  241. color: #FFFFFF;
  242. margin: 0 auto;
  243. text-align: center;
  244. background: $btn-confirm;
  245. margin-top: 100rpx;
  246. }
  247. .model-authorization{
  248. width: 100%;
  249. height: 100%;
  250. position: fixed;
  251. top: 0;
  252. left: 0;
  253. z-index: 999;
  254. .authorization{
  255. width: 518rpx;
  256. height: 320rpx;
  257. position: absolute;
  258. background: rgba(255,255,255,.7);
  259. left: 0;
  260. right: 0;
  261. bottom: 0;
  262. top: 0;
  263. margin: auto;
  264. .to-btn{
  265. position: absolute;
  266. top: 0;
  267. left: 0;
  268. right: 0;
  269. bottom: 0;
  270. margin: auto;
  271. width: 70%;
  272. height: 88rpx;
  273. font-size: $font-size-28;
  274. line-height: 88rpx;
  275. color: #FFFFFF;
  276. text-align: center;
  277. border-radius: 44rpx;
  278. }
  279. }
  280. }
  281. }
  282. </style>