123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <template name="buy">
- <view>
- <view class="buy-layer" :class="show ?'slidein':''">
- <form bindsubmit="doBuy">
- <view class="tit ">《{{fetch.info.name}}》{{fetch.info.password_name}}</view>
- <scroll-view scroll-y class="list">
- <view class="gui-form-item gui-border-b">
- <view class="gui-form-body">
- <input type="text" class="gui-form-input"
- v-model="password" :placeholder="`请输入`+fetch.info.password_name" />
- </view>
- </view>
- </scroll-view>
- <view class="btn-wrapper ">
- <view class="button cancel" @click="hidePass">取消</view>
- <view class="button primary" :style="bgcolor" @click="act">确认
- <button formType="submit"></button>
- </view>
- </view>
- </form>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "buy",
- props: {
- curid : 0,
- bgcolor : '',
- color : '',
- code : '',
- name : '',
- },
- data() {
- return {
- show : false,
- password : '',
- fetch : {
- info : {},
- },
- }
- },
- mounted() {
- this.getData();
- },
- methods:{
- getData : function() {
- var self = this;
- this.Dever.get(this, 'app/collection/?l=api.getInfo', {id:this.curid, code:this.code}, function(t) {
- self.show = true;
- });
- },
- act : function() {
- var self = this;
- if (!this.password) {
- this.Dever.alert('请输入' + this.fetch.info.password_name);
- return;
- }
- var data = {};
- data.password = this.password;
- data.id = this.curid;
- data.code = this.code;
- var location = 'dream/view?code='+this.code + '&name=' + this.name;
- this.Dever.post('app/user/?l=api.check_pwd', data, function(t) {
- self.Dever.alert('认证成功', '', function() {
- self.Dever.location(location);
- });
- });
- },
- hidePass : function() {
- this.show = false;
- this.$emit('hidePass');
- },
- },
- components:{
-
- }
- }
- </script>
- <style>
- .spliter{
- flex-shrink: 0;
- width: 1rpx;
- background: #fff;
- height: 40rpx;
- color: #333;
- margin-left: 20rpx;
- }
- .share_left {
- position: relative;
- }
- .share_right {
- position: relative;
- }
- .image {
- width:150rpx;
- height:150rpx;
- }
- .buy-layer{
- padding: 50rpx 55rpx 62rpx;
- background-color: #fff;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- transform: translateY(100%);
- transition-property: transform;
- transition-duration: 0.3s;
- transition-timing-function: ease-in;
- overflow: auto;
- }
- .buy-layer.slidein{
- transform: translateY(0);
- }
- .buy-layer .tit{
- font-weight: bolder;
- font-size: 36rpx;
- margin: 0 0 40rpx;
- text-align: center;
- }
- .buy-layer .msg{
- font-size: 22rpx;
- line-height: 36rpx;
- width: 640rpx;
- margin: 0 auto 47rpx;
- text-align: center;
- text-decoration: underline;
- color: #666;
- }
- .buy-layer .share_msg{
- font-size: 22rpx;
- line-height: 36rpx;
- width: 640rpx;
- margin: 0 auto 47rpx;
- color: #666;
- text-align: center;
- border: 1px dashed cornflowerblue;
- }
- .btn-wrapper {
- justify-content: space-around;
- width: 100%;
- }
- .button {
- height: 80rpx;
- border: 1rpx solid #cc1619;
- color: #cc1619;
- font-size: 30rpx;
- min-width: 300rpx;
- border-radius: 40rpx;
- text-align: center;
- line-height: 80rpx;
- display: block;
- position: relative;
- }
- .button>button{
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- opacity: 0;
- }
- .button.big {
- width: 420rpx;
- }
- .button.primary {
- background-color: #000;
- color: #fff;
- }
- .button.blk {
- background-color: #000;
- color: #fff;
- border-color: #000;
- }
- .btn-wrapper{
- display: flex;
- justify-content: space-between;
- padding-top: 20rpx;
- }
- .btn-wrapper .button{
- border: 0;
- min-width: 0;
- box-sizing: border-box;
- color: #999999;
- width: 284rpx;
- border-radius: 5rpx;
- }
- .btn-wrapper .button.primary{
- border:0;
- color: #fff;
- }
- .btn-wrapper .button.cancel{
- border:0;
- background-color: #CCCCCC;
- color: #fff;
- }
- .list{
- max-height: 500rpx;
- }
- .list .item{
- height: 100rpx;
- border-radius: 10rpx;
- border: 1rpx solid #999;
- color: #999;
- margin-bottom: 30rpx;
- box-sizing: border-box;
- padding: 0 30rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 30rpx;
- }
- .list .item.active{
- border-color: #000;
- color: #000;
- }
- .list .item .name{
- display: flex;
- align-items: center;
- }
- .list .item .name:before{
- content: "";
- width: 40rpx;
- height: 40rpx;
- display: block;
- background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQwIDc5LjE2MDQ1MSwgMjAxNy8wNS8wNi0wMTowODoyMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZ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N1pRXJcFkijF9TeEtdkuD81xAfSW86iuhFvN532CDmhiZOy4lpb7FfcaWE6bBMCuRe2vKq51Sau8eMUyZ5N6aqaHBDD34GjXM53xtOW5flRrmPD34GjBMNuXiWWtJDz2GmbCvk3tgUHroMCJN90Q+V0tJDy3Gu+cyPOB4IhOutaSHK8PTl6/OkIb1VTIoPZwbHg199YU0vLFHhCoYlB4ODc+tvoaYURfSbSWdMaMeEpd2jcoiGpmf1Urj6gS4bnjivxAX446d1ZV4L0wytvW0YViOSKun6Hfo7DbE3G0Jw9uvRi+Nre/aXwcXOQlkdl2qSv1OF9SEXJQJq62VrMgsooihLsfkiKusagVv70hXFmKsm7SKQ9NwFRIIu6xsgmb+/Qf0wuCZPjSdqbS7mflZVwXNdTFGs0z9fXNB5+IlNWEegWzEAn6XN5dlDDkxlqIqCzNsKE1ulvmbjLNPaS7L2JGljzyrUFk13LYs8dNxCSqkfvaRVMNqY00EVbgKpVuXLJml1XU70/bAdzAZsS3KYtQk2+yp2eoxxhjMXQYuqg416nIXMD0xWxP6m9NyqbDaDr7R5JRKu2zgp8RVN1xzE1w5IhNWF9mO3tr1CXxSe7erLti2l32duTQqtspvV/f34INXpv+GiNJ/AQYAgCbhym+3rl8AAAAASUVORK5CYII=) no-repeat;
-
- background-size: 40rpx 40rpx;
- flex-shrink: 0;
- padding-right: 30rpx;
- }
- .list .item.active .name:before{
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kb9LQlEUxz9qYVhhVFBDg0Q1aZiB1NKglAXVYAb9WvTlj0Dt8Z4R0hq0CgVRS7+G+gtqDZqDoCiCaGlpLmopeZ2XghJ5Lueez/3eew73ngvWSFrJ6HVeyGRzWjgUcM3NL7jsL9hpxYGNjqiiq1MzYxFq2uc9FjPeesxatc/9a43LcV0BS4PwiKJqOeFx4cn1nGryjnC7koouC58JuzW5oPCdqcdK/G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ew3pJs3je6gOOMgpUhL/k5B5smhnzbmWmoN+6cg6MPhvzwKNNQHL+d6wPMvP7bEXCnGvghepkljmlgf0P8A8uurmx6Sm7EAAAAAElFTkSuQmCC);
- }
- .buytip{
- font-size: 24rpx;
- color: #999999;
- text-decoration: underline;
- padding-bottom: 40rpx;
- }
- .p{
- font-size: 28rpx;
- text-align: justify;
- line-height: 40rpx;
- margin-bottom: 12rpx;
- display: block;
- box-sizing: border-box;
- }
- .buy-tit{
- font-size: 40rpx;
- /* font-weight: bolder; */
- text-align: center;
- margin-bottom: 40rpx;
- }
- .mask .buytip-layer{
- padding: 60rpx;
- }
- .buytip-layer .button{
- width: 300rpx;
- line-height: 80rpx;
- height: 80rpx;
- background-color: #000;
- color: #fff;
- border: 0;
- border-radius: 5rpx;
- margin: 0 auto;
- }
- .success-tip .layer{
- padding: 0;
- border-radius: 5rpx;
- }
- .success-tip .layer .msg{
- font-size: 32rpx;
- text-align: center;
- }
- .success-tip .layer .tit{
- font-size: 36rpx;
- text-align: center;
- margin: 62rpx 0 65rpx;
- }
- .success-tip .layer .btn-wrapper{
- display: flex;
- padding-top: 87rpx;
- }
- .success-tip .layer .btn-wrapper .button{
- border: 0;
- flex: 1;
- min-width: 0;
- box-sizing: border-box;
- font-size: 32rpx;
- color: #000;
- }
- .success-tip .layer .btn-wrapper .button:first-child{
- border-top: 1rpx solid #CCCCCC;
- border-radius: 0;
- }
- .success-tip .layer .btn-wrapper .button:last-child{
- background-color: #000;
- color: #fff;
- border-radius: 0 0 5rpx 0;
- }
- .mask {
- position: fixed;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- }
- .mask .layer {
- width: 620rpx;
- box-sizing: border-box;
- padding: 70rpx 60rpx;
- background: #fff;
- border-radius: 10rpx;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%,-50%);
- }
- .mask .layer .tit {
- text-align: center;
- font-size: 40rpx;
- margin: 16rpx 0 60rpx;
- }
- .mask .layer input {
- border-radius: 10rpx;
- border: 1rpx solid #999;
- height: 88rpx;
- line-height: 88rpx;
- padding: 0 28rpx;
- box-sizing: border-box;
- font-size: 24rpx;
- }
- .mask .layer .errtip {
- color: #d1171a;
- text-align: center;
- font-size: 24rpx;
- margin: 21rpx 0;
- height: 34rpx;
- }
- .mask .layer .btn-wrapper {
- padding-top: 30rpx;
- }
- .mask .btn-wrapper{
- display: flex;
- justify-content: space-between;
- padding-top: 20rpx;
- }
- .mask .btn-wrapper .button{
- border: 0;
- min-width: 0;
- box-sizing: border-box;
- /*color: #999999;*/
- width: 200rpx;
- border-radius: 5rpx;
- }
- </style>
|