|
@@ -44,6 +44,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <aTip text="点击添加到我的小程序 \n下次访问更方便哦!" isCustom="true" />
|
|
|
<view :style="{marginTop:navH}"></view>
|
|
|
<view class="home">
|
|
|
<view>
|
|
@@ -149,6 +150,43 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+ <!-- 普通弹窗 公众号-->
|
|
|
+ <uni-popup ref="popup4" class="share" background-color="#fff" @change="change" :maskClick="false">
|
|
|
+ <view class="popup-content" :class="{ 'popup-height': type === 'left' || type === 'right' }">
|
|
|
+ <view class="sharepage">
|
|
|
+ <view class="projecttext1">
|
|
|
+ <image src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/younggee_logo.png"
|
|
|
+ style="width: 250rpx; height: 80rpx;" mode=""></image>
|
|
|
+ <!-- <span>YoungGee</span> -->
|
|
|
+ </view>
|
|
|
+ <view class="sharemap">
|
|
|
+ <image :src="kefuUrl" style="width: 400rpx;height: 400rpx;" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view style="margin: 30rpx 0;">
|
|
|
+ <button class="butmin1" size="mini" @tap="saveImage">保存二维码</button>
|
|
|
+ </view>
|
|
|
+ <view class="sharetxt">
|
|
|
+ <text>
|
|
|
+ 使用样叽的过程中,有任何疑问,\n
|
|
|
+ 请添加上方微信。\n
|
|
|
+ 我们保证及时全力为您解决!
|
|
|
+ </text>
|
|
|
+ </view>
|
|
|
+ <view style="margin: 30rpx 0;">
|
|
|
+ <button class="butmin" size="mini" @tap="closepop">知道了</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+ <view class="contact" @click="toggle4('center')">
|
|
|
+ <view class="contt">
|
|
|
+ <!-- <image class="img2" src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home2.png" mode=""></image> -->
|
|
|
+ <image class="img1"
|
|
|
+ src="https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu_20211124192542.png" mode="">
|
|
|
+ </image>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
@@ -156,12 +194,18 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import aTip from "@/components/mys-tip_1.0.01/a_tip/aTip";
|
|
|
import {
|
|
|
getQueryString,
|
|
|
fansview,
|
|
|
money,
|
|
|
getDaysBetweenDates
|
|
|
} from '@/components/utils.js';
|
|
|
+ import {
|
|
|
+ saveImageToPhotosAlbum,
|
|
|
+ showToast,
|
|
|
+ downloadFile
|
|
|
+ } from '@/uni_modules/sakura-canvas/js_sdk/util'
|
|
|
export default {
|
|
|
props: {
|
|
|
mysNavConfig: {
|
|
@@ -226,11 +270,14 @@
|
|
|
return value;
|
|
|
},
|
|
|
},
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ aTip
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// nav
|
|
|
navH: getApp().globalData.navHeight,
|
|
|
+ kefuUrl: "https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/kefu.jpeg",
|
|
|
iconW: undefined,
|
|
|
iconH: undefined,
|
|
|
btnWidth: undefined,
|
|
@@ -296,11 +343,11 @@
|
|
|
|
|
|
list1: [{
|
|
|
img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png',
|
|
|
- name: '/pages/tasksquare/guide'
|
|
|
+ name: '/page_tasksquare/banner/guide'
|
|
|
},
|
|
|
{
|
|
|
img: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home7.png',
|
|
|
- name: '/pages/tasksquare/cooperation'
|
|
|
+ name: '/page_tasksquare/banner/cooperation'
|
|
|
}
|
|
|
],
|
|
|
|
|
@@ -563,11 +610,60 @@
|
|
|
let remain_days = getDaysBetweenDates(timeNow, ddl);
|
|
|
if (remain_days < 0) return true;
|
|
|
else return false;
|
|
|
- }
|
|
|
+ },
|
|
|
+ toggle4(type) {
|
|
|
+ this.type4 = type
|
|
|
+ // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
|
|
+ this.$refs.popup4.open(type)
|
|
|
+ // this.$refs.popup1.close()
|
|
|
+ },
|
|
|
+ // 保存图片
|
|
|
+ async saveImage() {
|
|
|
+ // showToast('保存成功')
|
|
|
+ wx.downloadFile({
|
|
|
+ url: this.kefuUrl,
|
|
|
+ success: function(res) {
|
|
|
+ wx.saveImageToPhotosAlbum({
|
|
|
+ filePath: res.tempFilePath,
|
|
|
+ success: function(data) {
|
|
|
+ wx.showToast({
|
|
|
+ title: "保存成功",
|
|
|
+ icon: "success",
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fail: function(err) {
|
|
|
+ console.log(err);
|
|
|
+ },
|
|
|
+ complete(res) {
|
|
|
+ console.log(res);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ closepop() {
|
|
|
+ this.$refs.popup4.close()
|
|
|
+ },
|
|
|
+ xieyi() {
|
|
|
+ console.log('进入联系我们')
|
|
|
+ },
|
|
|
+ pick(item) {
|
|
|
+ console.log(item)
|
|
|
+ uni.navigateTo({
|
|
|
+ url: item.name
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
+<style>
|
|
|
+ /deep/ .share .uni-popup .uni-popup__wrapper {
|
|
|
+ width: 80% !important;
|
|
|
+ border-radius: 15rpx !important;
|
|
|
+ }
|
|
|
+</style>
|
|
|
<style lang="scss" scoped>
|
|
|
//nav
|
|
|
.nav {
|
|
@@ -1042,4 +1138,111 @@
|
|
|
height: 52%;
|
|
|
padding-top: 25%;
|
|
|
}
|
|
|
+
|
|
|
+ .contt {
|
|
|
+ position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ .contact {
|
|
|
+ position: fixed;
|
|
|
+ top: 80%;
|
|
|
+ right: 13%;
|
|
|
+ }
|
|
|
+
|
|
|
+ //弹窗
|
|
|
+ .sharepage {
|
|
|
+ // width: 90%;
|
|
|
+ margin: 0 auto;
|
|
|
+ // position: relative;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/ .share.uni-popup .uni-popup__wrapper {
|
|
|
+ width: 70%;
|
|
|
+
|
|
|
+ border-radius: 15rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .projecttext1 {
|
|
|
+ // padding-top: 5%;
|
|
|
+ padding: 0 0 0 1%;
|
|
|
+ height: 80rpx;
|
|
|
+ margin: 5% 0;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .projecttext1 image {
|
|
|
+ vertical-align: middle;
|
|
|
+ width: 80rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ display: inline-block;
|
|
|
+ padding-right: 14rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sharemap {
|
|
|
+ margin: 0 auto;
|
|
|
+ text-align: center;
|
|
|
+ // margin-top: 15%;
|
|
|
+ // margin-bottom: 15%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sharemap image {
|
|
|
+ width: 400rpx;
|
|
|
+ height: 400rpx;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .sharetxt {
|
|
|
+ height: 100rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sharetxt text {
|
|
|
+ font-size: 24rpx;
|
|
|
+ text-align: left;
|
|
|
+ line-height: 20rpx
|
|
|
+ }
|
|
|
+
|
|
|
+ .butmin {
|
|
|
+ // height: 48rpx;
|
|
|
+ width: 250rpx;
|
|
|
+ background-color: #FCCF41;
|
|
|
+ line-height: 48rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .butmin1 {
|
|
|
+ // height: 48rpx;
|
|
|
+ width: 250rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ border: #000000 1rpx solid;
|
|
|
+ line-height: 48rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share {
|
|
|
+ text-align: center;
|
|
|
+ line-height: 10rpx;
|
|
|
+ margin-top: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .share image {
|
|
|
+ vertical-align: middle;
|
|
|
+ width: 25rpx;
|
|
|
+ height: 25rpx;
|
|
|
+ display: inline-block
|
|
|
+ }
|
|
|
+
|
|
|
+ .share p {
|
|
|
+ // display: inline-block;
|
|
|
+ font-size: 24rpx;
|
|
|
+ // color: #333333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .img1 {
|
|
|
+ width: 84rpx;
|
|
|
+ height: 124rpx;
|
|
|
+ position: absolute;
|
|
|
+
|
|
|
+ }
|
|
|
</style>
|