addoperator.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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" @click="bindWechatInfo">确定</view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. import { mapState,mapMutations } from 'vuex'
  74. import authorize from '@/common/config/authorize.js'
  75. import { bindingWechat } from "@/api/use.js"
  76. import { getImageCode, getbindWechatCode } from "@/api/utils.js"
  77. export default{
  78. data() {
  79. return{
  80. userID:'',
  81. imageCodeUrl:'',
  82. mobileCodeText:'获取验证码'
  83. }
  84. },
  85. onLoad(option) {
  86. console.log(option)
  87. this.getVerificationCode()
  88. },
  89. methods:{
  90. getVerificationCode(){//图形验证
  91. getImageCode().then(res => {
  92. this.imageCodeUrl = res.data.baseImage
  93. })
  94. },
  95. },
  96. onShareAppMessage(res){//分享转发
  97. if (res.from === 'button') {
  98. // 来自页面内转发按钮
  99. console.log(res.target)
  100. }
  101. return {
  102. title: '快来成为机构运营人员吧~',
  103. path: 'pages/login/bindOperator',
  104. imageUrl:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAWWkhAAXDP4-6m_c397.png'
  105. }
  106. },
  107. onShow() {
  108. }
  109. }
  110. </script>
  111. <style lang="scss">
  112. .login{
  113. width: 100%;
  114. height: auto;
  115. border-top: 1px solid #F7F7F7;
  116. .model-warp.none{
  117. display: none;
  118. }
  119. .model-warp.show{
  120. display: block;
  121. }
  122. .login-main{
  123. width: 702rpx;
  124. background: rgba(225, 86, 22, 0.1);
  125. display: flex;
  126. flex-direction: column;
  127. height: 142rpx;
  128. padding: 20rpx 24rpx;
  129. margin: 24rpx 0 118rpx 0;
  130. .logo-titl{
  131. font-size: 24rpx;
  132. line-height: 34rpx;
  133. color:$text-color;
  134. margin-bottom: 40rpx;
  135. }
  136. .logo-text{
  137. font-size: 24rpx;
  138. line-height: 34rpx;
  139. color: $color-system;
  140. .sp{
  141. color: #000000;
  142. font-weight: bold;
  143. }
  144. }
  145. }
  146. .login-form{
  147. width: 702rpx;
  148. height: auto;
  149. padding: 0 24rpx;
  150. .login-input{
  151. width: 654rpx;
  152. height: 40rpx;
  153. padding: 24rpx;
  154. margin-bottom: 20rpx;
  155. background: #F7F7F7;
  156. border-radius: 14rpx;
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. &.code{
  161. width: 370rpx;
  162. float: left;
  163. margin-right: 20rpx;
  164. }
  165. &.btn{
  166. width: 258rpx;
  167. height: 88rpx;
  168. padding: 0;
  169. float: left;
  170. background: $btn-confirm;
  171. .input{
  172. width: 258rpx;
  173. height: 88rpx;
  174. line-height: 88rpx;
  175. padding: 0;
  176. border-radius: 14rpx;
  177. color: #FFFFFF;
  178. background: $btn-confirm;
  179. }
  180. &.disabled{
  181. background: #F7F7F7;
  182. .input{
  183. background: #F7F7F7;
  184. color: #999999;
  185. }
  186. }
  187. }
  188. &.img-btn{
  189. width: 250rpx;
  190. height: 88rpx;
  191. padding: 0;
  192. float: left;
  193. background: #FFFFFF;
  194. display: block;
  195. .vscodeimg{
  196. width: 180rpx;
  197. height: 88rpx;
  198. float: left;
  199. display: flex;
  200. flex-direction: column;
  201. align-items: center;
  202. border-radius: 14rpx;
  203. image{
  204. width: 180rpx;
  205. height: 88rpx;
  206. border-radius: 14rpx;
  207. }
  208. }
  209. .vscod-refresh{
  210. width: 70rpx;
  211. float: right;
  212. display: flex;
  213. flex-direction: column;
  214. align-items: center;
  215. .icon-shuaxin{
  216. font-size: 48rpx;
  217. color: #333333;
  218. }
  219. .ref-text{
  220. font-size: 24rpx;
  221. color: #333333;
  222. }
  223. }
  224. }
  225. .input{
  226. width: 100%;
  227. height: 100%;
  228. background: #F7F7F7;
  229. font-size: $font-size-28;
  230. line-height: 40rpx;
  231. color: #333333;
  232. border-radius: 14rpx;
  233. }
  234. }
  235. }
  236. .login-btn{
  237. width: 702rpx;
  238. height: 88rpx;
  239. border-radius: 14rpx;
  240. font-size: $font-size-28;
  241. line-height: 88rpx;
  242. color: #FFFFFF;
  243. margin: 0 auto;
  244. text-align: center;
  245. background: $btn-confirm;
  246. margin-top: 100rpx;
  247. }
  248. .model-authorization{
  249. width: 100%;
  250. height: 100%;
  251. position: fixed;
  252. top: 0;
  253. left: 0;
  254. z-index: 999;
  255. .authorization{
  256. width: 518rpx;
  257. height: 320rpx;
  258. position: absolute;
  259. background: rgba(255,255,255,.7);
  260. left: 0;
  261. right: 0;
  262. bottom: 0;
  263. top: 0;
  264. margin: auto;
  265. .to-btn{
  266. position: absolute;
  267. top: 0;
  268. left: 0;
  269. right: 0;
  270. bottom: 0;
  271. margin: auto;
  272. width: 70%;
  273. height: 88rpx;
  274. font-size: $font-size-28;
  275. line-height: 88rpx;
  276. color: #FFFFFF;
  277. text-align: center;
  278. border-radius: 44rpx;
  279. }
  280. }
  281. }
  282. }
  283. </style>